Views
No views yet
⚠️ Experimental research model. An early full fine-tune of VoxCPM2 for Yoruba and Yoruba–English code-switched speech. Promising but not production-grade — expect occasional mispronunciations, tone errors, and artifacts.
| Source | Hours | Notes |
|---|---|---|
| YECS (LyngualLabs) | ~95 h | Yoruba–English code-switch, multi-speaker, 16 kHz |
WAXAL Yoruba (google/WaxalNLP) | ~7.5 h | spontaneous |
| Total | ~102 h | pooled, 16 kHz |
1# pip install git+https://github.com/OpenBMB/VoxCPM.git
2from huggingface_hub import snapshot_download
3from voxcpm import VoxCPM
4import soundfile as sf
5
6model_dir = snapshot_download("LyngualLabs/VoxCPM2-Yoruba")
7model = VoxCPM.from_pretrained(model_dir, load_denoiser=False)
8
9# --- voice cloning: a reference clip + its exact transcript ---
10wav = model.generate(
11 text="Mo fẹ́ learn how to code, ṣùgbọ́n mi ò mọ programming language wo ló make sense.",
12 prompt_wav_path="reference.wav",
13 prompt_text="Ìròyìn ti sọ pé the government will ensure electricity tariff goes down ní January.",
14 cfg_value=2.0,
15 inference_timesteps=22,
16)
17sf.write("output.wav", wav, model.tts_model.sample_rate)
18
19# --- or voice-design (no reference): prepend a voice description in parentheses ---
20wav = model.generate(
21 text="(A young Nigerian woman, clear voice) Ẹ kú àárọ̀, ẹ jọ̀ọ́ ẹ jẹ́ ká bẹ̀rẹ̀ ìpàdé.",
22 cfg_value=2.0,
23 inference_timesteps=22,
24)
25sf.write("voice_design.wav", wav, model.tts_model.sample_rate)inference_timesteps (20–25) for smoother audio; cfg_value higher sticks
closer to the reference.google/WaxalNLP) · Part of the WAXAL speech effort · Apache-2.0.