Skip to main content
Qwen3-TTS includes a built-in Gradio web interface for easy testing and demonstration. Launch a local or remote web UI to try all model capabilities without writing code.

Quick Start

Launch the demo with a single command:
Then open your browser to http://localhost:8000

Installation

The demo is included when you install the qwen-tts package:

Command-Line Options

View all available options:

Basic Options

Model Loading Options

Server Options

Generation Parameters

HTTPS Setup for Base Model

When deploying the Base model demo, HTTPS is required for microphone access in modern browsers. Without HTTPS, the microphone recording feature will not work.

Generate SSL Certificate

Create a self-signed certificate for development:
This creates:
  • cert.pem - SSL certificate (valid for 365 days)
  • key.pem - Private key

Launch with HTTPS

Then open 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):
The --share option creates a temporary public URL that expires after 72 hours. Only use for development and demos. For production, use proper HTTPS deployment.

Example Commands

Development

Production

Demo and Sharing

Troubleshooting

Change the port with --port 8001 or find and kill the process using the port:
The Base model requires HTTPS for microphone access. Use the SSL setup commands above to enable HTTPS.
Use the smaller 0.6B model:
Or use CPU (very slow):
Ensure FlashAttention-2 is installed and enabled (default). Use bfloat16 dtype (default). Check GPU utilization with nvidia-smi.
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