CoolFace
Modelpublic

mlx-community/Fun-CosyVoice3-0.5B-2512-fp16

sourceHugging Faceupdated 9mo agoView on Hugging Face
14likes470downloads
Model Card

mlx-community/Fun-CosyVoice3-0.5B-2512-fp16

This model was converted to MLX format from FunAudioLLM/Fun-CosyVoice3-0.5B-2512 using mlx-audio-plus version 0.1.4.

Usage

bash
pip install -U mlx-audio-plus

Inference Modes

ModeParametersDescription
Cross-lingualref_audioZero-shot TTS (default)
Zero-shotref_audio + ref_textBetter quality with transcription
Instructref_audio + instruct_textStyle control (e.g., "speak slowly")
Voice Conversionsource_audio + ref_audioConvert audio to target voice

Command line

bash
# Cross-lingual (default)
mlx_audio.tts --model mlx-community/Fun-CosyVoice3-0.5B-2512-fp16 --text "Hello!" --ref_audio ref.wav

# Zero-shot (with transcription)
mlx_audio.tts --model mlx-community/Fun-CosyVoice3-0.5B-2512-fp16 --text "Hello!" --ref_audio ref.wav --ref_text "Transcription of ref audio."

# Instruct (style control)
mlx_audio.tts --model mlx-community/Fun-CosyVoice3-0.5B-2512-fp16 --text "Hello!" --ref_audio ref.wav --instruct_text "Speak slowly and calmly"

# Voice Conversion
mlx_audio.tts --model mlx-community/Fun-CosyVoice3-0.5B-2512-fp16 --source_audio source.wav --ref_audio ref.wav

Python

python
from mlx_audio.tts.generate import generate_audio

generate_audio(
    text="Hello, this is CosyVoice 3 on MLX!",
    model="mlx-community/Fun-CosyVoice3-0.5B-2512-fp16",
    ref_audio="reference.wav",
    file_prefix="output",
)