Views
No views yet
pip install -U mlx-audio1from mlx_audio.tts.utils import load
2
3model = load("mlx-community/Voxtral-4B-TTS-2603-mlx-bf16")
4
5for result in model.generate(
6 text="Hello, this is a test of Voxtral text-to-speech!",
7 voice="casual_male",
8):
9 # result.audio is an mx.array of 24kHz audio samples
10 print(f"Generated {result.audio_duration} of audio")casual_male, casual_female, cheerful_female, neutral_male, neutral_femalefr_male, fr_female | Spanish: es_male, es_female | German: de_male, de_femaleit_male, it_female | Portuguese: pt_male, pt_female | Dutch: nl_male, nl_femalear_male | Hindi: hi_male, hi_female| Variant | Short RTF | Long RTF | Size |
|---|---|---|---|
| 4-bit | 0.97x | 0.74x | ~2.5GB |
| 6-bit | 1.15x | 1.07x | ~3.5GB |
| bf16 | 6.50x | 6.32x | ~8GB |