Downloads · 30 days
181
9% of all-time downloads
Kamtera/persian-tts-male-vits
persian-tts-male-vits is a text-to-speech model from Kamtera. Use it when you need text read aloud. It is set up for TTS. The card lists the license as openrail.
- persian-tts-male vits model for text to speech purposes. - Persian فارسی - Single-speaker male voice - finetuned persian-tts-female-vits model on persian-tts-dataset-male dataset - GitHub Repo
Downloads · 30 days
181
9% of all-time downloads
All-time downloads
2K
Public
Repo size
7.4 GB
Likes
7
Public
Click a slice to open those files.
.pth7 GB · 95%
From the Hugging Face model README
finetuned <span style="color: #d0212d;font-weight: bold;">persian-tts-female-vits</span> model on <span style="color: #d0212d;font-weight: bold;">persian-tts-dataset-male</span> dataset
Install dependencies:
!pip install TTS
!sudo apt-get -y install espeak-ng
Generate audio from text:
!tts --text "زندگی فقط یک بار است؛ از آن به خوبی استفاده کن" \
--model_path "best_model_91323.pth" \
--config_path "config.json" \
--out_path "speech1.wav"
from TTS.config import load_config
from TTS.utils.manage import ModelManager
from TTS.utils.synthesizer import Synthesizer
config="config.json"
model="best_model_91323.pth"
model_path =model # Absolute path to the model checkpoint.pth
config_path =config # Absolute path to the model config.json
text=".زندگی فقط یک بار است؛ از آن به خوبی استفاده کن"
synthesizer = Synthesizer(
model_path, config_path
)
wavs = synthesizer.tts(text)
synthesizer.save_wav(wavs, 'sp.wav')
Display audio:
import IPython
IPython.display.Audio('sp.wav')
Use the code below to get started with the model.
<details> <summary> Click to expand </summary>More information needed
</details>