-
Notifications
You must be signed in to change notification settings - Fork 298
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
Voice response too fast when using google assistand SDK with Hotword #4
Comments
Enabling pulseaudio will solve the issue. |
Enabling pulseaudio with the command
before running the Google Assistant demo results in the following error
being scrolled infinitely down the terminal. Disabling pulseaudio results in the original fast playback issue. Have still not been able to resolve this. |
I can confirm that my results are the same as the previous poster. Can you please advise what the next steps would be? |
My pulseaudio works. Can you post the log of |
try the 2 mic voice card with the latest raspbian image. The pulseaudio doesn't work by default. We must modify pulseaudio's configuration file
and comment the following lines:
If the on-board codec is enabled, the seeed voice card should be Reboot to use the new configuration. Besides, pavucontrol and audacity can be used to debug audio R/W. |
Another way to solve the issue is to use Ubuntu Mate for RPi 2/3 which is much better desktop OS. |
@MyNameWasUnavailable @csprimary I got another solution. Run:
The alsa configuration uses dmix plugin and dsnoop plugin. With the configuration, we can play and record with multiple applications simultaneously. |
With regards to trying the latest raspbian image, do you mean the latest stretch image from Raspberry pi foundation? I had tried that also, however I had not made the modifications you mention above. I will try the above solutions, most likely on the weekend, and report back. |
i've just done a fresh install and i'm having issues getting this to work also.. if i apt get pulseaudio and set it up with your settings that you mention above then i run the SDK - when i say something it hears what i say and searches, but then the response freezes and nothing happens. if i uninstall pulseaudio google speaks back very fast but atleast it's working - using doesn't make any difference |
@aceycv8 When google assistant freezes using pulseaudio, can you open pavucontrol, check the |
I'm using the light version so its all cli - is there anything I can do to check through cli? |
You can use The log is like:
|
thank you xiongyihui - here is my output where it still freezes. pi@VoiceAI:~ $ pactl list sinks pi@VoiceAI:~ $ pactl list sink-inputs |
The only difference I found is:
vs
@aceycv8 When the assistant is freezing, are you able to play sound using other applications such as aplay, audacity? |
Yep i'm able to do a speaker test fine once assistant freezes - i run
and audio comes through while assistant is frozen. here are the pactl commands while assistant is frozen and the speaker test is running.
|
If the speaker-test is using pulseaudio, it will show in the output of
|
I just uploaded my pulseaudio configuration file
|
ok - i've copied your default.pa down. running So i ran assistant and exactly the same thing just freezes. i've left assistant open and now re run here is the
and here is the
I then close assistant down and also close the speaker-test that was running and re run i then run i run however if i run |
@aceycv8 would you mind to join the gitter seeed-voicecard chat room? It should be easier to discuss the issue in the chat room. |
just joined in |
@xiongyihui - i downloaded your Pi Image and set everything back up. i tried the following and rebooted then ran assistant with no joy - fast playback
I then did
and ran assistant - this fixed my problem right away - i'm using assistant with the LED script of and so far so good, Thank you for your help now just to figure out how to get a beep to happen when you say "ok google" thank you |
I have been as time allowed today trying the suggestions in the gitter chat room, using the seed supplied image and my outcome is as follows: *just using the asounf.conf results in chipmunk speed speech.
ON_RESPONDING_STARTED: Output from pactl list-sink-inputs: pi@raspberrypi: If I try and play some audio from another session, nothing plays, and I get another recurrance of the following message in the first session: output from pactl list sink-inputs `pi@raspberrypi:~/env/bin $ pactl list sink-inputs Sink Input #4 I'm assuming I must be doing something wrong, however I cant for the life of me figure out what it is! |
ok, so I just rebooted the pi, and tried again without pulseaudio, and it worked! I did receive the following error: ALSA lib pcm.c:7843:(snd_pcm_recover) overrun occurred However it did work correctly. Looks like I am on the right track |
Just a final follow up comment before I close this issue. I was able to successfully install and configure this hat using Stretch, the files / instructions from the aiyprojects-raspbian project, and the drivers and asound.conf from this git. It worked more or less first go after fiddling for a while with the sound levels etc. I am confident that the issue now is not with the hardware or drivers as such, simply a configuration issue on our parts, which it would appear in the official project, they have worked around. I was also able to configure the button as a shutdown button, which also works. ONly thing left is to integrate the LED's, which is the next thing I will be looking at. |
I have followed the Google Assistant example. Exevrything works, but Google Assistant voice is very quiet through the headphone jack and I can barely hear it (headphone is at full on ALSA mixer). I have tried changing different mixer settings, but can't fix it. anyone know how to fix this? Seeed team please give me resolution to fix this issue. Thanks in advance |
You can try to save https://github.com/respeaker/seeed-voicecard/blob/master/asound_2mic.conf as |
I tried, but still same. any idea?
ThanksGanga
On Wednesday, October 18, 2017, 10:59:10 PM GMT+13, Yihui Xiong <[email protected]> wrote:
You can try to save https://github.com/respeaker/seeed-voicecard/blob/master/asound_2mic.conf as /etc/asound.conf
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is the sound OK when playing a wav or mp3 file? |
Sound was really good, when I play wav or mp3. I did, speaker-test -t wav test. It worked without any issues.
On Thursday, October 19, 2017, 12:32:54 AM GMT+13, Yihui Xiong <[email protected]> wrote:
Is the sound OK when playing a wav or mp3 file?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks for your support.
I am running headless mode. How do I increase volume to 100%.
On Thursday, October 19, 2017, 2:31:07 PM GMT+13, Yihui Xiong <[email protected]> wrote:
It seems a problem between alsa and google assistant.
Maybe have a try to use pulseaudio which has a util named pavucontrol to check the output sound level and amplify the level more than 100%. It will looks like:
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I will try and let you know, if this resolve my issue. Did you guys figure it out actual root cause? It is so painful to try all sorts of options.
…Sent from my iPhone
On 20/10/2017, at 2:10 PM, Yihui Xiong ***@***.***> wrote:
You can try https://github.com/GeorgeFilipkin/pulsemixer
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
sorry, still same.
please give me clear direction to resolve the issue.
On Friday, October 20, 2017, 2:10:28 PM GMT+13, Yihui Xiong <[email protected]> wrote:
You can try https://github.com/GeorgeFilipkin/pulsemixer
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The google assistant demo (hotword version) has issues with ALSA on Raspberry Pi. The gRPC version works well. |
Hi,
I resolved the issue. Its work very well.
Thanks for your support.
On Wednesday, October 18, 2017, 10:59:10 PM GMT+13, Yihui Xiong <[email protected]> wrote:
You can try to save https://github.com/respeaker/seeed-voicecard/blob/master/asound_2mic.conf as /etc/asound.conf
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Support ubuntu-server with /boot/firmware/overlays
Myself and quite a number of others are having issues with this device when using the google assistant SDK.
Audio tests seem to work correctly using the steps in "Configure and test the audio" from the official sdk, however when running the assistant the playback is sped up considerably, to the point where it is unintelligible.
This issue occurs with both the Supplied raspbian image and a manual installation.
The text was updated successfully, but these errors were encountered: