Speed / High pitch sound issue with JABRA Speaker with Raspberry Pi #65
Comments
I will leave it open until I test the impact & probably integrate it in the code. |
Couldn't find anything obvious about the different between |
I had to fallback this one. My mic was no longer working with this fix for some reason (although it was working during my tests). |
I have exactly the the same on a fresh new Raspberry Pi 3 installation, except that I have a JABRA SPEAK 410. J'ai exactement le même problème sur un e installation toute fraîche sur un Raspberry Pi 3, excepté que j'utilise un JABRA SPEAK 410. |
Hi @wikijm, is fix also working for you?
|
Badly, no. With Hélas non. Avec |
Hi @wikijm Can you show us the ouput of the command $aplay -L |
Sorry for the late response. pi@RaspAP3:~ $ aplay -L |
After Jarvis and Raspbian update, everything works fine. |
After verification, the problem do not appear when I start Jarvis normally, but this problem still appear with the "Troubleshooting mode" |
Had the same issue on my debian jessie home server with a Jabra 410. It looks like the tts.wav tmp file created by Pico have a 16000hz sample rate. As I didn't found a solution to change alsa default sample rate, I just convert the tmp file with avconv to 44100hz. Quick and dirty, but it's seamless on my server. |
Does it work is you pass the format to aplay?
You can also use sox to convert: sox tts.wav -r 44100 tts.wav |
Nop, this doesn't work
Yep this works. |
I had exactly the same issue. I use a Jabra SPEAKER 510
And I use the following
The important point is to set the rate to 48KHz for the Jabbra playback. From my different testing results, only 16000 and 48000 values allow aplay to send something. And only 48000 allow aplay to send something correctly! |
@lengzai Could you try solution below? (#65 (comment)) |
Bonjour, Cela fonctionne avec la configuration suivante dans le .asoundrc : pcm.jabbra { |
Since the Jabra (410 in my case) works fine when I use it on my PC, it seems like a configuration issue that should be able to be detected. If I plug in my Logitech USB headset into the Raspberry Pi, it works fine. If I plug either of these into my PC they both work fine - so again, it seems like something the driver or configuration should be able to handle. I need the Jabra to work with my Raspberry Pi, so I am interested to a solution to this problem. |
Hi @esilky,
|
I tried all and still have the problem |
I did follow step 65 |
@claudioita please paste here the config header of Jarvis (beginning of troubleshooting mode) as well as your ~/.asoudrc file. Thanks. |
Please note that it did work in the past. Then I did not use it for a while. pcm.jabbra { pi@raspberrypi:~ $ aplay -L |
@claudioita did you set your |
in /home/pi/jarvis/config its empty directory (just file .gitkeep empty) |
@claudioita it's not normal, Jarvis is not configured.
Then once completed, set your $> echo "jabbra" > /home/pi/jarvis/config/play_hw |
it was configured but after doing your echo command, now it's working |
Although the audio is not totally clear, but maybe that's how it should sound (difficult to write how it is)? Must be the same problem |
this is the log ON_CONVERSATION_TURN_STARTED |
@claudioita We don't provide support here for Google Assistant SDK. Thank you for your understanding. |
Hi, I'm sorry but it is not possible to create the file alsa-base.conf. |
Hi @jycoma, are you trying with sufficient privileges ? |
Description
Hi,
At first, thanks for your project, I really like it and I have started to test your project.
I use a Raspberry Pi 3 and a Jabra Speaker MS510
I got an issue to play 16000Hz sound.
It was very annoying because all my voices and Jarvis voice were very fast with a high pitched
I finally found a fix to make it worked and i hope it will help someone else. Maybe you can add it to your code but i suppose you need to check the impact.
At first i told to my raspberry that i want my USB audio device as default
So i create (as i don't have it) the file alsa-base.conf
So by default my audio device will be the Jabra speaker, even after rebooting the device
With the command $aplay -L
I listed all my "audio devices" and i found that there is a line named sysdefault
So to find my issue i used "aplay" with -D option until i got the correct sound
Example:
$aplay -Dsysdefault:CARD=USB -c 2 -f cd audio_test_from_pico2wave.wav
(it also works like this:
$aplay -Dsysdefault -c 2 -f cd audio_test_from_pico2wave.wav
)So to fix my issue, i changed the file (generated and cleaned by jarvis.sh)
.asoundrc
by replacing pcm.!default by pcm.!sysdefaultto get something like this
As you can see, even I plugged an USB audio device, I put hw:0,0 and not hw:1,0 as i set my USB audio device as default (to load the audio usb driver first) on the file alsa-base.conf
The text was updated successfully, but these errors were encountered: