karim23657/Persian-tts-coqui
À propos
Persian/Farsi text to speech(TTS) training using coqui tts
IA et apprentissage automatiqueProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalPersian-tts-coqui

Persian/Farsi text to speech(TTS) training using coqui tts (Online demo :
)
This repository contains sample codes for training text to speech models
Feel free to ask your questions issues
Join our telegram channel : https://t.me/persian_tts
عضو کانال تلگرام ما شوید : https://t.me/persian_tts
How to train ?
Sample codes and notebooks are available at recepies folder
Pretrained models
These are models you can use to test or finetune
- Share your trained models here
- :hugs: huggingface Demo :
Datasets
Models trained on these datasets :
https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset
https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-famale
https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset-male
If you'v created a dataset or found any good datasets on the web you can share with us here.
Test trained model
- install TTS and Espeak
pip install -q TTS
sudo apt-get -y install espeak-ng
- predict one text from commandline
tts --text "شیش سیخ جیگر" --model_path "best_model.ckpt" --config_path "config.json"
- From python API
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')
- Another way :
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')
usefull links
If you want more persian text to speech tools: ابزار ها صوت به متن فارسی بیشتر :
Any issue about tts library:
❓ Questions
🤩 If you have any questions, feedback, or suggestions, feel free to reach out to me at [email protected] or ! I'm always happy to help.
🤩 در صورتی که سوال، بازخورد یا پیشنهادی دارید، با من از طریق ایمیل [email protected] یا تلگرام در تماس باشید! خوشحال میشم که بتونم کمک کنم.
Explorer des projets similaires
Chargement…