Audio & MusicOpen source codeFunAudioLLM/CosyVoice

CosyVoice: Open Source AI Repository & Self-Hosting Guide

Alibaba FunAudioLLM open-source multilingual LLM text-to-speech engine supporting ~150ms bi-directional streaming and cross-lingual voice cloning.

GitHub Stars
24,633 stars
Repository License
Apache-2.0
Last Push (UTC)
May 25, 2026
Check the repo's license. Model weights may have a different license.
Only clone voices you have permission to use.
git clone https://github.com/FunAudioLLM/CosyVoice.git
View on GitHub
Installpip install -r requirements.txt && python webui.py --port 50000

CosyVoice: Architecture & Practical Workflow

CosyVoice models speech tokens autoregressively via an LLM coupled with an optimal-transport conditional flow matching decoder. It handles English, Chinese, Japanese, Korean, and major European languages with natural-language instructions for emotion, accent, and pacing.

Recommended End-to-End Pipeline

Deploy CosyVoice on a CUDA GPU behind FastAPI streaming endpoints to power low-latency local voice agents alongside WhisperX or faster-whisper ASR.

Runtime Target
Self-Hosted / Local GPU (GitHub)
Primary Users
Developers, Voice Agents, Global Content Creators
Code License
Apache-2.0
Focus Topics
open-source, github, self-hosted, tts, multilingual

Quick Setup & Installation Steps

Platform target: Self-Hosted / Local GPU (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/FunAudioLLM/CosyVoice.git && cd CosyVoice`.
  2. 2Review the Apache-2.0 license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `pip install -r requirements.txt && python webui.py --port 50000` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Deploy CosyVoice on a CUDA GPU behind FastAPI streaming endpoints to power low-latency local voice agents alongside WhisperX or faster-whisper ASR.)

Hardware & VRAM Notes

Hardware & VRAM guidance: Requires PyTorch/CUDA hardware for real-time local streaming

GPU & VRAM

Requires PyTorch/CUDA hardware for real-time local streaming

System RAM & Storage

16 GB–32 GB system RAM recommended plus 10 GB–40 GB free SSD space for container images, Python dependencies, and model weights.

Runtime Target

Self-Hosted / Local GPU (GitHub)

Strengths & Best For

  • Bi-directional streaming with ~150ms latency
  • Cross-lingual voice cloning across English, Japanese, Korean, European & Chinese languages
  • Natural-language instruction control for emotion, speed, and style
  • Best suited for: Developers, Voice Agents, Global Content Creators

Limitations & Caveats

  • Requires PyTorch/CUDA hardware for real-time local streaming
  • Complex multi-speaker setups need technical configuration
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Audio)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted CosyVoice vs. Hosted Alternatives (Coqui XTTS & TTSMaker)
FactorCosyVoice (Self-Hosted)Coqui XTTSTTSMaker
Execution & PrivacyRuns locally via Self-Hosted / Local GPU (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaApache-2.0 code; bound only by local CPU/GPU hardware.Open Source; subject to vendor free-tier limits or paid plans.Free; subject to vendor free-tier limits or paid plans.
Primary FitBi-directional streaming with ~150ms latency; Cross-lingual voice cloning across English, Japanese, Korean, European & Chinese languagesPopular open-source multilingual voice cloning and text-to-speech engine cloning any voice from a 6-second audio clip.Free online text-to-speech converter supporting 100+ languages and generous free character allowances with MP3/WAV export.
Key Trade-offRequires PyTorch/CUDA hardware for real-time local streamingRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for CosyVoice workflows.

Silicon Valley Founder Voiceover & ScriptAudio · Voiceover, Audio, Script, Founder
Open in Studio
British BBC Documentary Narrator Voice Profile & ScriptAudio · Voiceover, Documentary, Narrator, British
Open in Studio

More Open Source Audio & Music Repositories

Frequently Asked Questions

What does CosyVoice do and how does it work?

CosyVoice (FunAudioLLM/CosyVoice) is an open-source audio & music project with 24,633 stars on GitHub. Alibaba FunAudioLLM open-source multilingual LLM text-to-speech engine supporting ~150ms bi-directional streaming and cross-lingual voice cloning. CosyVoice models speech tokens autoregressively via an LLM coupled with an optimal-transport conditional flow matching decoder. It handles English, Chinese, Japanese, Korean, and major European languages with natural-language instructions for emotion, accent, and pacing.

Is CosyVoice free to self-host and use commercially?

CosyVoice provides open source code licensed under Apache-2.0. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does CosyVoice require?

CosyVoice targets Self-Hosted / Local GPU (GitHub). Typical installation runs via `pip install -r requirements.txt && python webui.py --port 50000`. Requires PyTorch/CUDA hardware for real-time local streaming

How does self-hosting CosyVoice compare to hosted tools like Coqui XTTS?

Self-hosting CosyVoice gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted / Local GPU (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, Coqui XTTS (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is CosyVoice actively maintained and what workflow fits it best?

Repository metadata records 24,633 stars on GitHub with the latest recorded push on May 25, 2026. Deploy CosyVoice on a CUDA GPU behind FastAPI streaming endpoints to power low-latency local voice agents alongside WhisperX or faster-whisper ASR.