Launch an interactive Gradio web interface for Qwen3-TTS
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.
# Specify model checkpointqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice# Or use the -c flagqwen-tts-demo -c Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice# Specify IP and portqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --ip 0.0.0.0 --port 8000# Use specific GPUqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --device cuda:0
# Custom IP and portqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --ip 127.0.0.1 --port 7860# Enable public sharing (creates public Gradio link)qwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --share# Set concurrency limitqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --concurrency 16
When deploying the Base model demo, HTTPS is required for microphone access in modern browsers. Without HTTPS, the microphone recording feature will not work.
Your browser will show a security warning for self-signed certificates. This is expected for development. Click “Advanced” and “Proceed to site” to continue.
# Bind to all interfacesqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --ip 0.0.0.0 --port 8000# Find your local IPifconfig # Linux/Macipconfig # Windows# Access from other devices# http://<your-local-ip>:8000
# Launch with default localhostqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --port 8000# VS Code will detect the port and offer to forward it# Click "Open in Browser" from the notification
qwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --share# Output will include:# Running on public URL: https://xxxxxxxx.gradio.live
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.
# Quick local testingqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice# With custom parametersqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice \ --temperature 0.8 \ --top-k 30# Test on specific GPUqwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --device cuda:1