I’ve just set up my first Voice PE device. To test it I say “Okay Nabu, what is the time”.
The LEDs flash but I don’t get a response. I’ve dialled the volume up.
In the logs I can see Speech-to-Text, NLP and Text-to-Speech all happening - see logs below.
The LEDs seem to indicate the different stages - Okay Nabu; Listening to my command; thinking about the answer; playing the answer.
In Assist Debug if I press “Play Audio” it pauses and then eventually pops up “error playing audio”
I have the same issue! I can see in the “logbook” of the Voice device that it goes through the stages of idle->listening->processing->responding->playing-idle, etc, when I wake it with “ok nabu”. The LEDs flash and it plays the little chime when I activate it so I guess there’s nothing wrong with the speaker hardware-wise. But it acts just as if it’s playing through a non-working speaker…
FileNotFoundError: [Errno 2] No such file or directory: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/wyoming/server.py", line 41, in run
if not (await self.handle_event(event)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 50, in handle_event
await self.write_event(
File "/usr/local/lib/python3.11/dist-packages/wyoming/server.py", line 29, in write_event
await async_write_event(event, self.writer)
File "/usr/local/lib/python3.11/dist-packages/wyoming/event.py", line 131, in async_write_event
await writer.drain()
File "/usr/lib/python3.11/asyncio/streams.py", line 378, in drain
await self._protocol._drain_helper()
File "/usr/lib/python3.11/asyncio/streams.py", line 167, in _drain_helper
raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost
WARNING:wyoming_piper.download:Wrong size (expected=63104526, actual=60709344) for /data/en_US-amy-low.onnx
INFO:wyoming_piper.download:Downloaded /data/en_US-amy-low.onnx (https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_US/amy/low/en_US-amy-low.onnx)
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='wyoming event handler' coro=<AsyncEventHandler.run() done, defined at /usr/local/lib/python3.11/dist-packages/wyoming/server.py:31> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/wyoming/server.py", line 41, in run
if not (await self.handle_event(event)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 53, in handle_event
raise err
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 48, in handle_event
return await self._handle_event(event)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/handler.py", line 108, in _handle_event
wav_file: wave.Wave_read = wave.open(output_path, "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/wave.py", line 630, in open
return Wave_read(f)
^^^^^^^^^^^^
File "/usr/lib/python3.11/wave.py", line 280, in __init__
f = builtins.open(f, 'rb')
^^^^^^^^^^^^^^^^^^^^^^
Just like to echo that I to had this issue, on first install it gave an error saying it couldn’t connect, but it was visible in HA, and would complete commands, but wouldn’t give any responses.
One factory reset later and it worked, but it did failed setting up from a PC, but once I added it manually the wizard appeared and it seems to now be working.
I had the same Problem as the people above. I reset the device and now it is halfway working. I can browse media select TTS, select the media player and play the text on the device, but if I try to use a script to announce or tts speak it does not work. And if I ask it something where I should have gotten a response, I hear nothing. The logs are saying that the device is responding but I don’t hear anything.
I had the same issue. I could ask questions and give commands that were completed successfully.
When it was supposed to answer, the ring flashed briefly but I got no voice reply nor confirmation.
It turned out that my local network settings (set in configuration.yaml) were wrong (and probably have been ever since I configured HTTPS) - preventing the Voice PE from communicating correctly with the rest of HA, even though some things worked.
I did not make a screenshot of the error message, but this is the place I saw it (settings → network)
I tried everything that was suggested here, and it still didn’t work. Then I changed the TTS Provider from Home Assistant Cloud to Google Translate and now it works. Why does Home Assistant Cloud do not work?
I tried this and I thought the problem was fixed, but after I tried it a few more times, the audio disappeared. I tried both Google Translate and Piper and both had the same issue
Having the same issue. It worked flawlessly for me for about 1-2 weeks, but since about a week ago I haven’t been able to get it to play the audio responses consistently. I’ve also tried a factory reset already, didn’t help unfortunately
The internal URL under network settings seems correct. I’m also using the IP / port directly, not the HTTPS URL which might run into problems due to it being
a self-signed cert and I didn’t install the CA on the Voice PE device.
In debug view everything seems fine. But, I’m only able to play back the flac audio response maybe 1/20 times. Otherwise the Voice PE device keeps spinning its LEDs like its loading / waiting on the TTS response.
I’m able to play the response from my mobile no problem when doing the debug voice pipeline btw.
Just commenting to add that I factory reset mine twice before it started working again, but still had some issues. Resetting my wireless access point seems to have everything working again.