Go to file
ov 5711652a58 gi 2025-06-26 15:46:13 +00:00
__pycache__ gunicorn 2025-06-26 15:45:08 +00:00
.gitignore gi 2025-06-26 15:46:13 +00:00
output.wav gunicorn 2025-06-26 15:45:08 +00:00
readme.txt gunicorn 2025-06-26 15:45:08 +00:00
requirements.txt init 2025-06-26 15:17:11 +00:00
stt_piper.py gunicorn 2025-06-26 15:45:08 +00:00
stt_piper.py1 gunicorn 2025-06-26 15:45:08 +00:00

readme.txt

uv venv .venv
source .venv/bin/activate.fish
uv pip install flask
uv pip freeze > requirements.txt

get piper binary https://github.com/rhasspy/piper
tar -xvf piper_linux_aarch64.tar.gz

wget https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/amy/medium/en_US-amy-medium.onnx
https://huggingface.co/rhasspy/piper-voices/tree/v1.0.0/en/en_US/amy/medium

echo 'Welcome to the world of speech synthesis!' | \
  ./piper/piper --model en_US-lessac-medium.onnx --output_file welcome.wav

or run any script

gunicorn -w 4 -b 0.0.0.0:4005 stt_piper:app