Downloads · 30 days
8
3% of all-time downloads
zakk249/Kinyarwanda_TTS
Kinyarwanda_TTS is a machine learning model from zakk249. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository hosts enhanced version of Meta's MMS-TTS-Kin model, tailored for high-quality Kinyarwanda text-to-speech synthesis.
Downloads · 30 days
8
3% of all-time downloads
All-time downloads
251
Public
Parameters
36.3M
291 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin145 MB · 50%
From the Hugging Face model README
This repository hosts enhanced version of Meta's MMS-TTS-Kin model, tailored for high-quality Kinyarwanda text-to-speech synthesis.
The base model, facebook/mms-tts-kin, serves as the foundation for this enhanced variant.
pip install --upgrade transformers accelerate
from transformers import VitsModel, AutoTokenizer
import torch
model = VitsModel.from_pretrained("zakk249/Kinyarwanda_TTS")
tokenizer = AutoTokenizer.from_pretrained("zakk249/Kinyarwanda_TTS")
text = "text in the Kinyarwanda language"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
output = model(**inputs).waveform
import scipy
scipy.io.wavfile.write("file.wav", rate=model.config.sampling_rate, data=output)
Or displayed in a Jupyter Notebook / Google Colab:
from IPython.display import Audio
Audio(output, rate=model.config.sampling_rate)