Download the code sample and try the following. nversation_stream.write(dio_out.audio_data)įile "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/audio_helpers.py", line 326, in writeīuf = normalize_audio_buffer(buf, self.volume_percentage)įile "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/audio_helpers.py", line 57, in normalize_audio_bufferĪttributeError: 'array. The voice assistant code file is available for download along with this chapter as voiceassistant.py. Return ctx.invoke(self.callback, **ctx.params)įile "/home/pi/env/lib/python3.9/site-packages/click/core.py", line 535, in invokeįile "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 458, in mainĬontinue_conversation = assistant.assist()įile "/home/pi/env/lib/python3.9/site-packages/tenacity/_init_.py", line 241, in wrapped_fįile "/home/pi/env/lib/python3.9/site-packages/tenacity/_init_.py", line 329, in callĭo = er(result=result, exc_info=exc_info,įile "/home/pi/env/lib/python3.9/site-packages/tenacity/_init_.py", line 279, in iterįile "/usr/lib/python3.9/concurrent/futures/_base.py", line 433, in resultįile "/usr/lib/python3.9/concurrent/futures/_base.py", line 389, in _get_resultįile "/home/pi/env/lib/python3.9/site-packages/tenacity/_init_.py", line 333, in callįile "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 154, in assist INFO:root:Transcript of user request: "what time is it".įile "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 8, in įile "/home/pi/env/lib/python3.9/site-packages/click/core.py", line 722, in _call_įile "/home/pi/env/lib/python3.9/site-packages/click/core.py", line 697, in mainįile "/home/pi/env/lib/python3.9/site-packages/click/core.py", line 895, in invoke INFO:root:Transcript of user request: "what time is". INFO:root:Transcript of user request: "what time". INFO:root:Transcript of user request: "what".
INFO:root:Using device model raspberry-pi-home1-google-assistant-fr9vci and device id 2c9c8f3a-6286-11ec-b862-b827ebae3b0b (env) $ googlesamples-assistant-pushtotalk -project-id raspberry-pi-home1 -device-model-id raspberry-pi-home1-google-assistant-fr9vci I have attached when happens when I talk to the microphone (send a request). The program asks me to input a request but it doesn't output the answer through the speakers.