google / aiyprojects-raspbian

API libraries, samples, and system images for AIY Projects (Voice Kit and Vision Kit)
https://aiyprojects.withgoogle.com/
Apache License 2.0
1.63k stars 694 forks source link

AIY voice kit - Google Assistant - underrun errors #642

Closed bill-orange closed 5 years ago

bill-orange commented 5 years ago

With surprisingly little drama I was able to get Google voice assistant running on a Raspberry PI B+. The hat kit was an old one sold by MicroCenter for $3.

I have run into one problem, however. Nearly every voice command except for a simple one like 'what time is it' results in an underrun error and the Google Assistant reply is cut off or clipped.

INFO:aiy.assistant.grpc:You said: "what's the capital of Denmark". INFO:aiy.assistant.grpc:End of audio request detected. INFO:aiy.assistant.grpc:Recording stopped. INFO:aiy.assistant.grpc:You said: "what's the capital of Denmark". DEBUG:aiy.assistant.grpc:Updating conversation state. INFO:aiy.assistant.grpc:Assistant said: "Copenhagen is the capital of Denmark." INFO:aiy.assistant.grpc:Not expecting follow-on query from user. INFO:aiy.assistant.grpc:Playing started. underrun!!! (at least 271.880 ms long) underrun!!! (at least 1227.584 ms long) INFO:aiy.assistant.grpc:Playing stopped. INFO:root:Press button to start conversation...

It eventually articulates the entire reply, but with pauses and interruption. I suspect that somewhere there is a setting that will allow a considerably longer reply.

What should I do? Suggestions?

bill-orange commented 5 years ago

Problem went away on reboot. Odd