-
Notifications
You must be signed in to change notification settings - Fork 693
Rate doesn't match (requested 16000Hz, get 48000Hz) #183
Comments
Possible workaround (from @shivasiddharth): delete This may occur because another process has created an invalid |
I have reproduced this partly:
I was unable to trigger re-creation of ~/.asoundrc - it was only created on the first reboot. Here's what I tried:
The system continued to work after all of these. I'll try creating .asoundrc as a duplicate of /etc/asound.conf and seeing if that avoids the issue. |
Contents of .asoundrc:
Which looks like it was created by the volume widget. |
So the asoundrc is getting padded even with the contents of asound.conf ? |
I don't know - I only tested the old instructions (only create /etc/asound.conf, then ~/.asoundrc gets auto-created by something else when you reboot the first time). I'm trying with your PR right now. |
@shivasiddharth I tried with your PR but it didn't work: the panel crashes with a segmentation fault when you try to start it. I thought this is because it's trying to edit ~/.asoundrc but failing as it's owned by root, so I ran Did you test your PR on a fresh install of Stretch? Are we doing something differently? |
Weirdly, after having problem with the panel crash, I tried deleting Theory:
TBD: will the volume widget ever create another .asoundrc again? Is there any way to stop it doing that? |
Yes i did test this on a fresh installation of raspbian stretch. My taskbar did crash, i thought it was due to VNC (Taskbar crashing in Raspbian has been a long standing issue so id did not suspect the asoundrc). After the taskbar crash, i normally open a terminal, run apt-update and reboot to get the taskbar back, along with volume icon and unaltered asoundrc. |
I am curious to know whether this issue is not appearing with the ready to use AIY image. I shall dig into this taskbar issue over the weekend. |
Who would have thought that a volume widget could cause so many different problems... For now I'm going to merge the advice to delete ~/.asoundrc, since (a) it has worked for me several times (~4 installs, ~10 reboots) and (b) because I observed ~/.asoundrc getting overwritten, so it might be a false sense of security. I'll also check with another engineer who has had experience with a similar issue - maybe they can help. @shivasiddharth, thanks for reporting this and answering all my questions! Let me know whatever you find out this weekend and maybe we can improve the instructions or avoid the issue altogether. |
Oh, and the current AIY image is still based on Jessie. |
From the posts on Raspbian community, it looks like we are not alone on this. Here is a reply from an Engineer as to why this is happening https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=158618#p1171920
Will check on this and get back.. |
I think that may not be enough - you may need:
It seems ALSA doesn't update the state based on the new config/drivers until you play some audio, so you need to run check_audio or something similar. |
@drigz @shivasiddharth couldn't |
This allows the correct ALSA state to be configured, and prevents the volume widget writing an invalid config. Fixes google#183.
@divx118 I don't think so, unless you could stop the init scripts from saving/restoring the bad ALSA state on the first reboot. |
@drigz , The updated instructions did the trick.. worked 10/10.. even |
This allows the correct ALSA state to be configured, and prevents the volume widget writing an invalid config. Fixes #183.
From googlesamples/assistant-sdk-python#127
I am trying to get the AIY kit up without the Google supplied image. I have followed the steps in the HACKING.md file, however, when I start the service I see...
The text was updated successfully, but these errors were encountered: