Piper tts not functioning properly on RPI5 #359
-
Hello all! I have run into an issue with using Piper tts on my pi 5. I have followed directions for installation and when running a default model that piper provides it generates choppy and skips over words. I have been working on this issue for days and still cannot solve it! The end goal is to use this custom model: https://huggingface.co/poisson-fish/piper-vasco/tree/main/onnx but I cannot seem to figure this out. I am new to this so maybe that's why? Any and all help is greatly appreciated. If you take a look at the link above, the huggingface model is .onnx and also has a onnx.json config file. I even employed chat gpt to help with some of the errors but even that did not work. -Lizardking |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I am facing the same issue |
Beta Was this translation helpful? Give feedback.
-
Lizardkingm MaxTheTurtle0 - Also having issues on Pi5 - only mine says it can't find the .onnx & json files, despite their existence in the same directory as piper. Can anyone offer any suggestions? |
Beta Was this translation helpful? Give feedback.
-
After quite a bit of work, and a lot of research, I determined that there is a problem when converting the generated speech into an audio format. I still do not know why this is or how to fix it, but what worked for me is to just use the direct audio output option for piper through the terminal. The command is: echo 'This is what is spoken' | Aplay comes installed with the system, but just ensure you have it installed and updated. Also good to run a quick sudo apt-get update && upgrade This did fix the problem for me, but let me know if you both run into any more errors. Again, I still have no idea why saving the audio file won't work properly. |
Beta Was this translation helpful? Give feedback.
-
I did get it working:
Will now have subfolder, cd to it
You should have two files - en_US-amy-medium.onnx and en_US-amy-medium.onnx.json - in same dir as piper In same dir type echo 'Welcome to the world of speech synthesis!' | ./piper --model en_US-amy-medium.onnx --output file welcome.wav
But the file gets saved as - in this case - "1714958049462550118.wav" instead of welcome.wav I used the same pipe to aplay as you and got better playback times anyway, so not an issue. Thanks for your help |
Beta Was this translation helpful? Give feedback.
I did get it working:
Will now have subfolder, cd to it
Get the voice model & json
You should have two files - en_US-amy-medium.onnx and en_US-amy-medium.onnx.json - in same dir as piper
In same dir type echo 'Welcome to the world of speech synthesis!' | ./piper --model en_US-amy-medium.onnx --output file welcome.wav