SadeghKrmi / pertts-streamlit

Persian text-to-speech streamlit interface

Home Page:https://tts.datacula.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Voice: We are using an AI-based TTS system, trained with Amir Sooakhsh's voice from rokhpodcast, Special thanks to Amir :)

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

About

Persian text-to-speech streamlit interface

https://tts.datacula.com/

License:Apache License 2.0


Languages

Language:Python 75.0%Language:Dockerfile 21.4%Language:CSS 3.6%