Quick Start
Launch the demo with a single command:http://localhost:8000
Installation
The demo is included when you install theqwen-tts package:
Command-Line Options
View all available options:Basic Options
Model Loading Options
Server Options
Generation Parameters
HTTPS Setup for Base Model
Generate SSL Certificate
Create a self-signed certificate for development:cert.pem- SSL certificate (valid for 365 days)key.pem- Private key
Launch with HTTPS
https://<your-ip>:8000 in your browser.
Your browser will show a security warning for self-signed certificates. This is expected for development. Click “Advanced” and “Proceed to site” to continue.
Production SSL Certificate
For production deployments, use a real certificate from Let’s Encrypt or your certificate authority:Using the Web Interface
CustomVoice Demo
The CustomVoice demo interface includes:- Text input - Enter text to synthesize
- Language selection - Choose target language or Auto
- Speaker dropdown - Select from 9 premium speakers
- Instruction field - Optional natural language control (1.7B only)
- Generate button - Create audio
- Audio player - Listen to and download results
VoiceDesign Demo
The VoiceDesign demo interface includes:- Text input - Enter text to synthesize
- Language selection - Choose target language or Auto
- Voice description - Describe desired voice characteristics
- Generate button - Create audio with custom voice
- Audio player - Listen to and download results
Base Model Demo (Voice Cloning)
The Base model demo has two tabs:Tab 1: Clone & Generate
- Reference audio upload - Upload or record 3+ seconds of audio
- Reference text - Transcript of reference audio
- X-vector only checkbox - Use speaker embedding only (lower quality)
- Target text - New text to synthesize
- Language selection - Target language
- Generate button - Clone voice and generate
- Audio player - Listen to and download results
Tab 2: Save / Load Voice
- Save voice - Create reusable voice file from reference audio
- Load voice - Upload saved voice file and generate new content
Remote Access
Local Network Access
Access from other devices on your local network:VS Code Port Forwarding
When running in VS Code, use port forwarding:Public Access with Gradio Share
Create a temporary public URL (development only):Example Commands
Development
Production
Demo and Sharing
Troubleshooting
Port already in use
Port already in use
Change the port with
--port 8001 or find and kill the process using the port:Microphone not working (Base model)
Microphone not working (Base model)
The Base model requires HTTPS for microphone access. Use the SSL setup commands above to enable HTTPS.
Out of memory
Out of memory
Use the smaller 0.6B model:Or use CPU (very slow):
Slow generation
Slow generation
Ensure FlashAttention-2 is installed and enabled (default). Use bfloat16 dtype (default). Check GPU utilization with
nvidia-smi.Can't access from other devices
Can't access from other devices
Make sure you’re using
--ip 0.0.0.0 and your firewall allows the port. Check your local IP with ifconfig or ipconfig.Complete Reference
All command-line options:Next Steps
- Learn Python API usage in Custom Voice
- Explore Voice Design capabilities
- Try Voice Cloning programmatically
- See DashScope API for DashScope cloud API