ujs/hinglish
Viewer • Updated • 29k • 114 • 3
How to use SwarajSolanke-turtle/F5-TTS-Hinglish with F5-TTS:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
Fine-tuned F5-TTS for Hinglish (Hindi-English code-switched) TTS with zero-shot voice cloning.
ujs/hinglish — OpenSLR-104 (Hindi-English Code-Switching, IIT Guwahati).
from f5_tts.api import F5TTS
import soundfile as sf
tts = F5TTS(
model_type="F5-TTS",
ckpt_file="path/to/model_last.pt",
vocab_file="path/to/vocab.txt",
)
wav, sr, _ = tts.infer(
ref_file="reference.wav", # 3-10 s of target speaker
ref_text="yaar kya scene hai", # transcript of ref audio
gen_text="aaj ki meeting cancel ho gayi, let's go for lunch",
)
sf.write("output.wav", wav, sr)
Base model
SPRINGLab/F5-Hindi-24KHz