I’m trying to get the Glados voice model working through piper in HAOS.
I’m using the piper addon.
I placed the onnx and onnx.json file in /share/piper/ (had to create that folder first), as suggested in the documentation page of the piper addon.
While I can’t see the new voice model in the configuration page of the piper addon, I can select it when configuring my voice assist pipeline.
However when I try to play test sample I get an error:
This is the log of the Piper Addon.
DEBUG:wyoming_piper.handler:Synthesize(text='Hello. This is a test', voice=SynthesizeVoice(name='glados', language=None, speaker=None))
DEBUG:wyoming_piper.handler:synthesize: raw_text=Hello. This is a test, text='Hello. This is a test.'
DEBUG:wyoming_piper.process:Starting process for: glados (2/2)
DEBUG:wyoming_piper.process:Starting piper process: /usr/share/piper/piper args=['--model', '/share/piper/glados.onnx', '--config', '/share/piper/glados.onnx.json', '--output_dir', '/tmp/tmp_nnyeiwz', '--json-input', '--noise-scale', '0.667', '--length-scale', '1.0', '--noise-w', '0.333']
DEBUG:wyoming_piper.handler:input: {'text': 'Hello. This is a test.'}
DEBUG:wyoming_piper.handler:
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')
^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ''
Am I missing some documentation? Am I doing something wrong? I’m a noob, so any help is appreciated!