Downloads · 30 days
111
7% of all-time downloads
sudoping01/bambara-tts
bambara-tts is a text-to-speech model from sudoping01. Use it when you need text read aloud. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
Text-to-speech synthesis model for Bambara (Bamanankan), a language spoken by over 14 million people primarily in Mali.
Downloads · 30 days
111
7% of all-time downloads
All-time downloads
1.7K
Public
Parameters
36.3M
145 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors145 MB · 100%
From the Hugging Face model README
Text-to-speech synthesis model for Bambara (Bamanankan), a language spoken by over 14 million people primarily in Mali.
pip install transformers torch soundfile
from transformers import VitsModel, AutoTokenizer
import torch
# Load model and tokenizer
model = VitsModel.from_pretrained("sudoping01/bambara-tts")
tokenizer = AutoTokenizer.from_pretrained("sudoping01/bambara-tts")
# Prepare text and generate speech
text = "An filɛ ni ye yɔrɔ minna ni an ye an sigi ka a layɛ yala an bɛ ka baara min kɛ ɛsike a kɛlen don ka Ɲɛ wa ?"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
output = model(**inputs).waveform
# Save output
waveform = output.squeeze().cpu().numpy()
sample_rate = model.config.sampling_rate
import soundfile as sf
sf.write("bambara_output.wav", waveform, sample_rate)
CC BY-NC 4.0 (Attribution-NonCommercial)
@misc{bambara-tts,
author = {sudoping01},
title = {Text-to-Speech Model for Bambara},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/sudoping01/bambara-tts}}
}