Qwen-Audio-TTS

Copied!
Add to Compare
Realtime-Text-to-Speech

Overview

Realtime-Text-to-Speech

Qwen-Audio-3.0-TTS-Plus is a high-performance speech synthesis model, designed for high-quality speech generation scenarios. Compared with the previous version, it supports more low-resource languages and Chinese dialects, significantly improves dialect authenticity, and enhances free-style instruction following and fine-grained tag control for more accurate control over emotion, tone, character, speaking rate, volume, and synthesis style. It is also more robust under noisy and reverberant acoustic conditions, with further improvements in audio quality, clarity, resolution, and overall expressiveness. The Plus version focuses more on synthesis quality and detailed expressiveness, making it suitable for professional scenarios with higher requirements for audio quality, naturalness, and expressiveness, such as content creation, audiobooks, film and video dubbing, brand voice design, and premium speech services.

Input

Text

Output

Audio

Features

Prefix Completion

Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docs

Function Calling

Use function calling to connect large language models with external tools and systems.View docs

Cache

Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docs

Structured Outputs

Structured Outputs help ensure the model returns a JSON string in the expected format.View docs

Batches

Web Search

Enable web search so the model can answer with real-time retrieved data.View docs

feature.funeTuning

Pricing

  • TTS
    $0.2Per 10,000 characters

Rate Limits

  • RPMRequests Per Minute
    180

API Reference

Get API Key
Copied!
1234567891011121314151617181920
# 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://dashscope-intl.aliyuncs.com/api-ws/v1/inference'

model = "qwen-audio-3.0-tts-plus"

#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)