How to use from the
Use from the
MLX library
# Download the model from the Hub
pip install huggingface_hub[hf_xet]

huggingface-cli download --local-dir Fun-CosyVoice3-0.5B-2512-fp16 mlx-community/Fun-CosyVoice3-0.5B-2512-fp16

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

pip install -U mlx-audio-plus

Inference Modes

Mode Parameters Description
Cross-lingual ref_audio Zero-shot TTS (default)
Zero-shot ref_audio + ref_text Better quality with transcription
Instruct ref_audio + instruct_text Style control (e.g., "speak slowly")
Voice Conversion source_audio + ref_audio Convert audio to target voice

Command line

# 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

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",
)
Downloads last month
332
Safetensors
Model size
0.9B params
Tensor type
F16
ยท
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for mlx-community/Fun-CosyVoice3-0.5B-2512-fp16

Finetuned
(17)
this model

Space using mlx-community/Fun-CosyVoice3-0.5B-2512-fp16 1