v3ucn/CosyVoice_For_Windows
CosyVoice在Windows环境下使用的版本
What it solves
This project brings the CosyVoice text-to-speech model to Windows with an easy-to-use HTTP interface. It removes the typical friction of setting up such models on Windows by providing specific version requirements and optimizations, so you can generate speech and subtitles from text locally without needing cloud services.
How it works
You install Python 3.11, CUDA 12.6, and cuDNN 9.4 for faster inference, then install the required packages. After downloading the pretrained models (from ModelScope), you start the service with python3 api.py. The service exposes a URL like http://localhost:9880/?text=...&speaker=... which returns both an audio file (output.wav) and a subtitle file (output.srt). The project also includes a web demo (webui.py) for interactive testing, and supports multiple inference modes: standard speech synthesis (SFT), zero-shot voice cloning, cross-lingual generation, and instruction-controlled speaking style.
Who it’s for
Developers or researchers who want to run a local text-to-speech service on Windows, especially those who need an API for generating audio and subtitles from Chinese or English text. It’s also suitable for anyone wanting to experiment with voice cloning or style-controlled speech without relying on external APIs.
Highlights
- Simple HTTP API that returns both WAV audio and SRT subtitles in one call.
- Windows-specific setup instructions with performance-boosting versions (Python 3.11, CUDA 12.6, cuDNN 9.4).
- Multiple inference modes: SFT, zero-shot, cross-lingual, and instruct.
- Optional web demo for quick interaction.
- Provides a Docker-based deployment option for gRPC service (advanced users).
Related
- Project
- Project
- Project
- Project