CosyVoice-300M-SFT
Developed by Alibaba FunAudioLLM, CosyVoice-300M-SFT is a 300M supervised fine-tuned multilingual speech synthesis model offering built-in preset voices and low-latency streaming audio generation.
What you can do
- Multilingual audiobook narration
- Real-time customer service voice
- Expressive conversational speech
Input & output
- Input
- Text script paired with a built-in SFT speaker ID (supports Chinese, English, Japanese, Cantonese, and Korean)
- Output
- Natural streaming or full-clip speech waveform audio (22.05 kHz WAV/PCM)
Try a prompt like this
[Speaker: 中文女] 欢迎使用本地私有化语音合成服务,当前系统运行平稳,下面为您播报今日算力集群运行简报。
Things to know
Apache 2.0 license; requires only ~3–4GB VRAM on a single GPU. This SFT checkpoint is tuned for built-in preset speakers—use CosyVoice-300M base or CosyVoice2 if zero-shot voice cloning from custom audio is needed.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/audio/speech- Model repo ID
iic/CosyVoice-300M-SFT
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
speech = client.audio.speech.create(
model="iic/CosyVoice-300M-SFT",
voice="default",
input="[Speaker: 中文女] 欢迎使用本地私有化语音合成服务,当前系统运行平稳,下面为您播报今日算力集群运行简报。",
)
speech.write_to_file("speech.mp3")Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide