Jubintgh / Persian-tts-coqui

Persian/Farsi text to speech(TTS) training using coqui tts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Persian-tts-coqui

Persian/Farsi text to speech(TTS) training using coqui tts
This repository contains sample codes for training text to speech models
Feel free to ask your questions issues

این مخزن شامل نمونه کدهای لازم برای آموزش مدل های متن به صوت فارسی است سوالاتتان را در issues مطرح کنید

How to train ?

Sample codes and notebooks are available at recepies folder

نمونه کد ها و نوت بوک ها در پوشه recepies موجود هستند

Pretrained models

These are models you can use to test or finetune

مدل هایی که می توانید برای امتحان کردن یا finetune کردن از آنها استفاده کنید
Model Dataset
vits female persian-tts-dataset-famale
vits male persian-tts-dataset
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
  • Share your trained models here

Datasets

Models trained on these datasets :

Use trained model

  • predict one text from commandline
tts --text "شیش سیخ جیگر" --model_path "best_model.ckpt" --config_path "config.json"
  • From python API
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

About

Persian/Farsi text to speech(TTS) training using coqui tts

License:MIT License


Languages

Language:Jupyter Notebook 79.7%Language:Python 20.3%