This is the implementation and a web interface for pertts (Persian text-to-speech)
powered by piper
the live version of persian tts called pertts
Voices: We are using an AI-based TTS system, trained with
- amir: Amir Sooakhsh's voice from rokhpodcast, Special thanks to Amir :)
- ganji: Ahmad Ganji voice
https://huggingface.co/datasets/SadeghK/datacula-pertts-amir
Build with docker from scratch and run
docker build --no-cache -t pertts:1.0 .
docker container run --name st --rm -it -p 8501:8501 pertts:1.0
Run the latest version of the docker image from docker hub
docker image pull sadeghk/pertts
docker container run --name st --rm -it -p 8501:8501 sadeghk/pertts
install piper-tts using pip and download the model in pertts-streamlit/model directory
`` pip install piper-tts
and then run
```bash
echo 'سلام و درود بر همه فارسی زبانان' | piper \
--model epoch=5261-step=2455712.onnx \
--output_file dorood.wav
download the executables for windows piper_windows_amd64.zip from piper, and unzip go to the piper directory where piper.exe exists and create a folder with the name models. Download the model for Persian/Farsi from huggingface with name fa_IR-amir-medium.onnx and fa_IR-amir-medium.onnx.json to models directory.
open a PowerShell and cd
to the directory where piper.exe exists, and run
echo "سلام و درود بر شما" | .\piper.exe --model .\models\fa_IR-amir-medium.onnx --output_dir .\outputs