Open eliasnd opened 8 years ago
Eliasnd,
There is a bug in the code if you are using the master branch.
In the following folder /home/pi/jasper-client/client/tts.py
on or around line 76 you will see this line:
cmd = ['aplay', '-D', 'plughw:0,0', str(filename)]
I change it cmd = ['aplay', str(filename)]
to get the software to respect the .asoundrc configuration.
Here is a link This gives an example layout for .asoundrc.
HTH Chrobi
So I've been wrestling with Jasper for a while now. My onboard soundcard didn't work correctly, and would show different devices (using aplay -l and arecord -l) on every reboot. I am on a Raspberry Pi 3 Model B and running the newest Raspbian Jessie. So, to fix my audio problems, I got a USB sound card. Now my mic works, and my speakers work OUTSIDE of Jasper, but not in the program itself. I have no idea why this is. I was getting errors that my front and rear sound cards couldn't be read, so I set those to default in usr/share/alsa/alsa.conf, and those errors disappeared. I was also getting "ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused", and seeing how I'd had some trouble with PulseAudio before and read that I didn't need it if I had alsa and pyaudio, I uninstalled it. That error is still showing up, and my speakers are still working in anywhere except Jasper. Anybody know what might be the cause of this?
Sound Card: https://www.amazon.com/Daffodil-US01-Channel-Microphone-Speaker/dp/B002FI7GWK