chukypedro/african_voice
Preview β’ Updated β’ 5
Text-to-speech model for African languages, fine-tuned using the Spark-TTS / SparkVox framework.
This model follows the official Spark-TTS HuggingFace format:
βββ config.yaml
βββ BiCodec/
β βββ config.yaml
β βββ model.safetensors
βββ LLM/
β βββ config.json
β βββ model.safetensors
β βββ (tokenizer files)
βββ wav2vec2-large-xlsr-53/
βββ config.json
βββ preprocessor_config.json
βββ pytorch_model.bin
# 1. Clone the official Spark-TTS inference repo
# git clone https://github.com/SparkAudio/Spark-TTS.git
# cd Spark-TTS
# 2. Download this model
# from huggingface_hub import snapshot_download
# snapshot_download("NaijaLingo/Spark-TTS-African", local_dir="pretrained_models/Spark-TTS-African")
# 3. Run inference
from cli.SparkTTS import SparkTTS
model = SparkTTS(model_dir="pretrained_models/Spark-TTS-African", device="cuda:0")
# Voice cloning
wav = model.inference(
text="How you dey, hope say you dey fine?",
prompt_speech_path="path/to/reference.wav",
prompt_text="Optional transcript of reference audio",
)
# Controllable TTS (no reference audio needed)
wav = model.inference(
text="Sannu da zuwa, yaya kake?",
gender="female",
pitch="moderate",
speed="moderate",
)
| Component | Details |
|---|---|
| Base LLM | Qwen2.5-0.5B-Instruct |
| Audio Tokenizer | BiCodec (fine-tuned on African voice data) |
| Feature Extractor | wav2vec2-large-xlsr-53 |
| Dataset | chukypedro/african_voice |
| Training Framework | SparkVox |
Apache 2.0