Qwen-Audio-3.1-TTS-Next
NEWOverview
Qwen-Audio-3.1-TTS-Next is an AudioGen model designed for unified audio generation. Going beyond conventional TTS systems that focus solely on speech synthesis, it can generate complete audio content in a single pass from inputs such as text, timestamps, and reference audio, seamlessly combining speech, sound effects, ambient sounds, background music, and more. The model supports a wide range of tasks, including multilingual TTS, single-speaker speech, multi-speaker dialogue, podcasts, cinematic soundscapes, music generation, ambient audio, and sound effects. Its key strengths include more natural and expressive speech, consistent voice identity, flexible timing control, and high-quality music and soundscape generation. These capabilities make it well suited for content creation, short-form video, podcasts, film and television production, game audio, and other professional audio creation scenarios.
Input
Output
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsPricing
- Input$0.93Per 1M tokens
- Output$1.87Per 1M tokens
Rate Limits
- RPMRequests Per Minute180
API Reference
Call API# coding=utf-8
import dashscope
from dashscope.audio.tts_v2 import *
# If the API Key is not configured in the environment variable, your-api-key needs to be replaced with your own API Key
# dashscope.api_key = "your-api-key"
dashscope.base_websocket_api_url='wss://ap-southeast-1.maas.qwencloudapi.com/api-ws/v1/inference'
model = "qwen-audio-3.1-tts-next"
#Please enter the correct voice below.
voice = ""
synthesizer = SpeechSynthesizer(model=model, voice=voice)
audio = synthesizer.call("How is the weather today?")
with open('output.mp3', 'wb') as f:
f.write(audio)