-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Once again, Audio issue #9
Comments
@flooie may have good insights. @flooie could you help us here? It looks like a driver problem or setup problem to me. Also, when I played with Raspberry Pi I also had to add my user (if you are not using the root user) to the audio group to make PyAudio work. What is the output of "arecord -l" on your Pi? And what is your ~/.asound file? |
Geez. Idk. I can tell you that $ ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear I get all or most of the same warnings that I read somewhere are irrelevant - I was able to get some of them off. |
@chenguoguo @sciencedude100 is this for the alexa pi? |
@flooie, this is for Amazon's version I think. @sciencedude100 mentioned it here: #8 BTW @sciencedude100, @flooie has made it work for AlexaPi https://github.com/sammachin/AlexaPi/pull/85 |
It looks like an audio playback problem, @sciencedude100 what's your The error came from trying to play the "ding" sound on triggered sound. Alternatively, I saw you defined |
Ok, turns out my mic wasn't plugged in all the way... DERP! |
I actually saw this post on stack overflow, and I was like: oh, no way that dude was working without a mic... :-) One comment, please use snowboy.umdl under the devel branch. The snowboy.umdl model under the master was problematic and we haven't merged the fix. Regarding the personal model, since your model Hal is pretty short, make sure you play with different sensitivity values. Now Let's try to look into the issue. So at this point you can record the audio by typing "rec -r 16000 t.wav" (yes, with the sampling rate 16000) and then play it back by "play t.wav" right? My feeling is that your ALSA is somehow messed up. One thing to try is to explicitly tell PyAudio which device to use. You can follow this post here: You will have to modify the snowboydecoder.py file at line 108-115, and change them to something like follows:
where you can choose your INPUT_DEVICE_INDEX by following the post. Please also take a look at this post. jasperproject/jasper-client#226 Hope this will solve the issue. |
I think it might be my alsa config, I even tried to reset it with |
@sciencedude100 It might be disappointing, but mostly likely the problem can be solved by starting from a fresh Raspbian installation... See the post here. Please let us know if that helps. |
I'll set up snowboy before Alexa P.S. My project is now on hold to focus on This |
I was able to resolve the following errors below:
from /usr/share/alsa/alsa.conf, remove:
copy the .Xauthority file from my own profile /home directory to /root.
/usr/share/alsa/alsa.conf.d/ remove pulseaudio files. Check home directory for .asoundrc and remove pulseaudio from there if needed.
After making those changes, I no longer get the errors, just:
|
@illperipherals awesome, thanks for letting us know! I'll do some testing and possibly add those suggestions to the documentation in the next release. |
@illperipherals I will mention for future readers that this has to be run with Python 2 (so probably outside of your virtualenv). |
so, if I try to use a pmdl, I get This error. I tried running python with sudo and as a normal user.
The text was updated successfully, but these errors were encountered: