Skip to content

SadeghKrmi/pertts-streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pertts (persian text-to-speech)

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

image with love from datacula.com

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

dataset

https://huggingface.co/datasets/SadeghK/datacula-pertts-amir

🛠️ Installation

docker

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

python

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

Windows

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