Downloads · 30 days
298
6% of all-time downloads
Kamtera/persian-tts-female-vits
persian-tts-female-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-female vits model for text to speech purposes. - Persian فارسی - Single-speaker female voice - Trained on <span style="color: 0072ff;font-weight: bold;"persian-tts-dataset-male</span dataset - GitHub Repo
Downloads · 30 days
298
6% of all-time downloads
All-time downloads
5.2K
Public
Repo size
8.1 GB
Likes
26
Public
Click a slice to open those files.
.pth7 GB · 98%
From the Hugging Face model README
Install dependencies:
!pip install TTS
!sudo apt-get -y install espeak-ng
Generate audio from text:
!tts --text "زندگی فقط یک بار است؛ از آن به خوبی استفاده کن" \
--model_path ".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_30824.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>