Giter Club home page Giter Club logo

Comments (3)

rcbyron avatar rcbyron commented on May 18, 2024

Hi again, sorry you're having more issues. I hope you got everything fixed on your main computer/system. As for the RPi 2, one of the developers in our community posted these comments:

AVBin is not available for the Raspberry's ARM arquitecture. Workaround: I used os.system("mplayer -really-quiet " + file). Better idea, use pygame or some lightweight multiplatform library to play compressed audio
Without Internet connection, a fallback to use PicoTTS (libttspico-utils: /usr/bin/pico2wave) would be nice. I used it, again, with os.system("read.sh " + words) and a little bash script that makes the wave file using pico2wave, plays it and removes it. Would be better to try to use the libpicotts directly from Python.

And with respect to this issue:

The RPI2 doesn't have an audio input. I used a very cheap USB "soundcard" that has both output and mic. I run into a problem with a (possibly buggy) with pyaudio. The error was:
IOError: [Errno Input overflowed] -9981
I solver it by modifying the "buf = stream.read(1024)" line in stt.py and adding a parameter to ignore overflows ( I don't remember exactly, was something like except_on_overflow=False ). I can tell you later when at home.

This seems to be a popular issue:
http://stackoverflow.com/questions/10733903/pyaudio-input-overflowed

I'll be looking into this issue more, but maybe this will help in the meantime.

from hey-athena-client.

joshgel avatar joshgel commented on May 18, 2024

I was able to suppress this error by modifying the "buf = stream.read(1024)" line in stt.py to "buf = stream.read(1024, exception_on_overflow=False)"

(still getting lots of errors though)

from hey-athena-client.

ivaniclixx avatar ivaniclixx commented on May 18, 2024

Hi joshgel,

Try using pulseaudio with the Raspberry Pi 2. It kinda makes it work better.

pulseaudio -D

Then, you can use:

pactl list short

Copy the desired input device, and:
pactl set-default-source [device name]

For example:

pactl set-default-source alsa_input.usb-0d8c_USB_PnP_Sound_Device-00-Device.analog-mon

I am very busy lately, but i'll try to contact the developers and update the documentation on how to make everything work properly under the raspbian. Hope it helps.

from hey-athena-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.