#HAOS with Piper Add-On never generates audio as voice onnx file wrong size

1 messages ยท Page 1 of 1 (latest)

strange ermine
#

I've been using HAOS for a while, and today started playing with an Atom ECHO M5, trying to follow the guides but there seems to be an issue with the piper voice downloads from hugging face.

the actual size of the onnx files it's downloading are different from the expected sizes in the voices json file, so I'm getting stuff like this in the log;

DEBUG:wyoming_piper.download:Downloading https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_GB/southern_english_female/low/en_GB-southern_english_female-low.onnx to /data/en_GB-southern_english_female-low.onnx

I get that this is probably not an issue with HA, it's most likely a temporary problem with the huggingface repos having gone out of sync - I've seen other similar reports on various github repos etc. what I'm struggling with on HA, is that I seem to have absolutely no way at all of gaining access to the addon's data directory. If I did, I could disable the automatic voice update in the ha config and just manually edit the voices json file to report the actual size of the file, functionally disabling the model size check - which is what others have done when facing similar piper issues.

I've tried the samba addon, I've tried the file editor addon, I've tried navigating the HAOS cli... nothing seems to get me access to the data directory of the addon.

Any ideas?

Also it seems like as this has happened before with HuggingFace, it seems like having a toggle switch to disable the model size check in piper would be a good idea...

Thanks ๐Ÿ™‚

naive compass
#

voices.json is located in the docker container (for add-on). You can go into it and make edits. you need to specify the size and Hash. You can also rename the model files, it should be loaded by Piper separately.

strange ermine
#

thanks for the info. I must admit im seriously struggling to do any of this with HAOS. I've installed a HACS thing to give me ssh access so I can do stuff like run a docker command, but docker inspect on the the piper container tells me it's mounted at /mnt/data/supervisor.... but when I run ls /mnt it says the folder is empty. I don't know if I'm doing something wrong, but I still can't seem to get access to anything running on this VM. It's more locked down than an iPad.

strange ermine
#

So, I've tried many different models now, and they all come back with the same or similar errors.

I saw in the logs that it will pull an onnx file from ~/share/piper (doesn't seem to be documented anywhere) so I've tried that with a file manually downloaded from hugging face and it still has a file size error. I then restarted the addon, waited for the logs to show ready and then tried to play sample text via the 'voice assistant' screen in ha. No worky. It just sits there spinning.

#

attached is the logs from piper that covers the last addon restart until the failure to play.

#

if anyone can see anything in this log to suggest why it's not working please let me know ๐Ÿ™‚ ta

naive compass
#

If you have a linux machine, try running the piper server separately (using the instructions from the repository) and check its performance. changing the container files is not the best way to solve the problem. You need to find the reason, and with this installation method, all files are immediately editable. I train my own models and in order not to worry about the verification mechanism, I simply deleted all this functionality from the server.

strange ermine
#

I have a couple of proxmox hosts and an old i7 Ubuntu server at my disposal. That'll be my next port of call. I'll start by spinning up an Ubuntu LXC under proxmox and see if I can get it running there. If I have time I'll also set up a second haos VM on another vlan and try following the piper add-on installation again afresh to see if it's a recurring issue. One thing I did try was uploading the onnx file I'd downloaded to the piper online demo and it works absolutely fine, so the issue isn't with the model, it's something to do with the installation of Wyoming-piper.

#

When you say "using the instructions from the repo" - which repo please? There are several repos of piper and of Wyoming-piper- do I use vanilla piper with their built in server or do I need some sort of wyoming layer?

naive compass
strange ermine
#

thanks for that ๐Ÿ™‚ I've got it up and running now, amazing how fast it is on an LXC with 2 threads and just 512MB RAM