Instructions to use techolise/akan-twi-speaker17-tts-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VoxCPM
How to use techolise/akan-twi-speaker17-tts-v2 with VoxCPM:
import soundfile as sf from voxcpm import VoxCPM model = VoxCPM.from_pretrained("techolise/akan-twi-speaker17-tts-v2") wav = model.generate( text="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech.", prompt_wav_path=None, # optional: path to a prompt speech for voice cloning prompt_text=None, # optional: reference text cfg_value=2.0, # LM guidance on LocDiT, higher for better adherence to the prompt, but maybe worse inference_timesteps=10, # LocDiT inference timesteps, higher for better result, lower for fast speed normalize=True, # enable external TN tool denoise=True, # enable external Denoise tool retry_badcase=True, # enable retrying mode for some bad cases (unstoppable) retry_badcase_max_times=3, # maximum retrying times retry_badcase_ratio_threshold=6.0, # maximum length restriction for bad case detection (simple but effective), it could be adjusted for slow pace speech ) sf.write("output.wav", wav, 16000) print("saved: output.wav") - Notebooks
- Google Colab
- Kaggle
π¬π Akoma Akan (Asante Twi) TTS V2 β Speaker 17 Master Voice
Production-grade Text-to-Speech system for Asante Twi (Akan), trained on the 15,560-sample multi-speaker speech corpus (ghanaopendata/twi-speech-text-multispeaker-16k) and specialized on the native female voice of Speaker 17 (Age 21).
π Key Features
- Multi-Speaker Pronunciation Pretrained: Trained across 15,560 native Twi sentences to eliminate foreign accents and syllable miscuing.
- Twi Text Normalizer Integrated: Built-in support for Twi numbers, currency (GHβ΅), dates, and phonetic diacritics (Ι, Ι).
- Speaker 17 Master Voice: Warm, melodic, 21-year-old native female voice profile.
- High-Fidelity Diffusion: Powered by Continuous Flow Matching (CFM) DiT with Neural ZipEnhancer.
π» Quick Python Usage
`python from voxcpm import VoxCPM from huggingface_hub import snapshot_download import soundfile as sf
1. Load Base & Speaker 17 V2 Model
base_dir = snapshot_download('ghananlpcommunity/ghana-tts-36k') spk17_dir = snapshot_download('techolise/akan-twi-speaker17-tts-v2')
model = VoxCPM(base_dir, enable_denoiser=True) anchor_wav = f'{spk17_dir}/speaker_17_dataset/speaker17_golden_anchor.wav' anchor_txt = 'AtoyerΙnkyΙm asi wΙ bea a wΙgu fangoo Ιgu ΙhyΙn mu.'
2. Synthesize ANY Twi sentence
text = 'Mema mo akye me nuanom nyinaa! Wo ho te sΙn? Akwaaba ba Ghana!' wav = model.generate( text=text, prompt_wav_path=anchor_wav, prompt_text=anchor_txt, cfg_value=2.4, inference_timesteps=26 )
sf.write('twi_output.wav', wav, 16000) `
π Live Web Studio
- Web App: https://techolise-akan-twi-tts-web.hf.space
- Hugging Face Space: https://huggingface.co/spaces/techolise/akan-twi-tts-web
- Downloads last month
- 19