Files do not show up in HA

#3
by ssa22 - opened

So I have Piper installed in HA, but also it is installed on another PC in docker as well. After struggling with trying to figure out how to get these voices into the docker container, I took a brake and tried the other method. So with Samba installed I navigate to the Samba share, went to the 'share' folder and made an additional one 'piper' (i.e. /share/piper). I have even tried to rename one of the sets to "jarvis.onnx" and "jarvis.onnx.json". Nothing seems to work.

More frustrating is that at least the docker attempt gave me a logged error which told me what was wrong (could not download the file). I am looking at the Piper logs on my HA installation and no errors. Now the one thing I have NOT done is a full reboot, only went to Dev tools > 'Restart Home Assistant'. I did earlier reboot, but that was before I had made changes to the name.

Completely lost now on what I can try next, hoping someone can help.

Owner

@ssa22 One thing to note is that the voices will show in the Voice assistants settings and will not show up in the Piper add-on configuration. I would suggest trying a full reboot if you don't see them in the Text-to-speech option of the Voice assistant configuration page. I have mine running using the Piper add-on in HA with the files like below in the directory /share/piper.

image.png

I restarted Home Assistant doing full reboot. Upon completion I first saw that "Piper_old" was failing to load. I went into Add-ons > Piper > Log and saw this repeated over and over:
[14:38:24] INFO: Service exited with code 1 (by signal 0)
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/main.py", line 223, in
run()
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/main.py", line 218, in run
asyncio.run(main())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/main.py", line 138, in main
custom_voice_path, custom_config_path = find_voice(
^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/wyoming_piper/download.py", line 183, in find_voice
raise VoiceNotFoundError(name)
wyoming_piper.download.VoiceNotFoundError: jarvis-high

I moved the files out of /share/piper and reloaded the HA's Piper addon, and it successfully loads. Went and tried a 2nd time, same issue with the above logged. My file names are same as your example above:
jarvis-high.onnx, jarvis-high.onnx.json, etc.. I couldn't copy a screenshot over, but it looks 1:1 match for what you have above.

ssa22 changed discussion status to closed
Owner

I'm not sure why they aren't loading for you since we seem to have the same setup. Maybe post this over on the Piper issues board and see if the maintainers can help you out?

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment