Here's the code to support my YouTube video: https://youtu.be/q6upRZ0-qpg
- Try out the voices and decide which one you like https://rhasspy.github.io/piper-samples/#en_GB-southern_english_female-low
- Download the voice
onnxandonnx.jsonfrom HuggingFace https://huggingface.co/rhasspy/piper-voices/tree/main/en/en_GB/southern_english_female/low python -m venv .venvsource .venv/bin/activatepip install -r requirements.txtpython main.py- Enjoy!
On linux, you might get this error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/jelsey/dev/40655169ab64db050531e7b02b6412e8/.venv/lib/python3.11/site-packages/sounddevice.py", line 71, in <module>
raise OSError('PortAudio library not found')
OSError: PortAudio library not found
If that happens, ensure these libraries are installed
sudo apt install -y libportaudio2 portaudio19-dev espeak-ng
The do a reinstall of sounddevice
pip install --force-reinstall sounddevice