Persian/Farsi Text to Speech (TTS) Training Using Coqui TTS (Online Demo:)
This Repository Contains Codes for Training Text to Speech Models
Feel Free to Ask Your Questions Issues
Join Our Telegram Channel: https://t.me/persian_tts
Subscribe to our telegram channel: https://t.me/persian_tts
Sample Codes and NoteBooks are availability at RecePies Folder
Theme Models You Can Use to Test or Finetune
| Model | Dataset |
|---|---|
| Vits Female (Best) | Persian-TTS-Dataset-Famale |
| Vits Male1 (Best) | Persian-TTS-Dataset-Male |
| Vits Female1 | Parsigoo |
| Vits Male | Persian-TTS-Dataset |
| Vits Female2 | Gptinformal-Persian |
| Glowtts Female | Persian-TTS-Dataset-Famale |
| Glowtts Male | Persian-TTS-Dataset |
| Tacotron2 Female | Persian-TTS-Dataset-Famale |
| Hifigan | Persian-TTS-Dataset-Famale |
| Wavernn | Persian-TTS-Dataset-Famale |
Models Trained on the Those Datasets:
https://www.kaggra.com/datasets/magnoliasis/persian-tts-dataset
https://www.kaggra.com/datasets/magnoliasis/persian-tts-dataset-famale
https://www.kaggra.com/datasets/magnoliasis/persian-tts-dataset-male
https://github.com/karim23657/parsigoo
If you'v created a dataset or found any good data on the web you can share with us here.
pip install -q TTS
sudo apt-get -y install espeak-ng
tts --text "شیش سیخ جیگر" --model_path "best_model.ckpt" --config_path "config.json"
from TTS . api import TTS
tts = TTS ( model_path = "https://huggingface.co/Kamtera/persian-tts-male1-vits/resolve/main/checkpoint_88000.pth" ,
config_path = "https://huggingface.co/Kamtera/persian-tts-male1-vits/resolve/main/config.json" )
tts . tts_to_file ( ".زندگی فقط یک بار است؛ از آن به خوبی استفاده کن" , file_path = 'output.wav' ) from TTS . config import load_config
from TTS . utils . manage import ModelManager
from TTS . utils . synthesizer import Synthesizer
model_path = "config.json" # Absolute path to the model checkpoint.pth
config_path = "best_model.pth" # Absolute path to the model config.json
text = ".زندگی فقط یک بار است؛ از آن به خوبی استفاده کن"
synthesizer = Synthesizer (
model_path , config_path
)
wavs = synthesizer . tts ( text )
synthesizer . save_wav ( wavs , 'sp.wav' )IF YOU WANT MORE Persian Text to Speech Tools: Voice Tools to More Persian Text:
Any Issue About TTS Library:
? If you have any Questions, Feedback, or Suggestions, Feel Free to Reach to me at [email protected] or! I'M Always Happy to Help.
? If you have a question, feedback or suggestion, contact me via [email protected] or telegram! I am happy to be able to help.
https://t.me/persian_tts