#piper produce no output

1 messages · Page 1 of 1 (latest)

fickle thistle
#

When I try to use piper to do any tts, it produces nothing. In Settings > Voice Assistants, the Try Voice button just produces a spinning circle that spins indefinitely, and network logs show that the GET request hangs on Pending. Additionally, I see that no mp3 is produced in the tts folder. The Piper logs show that an error causes no file to be written:

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')
        ^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ''
#

Any help fixing this would be greatly appreciated. Have I perhaps misconfigured something? I am pretty sure I followed instructions online very carefully, and I have already tried uninstalling and reinstalling things a few times.

exotic orchid
#

I saw troubles with Piper like this.
To reproduce, i have to add satellite to HA, and when it is launching onboarding flow, it overwrites my settings for pipeline, oftern leaving voice field for Piper empty. If i try once TTS after it, Piper goes nuts and i need to restart it (but set the voice in pipeline back to desired). After setting voice and restarting, it starts working again.

fickle thistle
#

Can you give me some more details? I am not exactly sure what settings you are suggesting I set to fix the problem

fickle thistle
#

@exotic orchid Let me know when you have a moment :)

exotic orchid
fickle thistle
#

First thing I checked, unfortunately: Both Piper and the voice are chosen there :\

#

That is, in fact, where I get the Test Voice button that I mention in the initial post that I pressed

#

I assume you mean Settings > Voice Assistants?

#

@exotic orchid

exotic orchid
#

If so, it's different error then...

fickle thistle
#

Yeah :\

fickle thistle
exotic orchid
bleak timber
#

Are you running Piper in docker outside HA, or are you using the HA addon?

fickle thistle
#

The latter

#

I have done some testing now; it seems if I manually download the .onnx and .onnx.json files into /data, it works, but I expected that Piper should try to download these automatically as needed

#

This is what the Piper logs show:

INFO:wyoming_piper.download:Downloaded /data/en_GB-alan-medium.onnx (https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_GB/alan/medium/en_GB-alan-medium.onnx)
INFO:wyoming_piper.download:Downloaded /data/en_GB-alan-medium.onnx.json (https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_GB/alan/medium/en_GB-alan-medium.onnx.json)
WARNING:wyoming_piper.download:Wrong size (expected=63104526, actual=60373219) for /data/en_GB-alan-low.onnx
INFO:wyoming_piper.download:Downloaded /data/en_GB-alan-low.onnx (https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_GB/alan/low/en_GB-alan-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')>
#

Which seems to suggest that the files downloaded, but I do not see them when I ssh in to look

#

Actually, so far, this has only worked for en_GB-alan-medium

#

Yeah, it looks like other models are getting me WARNING:wyoming_piper.download:Wrong size errors

#

Have I configured something wrong, or is something out of date somehow?

#

It actually seems to have nothing to do with what I have downloaded, because I removed them, and the above behaviours are the same: en_GB-alan-medium works, and nothing else