simone00 commited on
Commit
65f5f9c
·
verified ·
1 Parent(s): fc1533d

Upload complete model

Browse files
README.md ADDED
@@ -0,0 +1,1315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ # Qwen3-TTS
6
+
7
+ ## Overview
8
+ ### Introduction
9
+
10
+ <p align="center">
11
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-TTS-Repo/qwen3_tts_introduction.png" width="90%"/>
12
+ <p>
13
+
14
+ Qwen3-TTS covers 10 major languages (Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, and Italian) as well as multiple dialectal voice profiles to meet global application needs. In addition, the models feature strong contextual understanding, enabling adaptive control of tone, speaking rate, and emotional expression based on instructions and text semantics, and they show markedly improved robustness to noisy input text. Key features:
15
+
16
+ * **Powerful Speech Representation**: Powered by the self-developed Qwen3-TTS-Tokenizer-12Hz, it achieves efficient acoustic compression and high-dimensional semantic modeling of speech signals. It fully preserves paralinguistic information and acoustic environmental features, enabling high-speed, high-fidelity speech reconstruction through a lightweight non-DiT architecture.
17
+ * **Universal End-to-End Architecture**: Utilizing a discrete multi-codebook LM architecture, it realizes full-information end-to-end speech modeling. This completely bypasses the information bottlenecks and cascading errors inherent in traditional LM+DiT schemes, significantly enhancing the model’s versatility, generation efficiency, and performance ceiling.
18
+ * **Extreme Low-Latency Streaming Generation**: Based on the innovative Dual-Track hybrid streaming generation architecture, a single model supports both streaming and non-streaming generation. It can output the first audio packet immediately after a single character is input, with end-to-end synthesis latency as low as 97ms, meeting the rigorous demands of real-time interactive scenarios.
19
+ * **Intelligent Text Understanding and Voice Control**: Supports speech generation driven by natural language instructions, allowing for flexible control over multi-dimensional acoustic attributes such as timbre, emotion, and prosody. By deeply integrating text semantic understanding, the model adaptively adjusts tone, rhythm, and emotional expression, achieving lifelike “what you imagine is what you hear” output.
20
+
21
+
22
+ ### Model Architecture
23
+
24
+ <p align="center">
25
+ <img src="https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-TTS-Repo/overview.png" width="80%"/>
26
+ <p>
27
+
28
+ ### Released Models Description and Download
29
+
30
+ Below is an introduction and download information for the Qwen3-TTS models that have already been released. Other models mentioned in the technical report will be released in the near future. Please select and download the model that fits your needs.
31
+
32
+ | Tokenizer Name | Description |
33
+ |---------------------------------|-------------|
34
+ | Qwen3-TTS-Tokenizer-12Hz | The Qwen3-TTS-Tokenizer-12Hz model which can encode the input speech into codes and decode them back into speech. |
35
+
36
+
37
+ | Model | Features | Language Support | Streaming | Instruction Control |
38
+ |---|---|---|---|---|
39
+ | Qwen3-TTS-12Hz-1.7B-VoiceDesign | Performs voice design based on user-provided descriptions. | Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, Italian | ✅ | ✅ |
40
+ | Qwen3-TTS-12Hz-1.7B-CustomVoice | Provides style control over target timbres via user instructions; supports 9 premium timbres covering various combinations of gender, age, language, and dialect. | Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, Italian | ✅ | ✅ |
41
+ | Qwen3-TTS-12Hz-1.7B-Base | Base model capable of 3-second rapid voice clone from user audio input; can be used for fine-tuning (FT) other models. | Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, Italian | ✅ | |
42
+ | Qwen3-TTS-12Hz-0.6B-CustomVoice | Supports 9 premium timbres covering various combinations of gender, age, language, and dialect. | Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, Italian | ✅ | |
43
+ | Qwen3-TTS-12Hz-0.6B-Base | Base model capable of 3-second rapid voice clone from user audio input; can be used for fine-tuning (FT) other models. | Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, Italian | ✅ | |
44
+
45
+ During model loading in the qwen-tts package or vLLM, model weights will be automatically downloaded based on the model name. However, if your runtime environment is not conducive to downloading weights during execution, you can refer to the following commands to manually download the model weights to a local directory:
46
+
47
+ ```bash
48
+ # Download through ModelScope (recommended for users in Mainland China)
49
+ pip install -U modelscope
50
+ modelscope download --model Qwen/Qwen3-TTS-Tokenizer-12Hz --local_dir ./Qwen3-TTS-Tokenizer-12Hz
51
+ modelscope download --model Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --local_dir ./Qwen3-TTS-12Hz-1.7B-CustomVoice
52
+ modelscope download --model Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign --local_dir ./Qwen3-TTS-12Hz-1.7B-VoiceDesign
53
+ modelscope download --model Qwen/Qwen3-TTS-12Hz-1.7B-Base --local_dir ./Qwen3-TTS-12Hz-1.7B-Base
54
+ modelscope download --model Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice --local_dir ./Qwen3-TTS-12Hz-0.6B-CustomVoice
55
+ modelscope download --model Qwen/Qwen3-TTS-12Hz-0.6B-Base --local_dir ./Qwen3-TTS-12Hz-0.6B-Base
56
+
57
+ # Download through Hugging Face
58
+ pip install -U "huggingface_hub[cli]"
59
+ huggingface-cli download Qwen/Qwen3-TTS-Tokenizer-12Hz --local-dir ./Qwen3-TTS-Tokenizer-12Hz
60
+ huggingface-cli download Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --local-dir ./Qwen3-TTS-12Hz-1.7B-CustomVoice
61
+ huggingface-cli download Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign --local-dir ./Qwen3-TTS-12Hz-1.7B-VoiceDesign
62
+ huggingface-cli download Qwen/Qwen3-TTS-12Hz-1.7B-Base --local-dir ./Qwen3-TTS-12Hz-1.7B-Base
63
+ huggingface-cli download Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice --local-dir ./Qwen3-TTS-12Hz-0.6B-CustomVoice
64
+ huggingface-cli download Qwen/Qwen3-TTS-12Hz-0.6B-Base --local-dir ./Qwen3-TTS-12Hz-0.6B-Base
65
+ ```
66
+
67
+
68
+ ## Quickstart
69
+
70
+ ### Environment Setup
71
+
72
+ The easiest way to quickly use Qwen3-TTS is to install the `qwen-tts` Python package from PyPI. This will pull in the required runtime dependencies and allow you to load any released Qwen3-TTS model. We recommend using a **fresh, isolated environment** to avoid dependency conflicts with existing packages. You can create a clean Python 3.12 environment like this:
73
+
74
+ ```bash
75
+ conda create -n qwen3-tts python=3.12 -y
76
+ conda activate qwen3-tts
77
+ ```
78
+
79
+ then run:
80
+
81
+ ```bash
82
+ pip install -U qwen-tts
83
+ ```
84
+
85
+ If you want to develop or modify the code locally, install from source in editable mode.
86
+
87
+ ```bash
88
+ git clone https://github.com/QwenLM/Qwen3-TTS.git
89
+ cd Qwen3-TTS
90
+ pip install -e .
91
+ ```
92
+
93
+ Additionally, we recommend using FlashAttention 2 to reduce GPU memory usage.
94
+
95
+ ```bash
96
+ pip install -U flash-attn --no-build-isolation
97
+ ```
98
+
99
+ If your machine has less than 96GB of RAM and lots of CPU cores, run:
100
+
101
+ ```bash
102
+ MAX_JOBS=4 pip install -U flash-attn --no-build-isolation
103
+ ```
104
+
105
+ Also, you should have hardware that is compatible with FlashAttention 2. Read more about it in the official documentation of the [FlashAttention repository](https://github.com/Dao-AILab/flash-attention). FlashAttention 2 can only be used when a model is loaded in `torch.float16` or `torch.bfloat16`.
106
+
107
+
108
+ ### Python Package Usage
109
+
110
+ After installation, you can import `Qwen3TTSModel` to run custom voice TTS, voice design, and voice clone. The model weights can be specified either as a Hugging Face model id (recommended) or as a local directory path you downloaded. For all the `generate_*` functions below, besides the parameters shown and explicitly documented, you can also pass generation kwargs supported by Hugging Face Transformers `model.generate`, e.g., `max_new_tokens`, `top_p`, etc.
111
+
112
+ #### Custom Voice Generate
113
+
114
+ For custom voice models (`Qwen3-TTS-12Hz-1.7B/0.6B-CustomVoice`), you just need to call `generate_custom_voice`, passing a single string or a batch list, along with `language`, `speaker`, and optional `instruct`. You can also call `model.get_supported_speakers()` and `model.get_supported_languages()` to see which speakers and languages the current model supports.
115
+
116
+ ```python
117
+ import torch
118
+ import soundfile as sf
119
+ from qwen_tts import Qwen3TTSModel
120
+
121
+ model = Qwen3TTSModel.from_pretrained(
122
+ "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice",
123
+ device_map="cuda:0",
124
+ dtype=torch.bfloat16,
125
+ attn_implementation="flash_attention_2",
126
+ )
127
+
128
+ # single inference
129
+ wavs, sr = model.generate_custom_voice(
130
+ text="其实我真的有发现,我是一个特别善于观察别人情绪的人。",
131
+ language="Chinese", # Pass `Auto` (or omit) for auto language adaptive; if the target language is known, set it explicitly.
132
+ speaker="Vivian",
133
+ instruct="用特别愤怒的语气说", # Omit if not needed.
134
+ )
135
+ sf.write("output_custom_voice.wav", wavs[0], sr)
136
+
137
+ # batch inference
138
+ wavs, sr = model.generate_custom_voice(
139
+ text=[
140
+ "其实我真的有发现,我是一个特别善于观察别人情绪的人。",
141
+ "She said she would be here by noon."
142
+ ],
143
+ language=["Chinese", "English"],
144
+ speaker=["Vivian", "Ryan"],
145
+ instruct=["", "Very happy."]
146
+ )
147
+ sf.write("output_custom_voice_1.wav", wavs[0], sr)
148
+ sf.write("output_custom_voice_2.wav", wavs[1], sr)
149
+ ```
150
+
151
+ For `Qwen3-TTS-12Hz-1.7B/0.6B-CustomVoice` models, the supported speaker list and speaker descriptions are provided below. We recommend using each speaker’s native language for the best quality. Of course, each speaker can speak any language supported by the model.
152
+
153
+ | Speaker | Voice Description | Native language |
154
+ | --- | --- | --- |
155
+ | Vivian | Bright, slightly edgy young female voice. | Chinese |
156
+ | Serena | Warm, gentle young female voice. | Chinese |
157
+ | Uncle_Fu | Seasoned male voice with a low, mellow timbre. | Chinese |
158
+ | Dylan | Youthful Beijing male voice with a clear, natural timbre. | Chinese (Beijing Dialect) |
159
+ | Eric | Lively Chengdu male voice with a slightly husky brightness. | Chinese (Sichuan Dialect) |
160
+ | Ryan | Dynamic male voice with strong rhythmic drive. | English |
161
+ | Aiden | Sunny American male voice with a clear midrange. | English |
162
+ | Ono_Anna | Playful Japanese female voice with a light, nimble timbre. | Japanese |
163
+ | Sohee | Warm Korean female voice with rich emotion. | Korean |
164
+
165
+ #### Voice Design
166
+
167
+ For the voice design model (`Qwen3-TTS-12Hz-1.7B-VoiceDesign`), you can use `generate_voice_design` to provide the target text and a natural-language `instruct` description.
168
+
169
+ ```python
170
+ import torch
171
+ import soundfile as sf
172
+ from qwen_tts import Qwen3TTSModel
173
+
174
+ model = Qwen3TTSModel.from_pretrained(
175
+ "Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign",
176
+ device_map="cuda:0",
177
+ dtype=torch.bfloat16,
178
+ attn_implementation="flash_attention_2",
179
+ )
180
+
181
+ # single inference
182
+ wavs, sr = model.generate_voice_design(
183
+ text="哥哥,你回来啦,人家等了你好久好久了,要抱抱!",
184
+ language="Chinese",
185
+ instruct="体现撒娇稚嫩的萝莉女声,音调偏高且起伏明显,营造出黏人、做作又刻意卖萌的听觉效果。",
186
+ )
187
+ sf.write("output_voice_design.wav", wavs[0], sr)
188
+
189
+ # batch inference
190
+ wavs, sr = model.generate_voice_design(
191
+ text=[
192
+ "哥哥,你回来啦,人家等了你好久好久了,要抱抱!",
193
+ "It's in the top drawer... wait, it's empty? No way, that's impossible! I'm sure I put it there!"
194
+ ],
195
+ language=["Chinese", "English"],
196
+ instruct=[
197
+ "体现撒娇稚嫩的萝莉女声,音调偏高且起伏明显,营造出黏人、做作又刻意卖萌的听觉效果。",
198
+ "Speak in an incredulous tone, but with a hint of panic beginning to creep into your voice."
199
+ ]
200
+ )
201
+ sf.write("output_voice_design_1.wav", wavs[0], sr)
202
+ sf.write("output_voice_design_2.wav", wavs[1], sr)
203
+ ```
204
+
205
+ #### Voice Clone
206
+
207
+ For the voice clone model (`Qwen3-TTS-12Hz-1.7B/0.6B-Base`), to clone a voice and synthesize new content, you just need to provide a reference audio clip (`ref_audio`) along with its transcript (`ref_text`). `ref_audio` can be a local file path, a URL, a base64 string, or a `(numpy_array, sample_rate)` tuple. If you set `x_vector_only_mode=True`, only the speaker embedding is used so `ref_text` is not required, but cloning quality may be reduced.
208
+
209
+ ```python
210
+ import torch
211
+ import soundfile as sf
212
+ from qwen_tts import Qwen3TTSModel
213
+
214
+ model = Qwen3TTSModel.from_pretrained(
215
+ "Qwen/Qwen3-TTS-12Hz-1.7B-Base",
216
+ device_map="cuda:0",
217
+ dtype=torch.bfloat16,
218
+ attn_implementation="flash_attention_2",
219
+ )
220
+
221
+ ref_audio = "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-TTS-Repo/clone.wav"
222
+ ref_text = "Okay. Yeah. I resent you. I love you. I respect you. But you know what? You blew it! And thanks to you."
223
+
224
+ wavs, sr = model.generate_voice_clone(
225
+ text="I am solving the equation: x = [-b ± √(b²-4ac)] / 2a? Nobody can — it's a disaster (◍•͈⌔•͈◍), very sad!",
226
+ language="English",
227
+ ref_audio=ref_audio,
228
+ ref_text=ref_text,
229
+ )
230
+ sf.write("output_voice_clone.wav", wavs[0], sr)
231
+ ```
232
+
233
+ If you need to reuse the same reference prompt across multiple generations (to avoid recomputing prompt features), build it once with `create_voice_clone_prompt` and pass it via `voice_clone_prompt`.
234
+
235
+ ```python
236
+ prompt_items = model.create_voice_clone_prompt(
237
+ ref_audio=ref_audio,
238
+ ref_text=ref_text,
239
+ x_vector_only_mode=False,
240
+ )
241
+ wavs, sr = model.generate_voice_clone(
242
+ text=["Sentence A.", "Sentence B."],
243
+ language=["English", "English"],
244
+ voice_clone_prompt=prompt_items,
245
+ )
246
+ sf.write("output_voice_clone_1.wav", wavs[0], sr)
247
+ sf.write("output_voice_clone_2.wav", wavs[1], sr)
248
+ ```
249
+
250
+ For more examples of reusable voice clone prompts, batch cloning, and batch inference, please refer to the [example codes](https://github.com/QwenLM/Qwen3-TTS/blob/main/examples/test_model_12hz_base.py). With those examples and the `generate_voice_clone` function description, you can explore more advanced usage patterns.
251
+
252
+ #### Voice Design then Clone
253
+
254
+ If you want a designed voice that you can reuse like a cloned speaker, a practical workflow is: (1) use the **VoiceDesign** model to synthesize a short reference clip that matches your target persona, (2) feed that clip into `create_voice_clone_prompt` to build a reusable prompt, and then (3) call `generate_voice_clone` with `voice_clone_prompt` to generate new content without re-extracting features every time. This is especially useful when you want a consistent character voice across many lines.
255
+
256
+ ```python
257
+ import torch
258
+ import soundfile as sf
259
+ from qwen_tts import Qwen3TTSModel
260
+
261
+ # create a reference audio in the target style using the VoiceDesign model
262
+ design_model = Qwen3TTSModel.from_pretrained(
263
+ "Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign",
264
+ device_map="cuda:0",
265
+ dtype=torch.bfloat16,
266
+ attn_implementation="flash_attention_2",
267
+ )
268
+
269
+ ref_text = "H-hey! You dropped your... uh... calculus notebook? I mean, I think it's yours? Maybe?"
270
+ ref_instruct = "Male, 17 years old, tenor range, gaining confidence - deeper breath support now, though vowels still tighten when nervous"
271
+ ref_wavs, sr = design_model.generate_voice_design(
272
+ text=ref_text,
273
+ language="English",
274
+ instruct=ref_instruct
275
+ )
276
+ sf.write("voice_design_reference.wav", ref_wavs[0], sr)
277
+
278
+ # build a reusable clone prompt from the voice design reference
279
+ clone_model = Qwen3TTSModel.from_pretrained(
280
+ "Qwen/Qwen3-TTS-12Hz-1.7B-Base",
281
+ device_map="cuda:0",
282
+ dtype=torch.bfloat16,
283
+ attn_implementation="flash_attention_2",
284
+ )
285
+
286
+ voice_clone_prompt = clone_model.create_voice_clone_prompt(
287
+ ref_audio=(ref_wavs[0], sr), # or "voice_design_reference.wav"
288
+ ref_text=ref_text,
289
+ )
290
+
291
+ sentences = [
292
+ "No problem! I actually... kinda finished those already? If you want to compare answers or something...",
293
+ "What? No! I mean yes but not like... I just think you're... your titration technique is really precise!",
294
+ ]
295
+
296
+ # reuse it for multiple single calls
297
+ wavs, sr = clone_model.generate_voice_clone(
298
+ text=sentences[0],
299
+ language="English",
300
+ voice_clone_prompt=voice_clone_prompt,
301
+ )
302
+ sf.write("clone_single_1.wav", wavs[0], sr)
303
+
304
+ wavs, sr = clone_model.generate_voice_clone(
305
+ text=sentences[1],
306
+ language="English",
307
+ voice_clone_prompt=voice_clone_prompt,
308
+ )
309
+ sf.write("clone_single_2.wav", wavs[0], sr)
310
+
311
+ # or batch generate in one call
312
+ wavs, sr = clone_model.generate_voice_clone(
313
+ text=sentences,
314
+ language=["English", "English"],
315
+ voice_clone_prompt=voice_clone_prompt,
316
+ )
317
+ for i, w in enumerate(wavs):
318
+ sf.write(f"clone_batch_{i}.wav", w, sr)
319
+ ```
320
+
321
+ #### Tokenizer Encode and Decode
322
+
323
+ If you only want to encode and decode audio for transport or training and so on, `Qwen3TTSTokenizer` supports encode/decode with paths, URLs, numpy waveforms, and dict/list payloads, for example:
324
+
325
+ ```python
326
+ import soundfile as sf
327
+ from qwen_tts import Qwen3TTSTokenizer
328
+
329
+ tokenizer = Qwen3TTSTokenizer.from_pretrained(
330
+ "Qwen/Qwen3-TTS-Tokenizer-12Hz",
331
+ device_map="cuda:0",
332
+ )
333
+
334
+ enc = tokenizer.encode("https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-TTS-Repo/tokenizer_demo_1.wav")
335
+ wavs, sr = tokenizer.decode(enc)
336
+ sf.write("decode_output.wav", wavs[0], sr)
337
+ ```
338
+
339
+ For more tokenizer examples (including different input formats and batch usage), please refer to the [example codes](https://github.com/QwenLM/Qwen3-TTS/blob/main/examples/test_tokenizer_12hz.py). With those examples and the description for `Qwen3TTSTokenizer`, you can explore more advanced usage patterns.
340
+
341
+ ### Launch Local Web UI Demo
342
+
343
+ To launch the Qwen3-TTS web ui demo, simply install the `qwen-tts` package and run `qwen-tts-demo`. Use the command below for help:
344
+
345
+ ```bash
346
+ qwen-tts-demo --help
347
+ ```
348
+
349
+ To launch the demo, you can use the following commands:
350
+
351
+ ```bash
352
+ # CustomVoice model
353
+ qwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --ip 0.0.0.0 --port 8000
354
+ # VoiceDesign model
355
+ qwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign --ip 0.0.0.0 --port 8000
356
+ # Base model
357
+ qwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-Base --ip 0.0.0.0 --port 8000
358
+ ```
359
+
360
+ And then open `http://<your-ip>:8000`, or access it via port forwarding in tools like VS Code.
361
+
362
+ #### Base Model HTTPS Notes
363
+
364
+ To avoid browser microphone permission issues after deploying the server, for Base model deployments, it is recommended/required to run the gradio service over **HTTPS** (especially when accessed remotely or behind modern browsers/gateways). Use `--ssl-certfile` and `--ssl-keyfile` to enable HTTPS. First we need to generate a private key and a self-signed cert (valid for 365 days):
365
+
366
+ ```bash
367
+ openssl req -x509 -newkey rsa:2048 \
368
+ -keyout key.pem -out cert.pem \
369
+ -days 365 -nodes \
370
+ -subj "/CN=localhost"
371
+ ```
372
+
373
+ Then run the demo with HTTPS:
374
+
375
+ ```bash
376
+ qwen-tts-demo Qwen/Qwen3-TTS-12Hz-1.7B-Base \
377
+ --ip 0.0.0.0 --port 8000 \
378
+ --ssl-certfile cert.pem \
379
+ --ssl-keyfile key.pem \
380
+ --no-ssl-verify
381
+ ```
382
+
383
+ And open `https://<your-ip>:8000` to experience it. If your browser shows a warning, it’s expected for self-signed certificates. For production, use a real certificate.
384
+
385
+ ### DashScope API Usage
386
+
387
+ To further explore Qwen3-TTS, we encourage you to try our DashScope API for a faster and more efficient experience. For detailed API information and documentation, please refer to the following:
388
+
389
+ | API Description | API Documentation (Mainland China) | API Documentation (International) |
390
+ |------------------|-----------------------------------|------------------------------------|
391
+ | Real-time API for Qwen3-TTS of custom voice model. | [https://help.aliyun.com/zh/model-studio/qwen-tts-realtime](https://help.aliyun.com/zh/model-studio/qwen-tts-realtime) | [https://www.alibabacloud.com/help/en/model-studio/qwen-tts-realtime](https://www.alibabacloud.com/help/en/model-studio/qwen-tts-realtime) |
392
+ | Real-time API for Qwen3-TTS of voice clone model. | [https://help.aliyun.com/zh/model-studio/qwen-tts-voice-cloning](https://help.aliyun.com/zh/model-studio/qwen-tts-voice-cloning) | [https://www.alibabacloud.com/help/en/model-studio/qwen-tts-voice-cloning](https://www.alibabacloud.com/help/en/model-studio/qwen-tts-voice-cloning) |
393
+ | Real-time API for Qwen3-TTS of voice design model. | [https://help.aliyun.com/zh/model-studio/qwen-tts-voice-design](https://help.aliyun.com/zh/model-studio/qwen-tts-voice-design) | [https://www.alibabacloud.com/help/en/model-studio/qwen-tts-voice-design](https://www.alibabacloud.com/help/en/model-studio/qwen-tts-voice-design) |
394
+
395
+
396
+ ## vLLM Usage
397
+
398
+ vLLM officially provides day-0 support for Qwen3-TTS! Welcome to use vLLM-Omni for Qwen3-TTS deployment and inference. For installation and more details, please check [vLLM-Omni official documentation](https://docs.vllm.ai/projects/vllm-omni/en/latest/getting_started/quickstart/#installation). Now only offline inference is supported. Online serving will be supported later, and vLLM-Omni will continue to offer support and optimization for Qwen3-TTS in areas such as inference speed and streaming capabilities.
399
+
400
+ ### Offline Inference
401
+ You can use vLLM-Omni to inference Qwen3-TTS locally, we provide examples in [vLLM-Omni repo](https://github.com/vllm-project/vllm-omni/tree/main/examples/offline_inference/qwen3_tts) which can generate audio output:
402
+ ```bash
403
+ # git clone https://github.com/vllm-project/vllm-omni.git
404
+
405
+ # cd vllm-omni/examples/offline_inference/qwen3_tts
406
+
407
+ # Run a single sample with CustomVoice task
408
+ python end2end.py --query-type CustomVoice
409
+
410
+ # Batch sample (multiple prompts in one run) with CustomVoice task:
411
+ python end2end.py --query-type CustomVoice --use-batch-sample
412
+
413
+ # Run a single sample with VoiceDesign task
414
+ python end2end.py --query-type VoiceDesign
415
+
416
+ # Batch sample (multiple prompts in one run) with VoiceDesign task:
417
+ python end2end.py --query-type VoiceDesign --use-batch-sample
418
+
419
+ # Run a single sample with Base task in icl mode-tag
420
+ python end2end.py --query-type Base --mode-tag icl
421
+ ```
422
+
423
+ ## Evaluation
424
+
425
+ During evaluation, we ran inference for all models with `dtype=torch.bfloat16` and set `max_new_tokens=2048`. All other sampling parameters used the defaults from the checkpoint’s `generate_config.json`. For the Seed-Test and InstructTTS-Eval test sets, we set `language="auto"`, while for all other test sets we explicitly passed the corresponding `language`. The detailed results are shown below.
426
+
427
+
428
+ <details>
429
+ <summary>Speech Generation Benchmarks</summary>
430
+
431
+ *Zero-shot speech generation on the Seed-TTS test set. Performance is measured by Word Error Rate (WER, ↓), where lower is better.*
432
+
433
+ <table>
434
+ <thead>
435
+ <tr>
436
+ <th style="text-align: center;">Datasets</th>
437
+ <th style="text-align: left;">Model</th>
438
+ <th colspan="2" style="text-align: center;">Performance</th>
439
+ </tr>
440
+ <tr style="border-bottom: 1px solid #ddd; border-top: 1px solid #ddd;">
441
+ <td colspan="4" style="text-align: center;"><em>Content Consistency</em></td>
442
+ </tr>
443
+ </thead>
444
+ <tbody>
445
+ <tr>
446
+ <td rowspan="14" style="text-align: center; vertical-align: middle;">SEED<br><em>test-zh</em> | <em>test-en</em></td>
447
+ <td style="text-align: left;">Seed-TTS (Anastassiou et al., 2024)</td>
448
+ <td style="text-align: center;">1.12</td>
449
+ <td style="text-align: center;">2.25</td>
450
+ </tr>
451
+ <tr>
452
+ <td style="text-align: left;">MaskGCT (Wang et al., 2024)</td>
453
+ <td style="text-align: center;">2.27</td>
454
+ <td style="text-align: center;">2.62</td>
455
+ </tr>
456
+ <tr>
457
+ <td style="text-align: left;">E2 TTS (Eskimez et al., 2024)</td>
458
+ <td style="text-align: center;">1.97</td>
459
+ <td style="text-align: center;">2.19</td>
460
+ </tr>
461
+ <tr>
462
+ <td style="text-align: left;">F5-TTS (Chen et al., 2024)</td>
463
+ <td style="text-align: center;">1.56</td>
464
+ <td style="text-align: center;">1.83</td>
465
+ </tr>
466
+ <tr>
467
+ <td style="text-align: left;">Spark TTS (Wang et al., 2025)</td>
468
+ <td style="text-align: center;">1.20</td>
469
+ <td style="text-align: center;">1.98</td>
470
+ </tr>
471
+ <tr>
472
+ <td style="text-align: left;">Llasa-8B (Ye et al., 2025b)</td>
473
+ <td style="text-align: center;">1.59</td>
474
+ <td style="text-align: center;">2.97</td>
475
+ </tr>
476
+ <tr>
477
+ <td style="text-align: left;">KALL-E (Xia et al., 2024)</td>
478
+ <td style="text-align: center;">0.96</td>
479
+ <td style="text-align: center;">1.94</td>
480
+ </tr>
481
+ <tr>
482
+ <td style="text-align: left;">FireRedTTS 2 (Xie et al., 2025)</td>
483
+ <td style="text-align: center;">1.14</td>
484
+ <td style="text-align: center;">1.95</td>
485
+ </tr>
486
+ <tr>
487
+ <td style="text-align: left;">CosyVoice 3 (Du et al., 2025)</td>
488
+ <td style="text-align: center;"><strong>0.71</strong></td>
489
+ <td style="text-align: center;">1.45</td>
490
+ </tr>
491
+ <tr>
492
+ <td style="text-align: left;">MiniMax-Speech (Zhang et al., 2025a)</td>
493
+ <td style="text-align: center;">0.83</td>
494
+ <td style="text-align: center;">1.65</td>
495
+ </tr>
496
+ <tr>
497
+ <td style="text-align: left;">Qwen3-TTS-25Hz-0.6B-Base</td>
498
+ <td style="text-align: center;">1.18</td>
499
+ <td style="text-align: center;">1.64</td>
500
+ </tr>
501
+ <tr>
502
+ <td style="text-align: left;">Qwen3-TTS-25Hz-1.7B-Base</td>
503
+ <td style="text-align: center;">1.10</td>
504
+ <td style="text-align: center;">1.49</td>
505
+ </tr>
506
+ <tr>
507
+ <td style="text-align: left;">Qwen3-TTS-12Hz-0.6B-Base</td>
508
+ <td style="text-align: center;">0.92</td>
509
+ <td style="text-align: center;">1.32</td>
510
+ </tr>
511
+ <tr>
512
+ <td style="text-align: left;">Qwen3-TTS-12Hz-1.7B-Base</td>
513
+ <td style="text-align: center;">0.77</td>
514
+ <td style="text-align: center;"><strong>1.24</strong></td>
515
+ </tr>
516
+ </tbody>
517
+ </table>
518
+
519
+ <br>
520
+
521
+ *Multilingual speech generation on the TTS multilingual test set. Performance is measured by Word Error Rate (WER, ↓) for content consistency and Cosine Similarity (SIM, ↑) for speaker similarity.*
522
+
523
+ <table>
524
+ <thead>
525
+ <tr>
526
+ <th rowspan="2" style="text-align: left; vertical-align: bottom;">Language</th>
527
+ <th colspan="2" style="text-align: center;">Qwen3-TTS-25Hz</th>
528
+ <th colspan="2" style="text-align: center;">Qwen3-TTS-12Hz</th>
529
+ <th rowspan="2" style="text-align: center; vertical-align: bottom;">MiniMax</th>
530
+ <th rowspan="2" style="text-align: center; vertical-align: bottom;">ElevenLabs</th>
531
+ </tr>
532
+ <tr>
533
+ <th style="text-align: center;">0.6B-Base</th>
534
+ <th style="text-align: center;">1.7B-Base</th>
535
+ <th style="text-align: center;">0.6B-Base</th>
536
+ <th style="text-align: center;">1.7B-Base</th>
537
+ </tr>
538
+ </thead>
539
+ <tbody>
540
+ <tr>
541
+ <td colspan="7" style="text-align: center; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;"><em>Content Consistency</em></td>
542
+ </tr>
543
+ <tr>
544
+ <td style="text-align: left;">Chinese</td>
545
+ <td style="text-align: center;">1.108</td>
546
+ <td style="text-align: center;"><strong>0.777</strong></td>
547
+ <td style="text-align: center;">1.145</td>
548
+ <td style="text-align: center;">0.928</td>
549
+ <td style="text-align: center;">2.252</td>
550
+ <td style="text-align: center;">16.026</td>
551
+ </tr>
552
+ <tr>
553
+ <td style="text-align: left;">English</td>
554
+ <td style="text-align: center;">1.048</td>
555
+ <td style="text-align: center;">1.014</td>
556
+ <td style="text-align: center;"><strong>0.836</strong></td>
557
+ <td style="text-align: center;">0.934</td>
558
+ <td style="text-align: center;">2.164</td>
559
+ <td style="text-align: center;">2.339</td>
560
+ </tr>
561
+ <tr>
562
+ <td style="text-align: left;">German</td>
563
+ <td style="text-align: center;">1.501</td>
564
+ <td style="text-align: center;">0.960</td>
565
+ <td style="text-align: center;">1.089</td>
566
+ <td style="text-align: center;">1.235</td>
567
+ <td style="text-align: center;">1.906</td>
568
+ <td style="text-align: center;"><strong>0.572</strong></td>
569
+ </tr>
570
+ <tr>
571
+ <td style="text-align: left;">Italian</td>
572
+ <td style="text-align: center;">1.169</td>
573
+ <td style="text-align: center;">1.105</td>
574
+ <td style="text-align: center;">1.534</td>
575
+ <td style="text-align: center;"><strong>0.948</strong></td>
576
+ <td style="text-align: center;">1.543</td>
577
+ <td style="text-align: center;">1.743</td>
578
+ </tr>
579
+ <tr>
580
+ <td style="text-align: left;">Portuguese</td>
581
+ <td style="text-align: center;">2.046</td>
582
+ <td style="text-align: center;">1.778</td>
583
+ <td style="text-align: center;">2.254</td>
584
+ <td style="text-align: center;">1.526</td>
585
+ <td style="text-align: center;">1.877</td>
586
+ <td style="text-align: center;"><strong>1.331</strong></td>
587
+ </tr>
588
+ <tr>
589
+ <td style="text-align: left;">Spanish</td>
590
+ <td style="text-align: center;">2.031</td>
591
+ <td style="text-align: center;">1.491</td>
592
+ <td style="text-align: center;">1.491</td>
593
+ <td style="text-align: center;">1.126</td>
594
+ <td style="text-align: center;"><strong>1.029</strong></td>
595
+ <td style="text-align: center;">1.084</td>
596
+ </tr>
597
+ <tr>
598
+ <td style="text-align: left;">Japanese</td>
599
+ <td style="text-align: center;">4.189</td>
600
+ <td style="text-align: center;">5.121</td>
601
+ <td style="text-align: center;">6.404</td>
602
+ <td style="text-align: center;">3.823</td>
603
+ <td style="text-align: center;"><strong>3.519</strong></td>
604
+ <td style="text-align: center;">10.646</td>
605
+ </tr>
606
+ <tr>
607
+ <td style="text-align: left;">Korean</td>
608
+ <td style="text-align: center;">2.852</td>
609
+ <td style="text-align: center;">2.631</td>
610
+ <td style="text-align: center;"><strong>1.741</strong></td>
611
+ <td style="text-align: center;">1.755</td>
612
+ <td style="text-align: center;">1.747</td>
613
+ <td style="text-align: center;">1.865</td>
614
+ </tr>
615
+ <tr>
616
+ <td style="text-align: left;">French</td>
617
+ <td style="text-align: center;">2.852</td>
618
+ <td style="text-align: center;"><strong>2.631</strong></td>
619
+ <td style="text-align: center;">2.931</td>
620
+ <td style="text-align: center;">2.858</td>
621
+ <td style="text-align: center;">4.099</td>
622
+ <td style="text-align: center;">5.216</td>
623
+ </tr>
624
+ <tr>
625
+ <td style="text-align: left;">Russian</td>
626
+ <td style="text-align: center;">5.957</td>
627
+ <td style="text-align: center;">4.535</td>
628
+ <td style="text-align: center;">4.458</td>
629
+ <td style="text-align: center;"><strong>3.212</strong></td>
630
+ <td style="text-align: center;">4.281</td>
631
+ <td style="text-align: center;">3.878</td>
632
+ </tr>
633
+ <tr style="border-top: 1px solid #ddd;">
634
+ <td colspan="7" style="text-align: center; border-bottom: 1px solid #ddd;"><em>Speaker Similarity</em></td>
635
+ </tr>
636
+ <tr>
637
+ <td style="text-align: left;">Chinese</td>
638
+ <td style="text-align: center;">0.797</td>
639
+ <td style="text-align: center;">0.796</td>
640
+ <td style="text-align: center;"><strong>0.811</strong></td>
641
+ <td style="text-align: center;">0.799</td>
642
+ <td style="text-align: center;">0.780</td>
643
+ <td style="text-align: center;">0.677</td>
644
+ </tr>
645
+ <tr>
646
+ <td style="text-align: left;">English</td>
647
+ <td style="text-align: center;">0.811</td>
648
+ <td style="text-align: center;">0.815</td>
649
+ <td style="text-align: center;"><strong>0.829</strong></td>
650
+ <td style="text-align: center;">0.775</td>
651
+ <td style="text-align: center;">0.756</td>
652
+ <td style="text-align: center;">0.613</td>
653
+ </tr>
654
+ <tr>
655
+ <td style="text-align: left;">German</td>
656
+ <td style="text-align: center;">0.749</td>
657
+ <td style="text-align: center;">0.737</td>
658
+ <td style="text-align: center;">0.769</td>
659
+ <td style="text-align: center;"><strong>0.775</strong></td>
660
+ <td style="text-align: center;">0.733</td>
661
+ <td style="text-align: center;">0.614</td>
662
+ </tr>
663
+ <tr>
664
+ <td style="text-align: left;">Italian</td>
665
+ <td style="text-align: center;">0.722</td>
666
+ <td style="text-align: center;">0.718</td>
667
+ <td style="text-align: center;">0.792</td>
668
+ <td style="text-align: center;"><strong>0.817</strong></td>
669
+ <td style="text-align: center;">0.699</td>
670
+ <td style="text-align: center;">0.579</td>
671
+ </tr>
672
+ <tr>
673
+ <td style="text-align: left;">Portuguese</td>
674
+ <td style="text-align: center;">0.790</td>
675
+ <td style="text-align: center;">0.783</td>
676
+ <td style="text-align: center;">0.794</td>
677
+ <td style="text-align: center;"><strong>0.817</strong></td>
678
+ <td style="text-align: center;">0.805</td>
679
+ <td style="text-align: center;">0.711</td>
680
+ </tr>
681
+ <tr>
682
+ <td style="text-align: left;">Spanish</td>
683
+ <td style="text-align: center;">0.732</td>
684
+ <td style="text-align: center;">0.731</td>
685
+ <td style="text-align: center;">0.812</td>
686
+ <td style="text-align: center;"><strong>0.814</strong></td>
687
+ <td style="text-align: center;">0.762</td>
688
+ <td style="text-align: center;">0.615</td>
689
+ </tr>
690
+ <tr>
691
+ <td style="text-align: left;">Japanese</td>
692
+ <td style="text-align: center;"><strong>0.810</strong></td>
693
+ <td style="text-align: center;">0.807</td>
694
+ <td style="text-align: center;">0.798</td>
695
+ <td style="text-align: center;">0.788</td>
696
+ <td style="text-align: center;">0.776</td>
697
+ <td style="text-align: center;">0.738</td>
698
+ </tr>
699
+ <tr>
700
+ <td style="text-align: left;">Korean</td>
701
+ <td style="text-align: center;"><strong>0.824</strong></td>
702
+ <td style="text-align: center;">0.814</td>
703
+ <td style="text-align: center;">0.812</td>
704
+ <td style="text-align: center;">0.799</td>
705
+ <td style="text-align: center;">0.779</td>
706
+ <td style="text-align: center;">0.700</td>
707
+ </tr>
708
+ <tr>
709
+ <td style="text-align: left;">French</td>
710
+ <td style="text-align: center;">0.698</td>
711
+ <td style="text-align: center;">0.703</td>
712
+ <td style="text-align: center;">0.700</td>
713
+ <td style="text-align: center;"><strong>0.714</strong></td>
714
+ <td style="text-align: center;">0.628</td>
715
+ <td style="text-align: center;">0.535</td>
716
+ </tr>
717
+ <tr>
718
+ <td style="text-align: left;">Russian</td>
719
+ <td style="text-align: center;">0.734</td>
720
+ <td style="text-align: center;">0.744</td>
721
+ <td style="text-align: center;">0.781</td>
722
+ <td style="text-align: center;"><strong>0.792</strong></td>
723
+ <td style="text-align: center;">0.761</td>
724
+ <td style="text-align: center;">0.676</td>
725
+ </tr>
726
+ </tbody>
727
+ </table>
728
+
729
+ <br>
730
+
731
+ *Cross-lingual speech generation on the Cross-Lingual benchmark. Performance is measured by Mixed Error Rate (WER for English, CER for others, ↓).*
732
+
733
+ <table>
734
+ <thead>
735
+ <tr>
736
+ <th style="text-align: left;">Task</th>
737
+ <th style="text-align: center;">Qwen3-TTS-25Hz-1.7B-Base</th>
738
+ <th style="text-align: center;">Qwen3-TTS-12Hz-1.7B-Base</th>
739
+ <th style="text-align: center;">CosyVoice3</th>
740
+ <th style="text-align: center;">CosyVoice2</th>
741
+ </tr>
742
+ </thead>
743
+ <tbody>
744
+ <tr>
745
+ <td style="text-align: left;">en-to-zh</td>
746
+ <td style="text-align: center;">5.66</td>
747
+ <td style="text-align: center;"><strong>4.77</strong></td>
748
+ <td style="text-align: center;">5.09</td>
749
+ <td style="text-align: center;">13.5</td>
750
+ </tr>
751
+ <tr>
752
+ <td style="text-align: left;">ja-to-zh</td>
753
+ <td style="text-align: center;">3.92</td>
754
+ <td style="text-align: center;">3.43</td>
755
+ <td style="text-align: center;"><strong>3.05</strong></td>
756
+ <td style="text-align: center;">48.1</td>
757
+ </tr>
758
+ <tr>
759
+ <td style="text-align: left;">ko-to-zh</td>
760
+ <td style="text-align: center;">1.14</td>
761
+ <td style="text-align: center;">1.08</td>
762
+ <td style="text-align: center;"><strong>1.06</strong></td>
763
+ <td style="text-align: center;">7.70</td>
764
+ </tr>
765
+ <tr style="border-top: 1px solid #ddd;">
766
+ <td style="text-align: left;">zh-to-en</td>
767
+ <td style="text-align: center;">2.91</td>
768
+ <td style="text-align: center;"><strong>2.77</strong></td>
769
+ <td style="text-align: center;">2.98</td>
770
+ <td style="text-align: center;">6.47</td>
771
+ </tr>
772
+ <tr>
773
+ <td style="text-align: left;">ja-to-en</td>
774
+ <td style="text-align: center;">3.95</td>
775
+ <td style="text-align: center;"><strong>3.04</strong></td>
776
+ <td style="text-align: center;">4.20</td>
777
+ <td style="text-align: center;">17.1</td>
778
+ </tr>
779
+ <tr>
780
+ <td style="text-align: left;">ko-to-en</td>
781
+ <td style="text-align: center;">3.48</td>
782
+ <td style="text-align: center;"><strong>3.09</strong></td>
783
+ <td style="text-align: center;">4.19</td>
784
+ <td style="text-align: center;">11.2</td>
785
+ </tr>
786
+ <tr style="border-top: 1px solid #ddd;">
787
+ <td style="text-align: left;">zh-to-ja</td>
788
+ <td style="text-align: center;">9.29</td>
789
+ <td style="text-align: center;">8.40</td>
790
+ <td style="text-align: center;"><strong>7.08</strong></td>
791
+ <td style="text-align: center;">13.1</td>
792
+ </tr>
793
+ <tr>
794
+ <td style="text-align: left;">en-to-ja</td>
795
+ <td style="text-align: center;">7.74</td>
796
+ <td style="text-align: center;">7.21</td>
797
+ <td style="text-align: center;"><strong>6.80</strong></td>
798
+ <td style="text-align: center;">14.9</td>
799
+ </tr>
800
+ <tr>
801
+ <td style="text-align: left;">ko-to-ja</td>
802
+ <td style="text-align: center;">4.17</td>
803
+ <td style="text-align: center;"><strong>3.67</strong></td>
804
+ <td style="text-align: center;">3.93</td>
805
+ <td style="text-align: center;">5.86</td>
806
+ </tr>
807
+ <tr style="border-top: 1px solid #ddd;">
808
+ <td style="text-align: left;">zh-to-ko</td>
809
+ <td style="text-align: center;">8.12</td>
810
+ <td style="text-align: center;"><strong>4.82</strong></td>
811
+ <td style="text-align: center;">14.4</td>
812
+ <td style="text-align: center;">24.8</td>
813
+ </tr>
814
+ <tr>
815
+ <td style="text-align: left;">en-to-ko</td>
816
+ <td style="text-align: center;">6.83</td>
817
+ <td style="text-align: center;"><strong>5.14</strong></td>
818
+ <td style="text-align: center;">5.87</td>
819
+ <td style="text-align: center;">21.9</td>
820
+ </tr>
821
+ <tr>
822
+ <td style="text-align: left;">ja-to-ko</td>
823
+ <td style="text-align: center;">6.86</td>
824
+ <td style="text-align: center;"><strong>5.59</strong></td>
825
+ <td style="text-align: center;">7.92</td>
826
+ <td style="text-align: center;">21.5</td>
827
+ </tr>
828
+ </tbody>
829
+ </table>
830
+
831
+ <br>
832
+
833
+ *Controllable speech generation on InstructTTSEval. Performance is measured by Attribute Perception and Synthesis accuracy (APS), Description-Speech Consistency (DSD), and Response Precision (RP).*
834
+
835
+ <table>
836
+ <thead>
837
+ <tr>
838
+ <th rowspan="2" style="text-align: left; vertical-align: bottom;">Type</th>
839
+ <th rowspan="2" style="text-align: left; vertical-align: bottom;">Model</th>
840
+ <th colspan="3" style="text-align: center;">InstructTTSEval-ZH</th>
841
+ <th colspan="3" style="text-align: center;">InstructTTSEval-EN</th>
842
+ </tr>
843
+ <tr>
844
+ <th style="text-align: center;">APS (↑)</th>
845
+ <th style="text-align: center;">DSD (↑)</th>
846
+ <th style="text-align: center;">RP (↑)</th>
847
+ <th style="text-align: center;">APS (↑)</th>
848
+ <th style="text-align: center;">DSD (↑)</th>
849
+ <th style="text-align: center;">RP (↑)</th>
850
+ </tr>
851
+ </thead>
852
+ <tbody>
853
+ <tr>
854
+ <td rowspan="5" style="text-align: left; vertical-align: middle;"><em>Target<br>Speaker</em></td>
855
+ <td style="text-align: left;">Gemini-flash</td>
856
+ <td style="text-align: center;">88.2</td>
857
+ <td style="text-align: center;"><strong>90.9</strong></td>
858
+ <td style="text-align: center;"><strong>77.3</strong></td>
859
+ <td style="text-align: center;"><strong>92.3</strong></td>
860
+ <td style="text-align: center;"><strong>93.8</strong></td>
861
+ <td style="text-align: center;"><strong>80.1</strong></td>
862
+ </tr>
863
+ <tr>
864
+ <td style="text-align: left;">Gemini-pro</td>
865
+ <td style="text-align: center;"><strong>89.0</strong></td>
866
+ <td style="text-align: center;">90.1</td>
867
+ <td style="text-align: center;">75.5</td>
868
+ <td style="text-align: center;">87.6</td>
869
+ <td style="text-align: center;">86.0</td>
870
+ <td style="text-align: center;">67.2</td>
871
+ </tr>
872
+ <tr>
873
+ <td style="text-align: left;">Qwen3TTS-25Hz-1.7B-CustomVoice</td>
874
+ <td style="text-align: center;">83.1</td>
875
+ <td style="text-align: center;">75.0</td>
876
+ <td style="text-align: center;">63.0</td>
877
+ <td style="text-align: center;">79.0</td>
878
+ <td style="text-align: center;">82.8</td>
879
+ <td style="text-align: center;">69.3</td>
880
+ </tr>
881
+ <tr>
882
+ <td style="text-align: left;">Qwen3TTS-12Hz-1.7B-CustomVoice</td>
883
+ <td style="text-align: center;">83.0</td>
884
+ <td style="text-align: center;">77.8</td>
885
+ <td style="text-align: center;">61.2</td>
886
+ <td style="text-align: center;">77.3</td>
887
+ <td style="text-align: center;">77.1</td>
888
+ <td style="text-align: center;">63.7</td>
889
+ </tr>
890
+ <tr>
891
+ <td style="text-align: left;">GPT-4o-mini-tts</td>
892
+ <td style="text-align: center;">54.9</td>
893
+ <td style="text-align: center;">52.3</td>
894
+ <td style="text-align: center;">46.0</td>
895
+ <td style="text-align: center;">76.4</td>
896
+ <td style="text-align: center;">74.3</td>
897
+ <td style="text-align: center;">54.8</td>
898
+ </tr>
899
+ <tr style="border-top: 1px solid #ddd;">
900
+ <td rowspan="9" style="text-align: left; vertical-align: middle;"><em>Voice<br>Design</em></td>
901
+ <td style="text-align: left;">Qwen3TTS-12Hz-1.7B-VD</td>
902
+ <td style="text-align: center;"><strong>85.2</strong></td>
903
+ <td style="text-align: center;"><strong>81.1</strong></td>
904
+ <td style="text-align: center;"><strong>65.1</strong></td>
905
+ <td style="text-align: center;">82.9</td>
906
+ <td style="text-align: center;"><strong>82.4</strong></td>
907
+ <td style="text-align: center;"><strong>68.4</strong></td>
908
+ </tr>
909
+ <tr>
910
+ <td style="text-align: left;">Mimo-Audio-7B-Instruct (Zhang et al., 2025b)</td>
911
+ <td style="text-align: center;">75.7</td>
912
+ <td style="text-align: center;">74.3</td>
913
+ <td style="text-align: center;">61.5</td>
914
+ <td style="text-align: center;">80.6</td>
915
+ <td style="text-align: center;">77.6</td>
916
+ <td style="text-align: center;">59.5</td>
917
+ </tr>
918
+ <tr>
919
+ <td style="text-align: left;">VoiceSculptor (Hu et al., 2026)</td>
920
+ <td style="text-align: center;">75.7</td>
921
+ <td style="text-align: center;">64.7</td>
922
+ <td style="text-align: center;">61.5</td>
923
+ <td style="text-align: center;">-</td>
924
+ <td style="text-align: center;">-</td>
925
+ <td style="text-align: center;">-</td>
926
+ </tr>
927
+ <tr>
928
+ <td style="text-align: left;">Hume</td>
929
+ <td style="text-align: center;">-</td>
930
+ <td style="text-align: center;">-</td>
931
+ <td style="text-align: center;">-</td>
932
+ <td style="text-align: center;"><strong>83.0</strong></td>
933
+ <td style="text-align: center;">75.3</td>
934
+ <td style="text-align: center;">54.3</td>
935
+ </tr>
936
+ <tr>
937
+ <td style="text-align: left;">VoxInstruct (Zhou et al., 2024)</td>
938
+ <td style="text-align: center;">47.5</td>
939
+ <td style="text-align: center;">52.3</td>
940
+ <td style="text-align: center;">42.6</td>
941
+ <td style="text-align: center;">54.9</td>
942
+ <td style="text-align: center;">57.0</td>
943
+ <td style="text-align: center;">39.3</td>
944
+ </tr>
945
+ <tr>
946
+ <td style="text-align: left;">Parler-tts-mini (Lyth & King, 2024)</td>
947
+ <td style="text-align: center;">-</td>
948
+ <td style="text-align: center;">-</td>
949
+ <td style="text-align: center;">-</td>
950
+ <td style="text-align: center;">63.4</td>
951
+ <td style="text-align: center;">48.7</td>
952
+ <td style="text-align: center;">28.6</td>
953
+ </tr>
954
+ <tr>
955
+ <td style="text-align: left;">Parler-tts-large (Lyth & King, 2024)</td>
956
+ <td style="text-align: center;">-</td>
957
+ <td style="text-align: center;">-</td>
958
+ <td style="text-align: center;">-</td>
959
+ <td style="text-align: center;">60.0</td>
960
+ <td style="text-align: center;">45.9</td>
961
+ <td style="text-align: center;">31.2</td>
962
+ </tr>
963
+ <tr>
964
+ <td style="text-align: left;">PromptTTS (Guo et al., 2023)</td>
965
+ <td style="text-align: center;">-</td>
966
+ <td style="text-align: center;">-</td>
967
+ <td style="text-align: center;">-</td>
968
+ <td style="text-align: center;">64.3</td>
969
+ <td style="text-align: center;">47.2</td>
970
+ <td style="text-align: center;">31.4</td>
971
+ </tr>
972
+ <tr>
973
+ <td style="text-align: left;">PromptStyle (Liu et al., 2023)</td>
974
+ <td style="text-align: center;">-</td>
975
+ <td style="text-align: center;">-</td>
976
+ <td style="text-align: center;">-</td>
977
+ <td style="text-align: center;">57.4</td>
978
+ <td style="text-align: center;">46.4</td>
979
+ <td style="text-align: center;">30.9</td>
980
+ </tr>
981
+ </tbody>
982
+ </table>
983
+
984
+ <br>
985
+
986
+ *Target-Speaker Multilingual Speech Generation on the TTS multilingual test set. Performance is measured by Word Error Rate (WER, ↓).*
987
+
988
+ <table>
989
+ <thead>
990
+ <tr>
991
+ <th rowspan="2" style="text-align: left; vertical-align: bottom;">Language</th>
992
+ <th colspan="2" style="text-align: center;">Qwen3-TTS-25Hz</th>
993
+ <th colspan="2" style="text-align: center;">Qwen3-TTS-12Hz</th>
994
+ <th rowspan="2" style="text-align: center; vertical-align: bottom;">GPT-4o-Audio<br>Preview</th>
995
+ </tr>
996
+ <tr>
997
+ <th style="text-align: center;">0.6B-CustomVoice</th>
998
+ <th style="text-align: center;">1.7B-CustomVoice</th>
999
+ <th style="text-align: center;">0.6B-CustomVoice</th>
1000
+ <th style="text-align: center;">1.7B-CustomVoice</th>
1001
+ </tr>
1002
+ </thead>
1003
+ <tbody>
1004
+ <tr>
1005
+ <td style="text-align: left;">Chinese</td>
1006
+ <td style="text-align: center;">0.874</td>
1007
+ <td style="text-align: center;"><strong>0.708</strong></td>
1008
+ <td style="text-align: center;">0.944</td>
1009
+ <td style="text-align: center;">0.903</td>
1010
+ <td style="text-align: center;">3.519</td>
1011
+ </tr>
1012
+ <tr>
1013
+ <td style="text-align: left;">English</td>
1014
+ <td style="text-align: center;">1.332</td>
1015
+ <td style="text-align: center;">0.936</td>
1016
+ <td style="text-align: center;">1.188</td>
1017
+ <td style="text-align: center;"><strong>0.899</strong></td>
1018
+ <td style="text-align: center;">2.197</td>
1019
+ </tr>
1020
+ <tr>
1021
+ <td style="text-align: left;">German</td>
1022
+ <td style="text-align: center;">0.990</td>
1023
+ <td style="text-align: center;"><strong>0.634</strong></td>
1024
+ <td style="text-align: center;">2.722</td>
1025
+ <td style="text-align: center;">1.057</td>
1026
+ <td style="text-align: center;">1.161</td>
1027
+ </tr>
1028
+ <tr>
1029
+ <td style="text-align: left;">Italian</td>
1030
+ <td style="text-align: center;">1.861</td>
1031
+ <td style="text-align: center;">1.271</td>
1032
+ <td style="text-align: center;">2.545</td>
1033
+ <td style="text-align: center;">1.362</td>
1034
+ <td style="text-align: center;"><strong>1.194</strong></td>
1035
+ </tr>
1036
+ <tr>
1037
+ <td style="text-align: left;">Portuguese</td>
1038
+ <td style="text-align: center;">1.728</td>
1039
+ <td style="text-align: center;">1.854</td>
1040
+ <td style="text-align: center;">3.219</td>
1041
+ <td style="text-align: center;">2.681</td>
1042
+ <td style="text-align: center;"><strong>1.504</strong></td>
1043
+ </tr>
1044
+ <tr>
1045
+ <td style="text-align: left;">Spanish</td>
1046
+ <td style="text-align: center;">1.309</td>
1047
+ <td style="text-align: center;">1.284</td>
1048
+ <td style="text-align: center;"><strong>1.154</strong></td>
1049
+ <td style="text-align: center;">1.330</td>
1050
+ <td style="text-align: center;">4.000</td>
1051
+ </tr>
1052
+ <tr>
1053
+ <td style="text-align: left;">Japanese</td>
1054
+ <td style="text-align: center;"><strong>3.875</strong></td>
1055
+ <td style="text-align: center;">4.518</td>
1056
+ <td style="text-align: center;">6.877</td>
1057
+ <td style="text-align: center;">4.924</td>
1058
+ <td style="text-align: center;">5.001</td>
1059
+ </tr>
1060
+ <tr>
1061
+ <td style="text-align: left;">Korean</td>
1062
+ <td style="text-align: center;">2.202</td>
1063
+ <td style="text-align: center;">2.274</td>
1064
+ <td style="text-align: center;">3.053</td>
1065
+ <td style="text-align: center;"><strong>1.741</strong></td>
1066
+ <td style="text-align: center;">2.763</td>
1067
+ </tr>
1068
+ <tr>
1069
+ <td style="text-align: left;">French</td>
1070
+ <td style="text-align: center;">3.865</td>
1071
+ <td style="text-align: center;"><strong>3.080</strong></td>
1072
+ <td style="text-align: center;">3.841</td>
1073
+ <td style="text-align: center;">3.781</td>
1074
+ <td style="text-align: center;">3.605</td>
1075
+ </tr>
1076
+ <tr>
1077
+ <td style="text-align: left;">Russian</td>
1078
+ <td style="text-align: center;">6.529</td>
1079
+ <td style="text-align: center;"><strong>4.444</strong></td>
1080
+ <td style="text-align: center;">5.809</td>
1081
+ <td style="text-align: center;">4.734</td>
1082
+ <td style="text-align: center;">5.250</td>
1083
+ </tr>
1084
+ </tbody>
1085
+ </table>
1086
+
1087
+ <br>
1088
+
1089
+ *Long speech generation results. Performance is measured by Word Error Rate (WER, ↓).*
1090
+
1091
+ <table>
1092
+ <thead>
1093
+ <tr>
1094
+ <th style="text-align: center;">Datasets</th>
1095
+ <th style="text-align: left;">Model</th>
1096
+ <th colspan="2" style="text-align: center;">Performance</th>
1097
+ </tr>
1098
+ <tr style="border-bottom: 1px solid #ddd; border-top: 1px solid #ddd;">
1099
+ <td colspan="4" style="text-align: center;"><em>Content Consistency</em></td>
1100
+ </tr>
1101
+ </thead>
1102
+ <tbody>
1103
+ <tr>
1104
+ <td rowspan="5" style="text-align: center; vertical-align: middle;"><em>long-zh</em> | <em>long-en</em></td>
1105
+ <td style="text-align: left;">Higgs-Audio-v2 (chunk) (Boson AI, 2025)</td>
1106
+ <td style="text-align: center;">5.505</td>
1107
+ <td style="text-align: center;">6.917</td>
1108
+ </tr>
1109
+ <tr>
1110
+ <td style="text-align: left;">VibeVoice (Peng et al., 2025)</td>
1111
+ <td style="text-align: center;">22.619</td>
1112
+ <td style="text-align: center;">1.780</td>
1113
+ </tr>
1114
+ <tr>
1115
+ <td style="text-align: left;">VoxCPM (Zhou et al., 2025)</td>
1116
+ <td style="text-align: center;">4.835</td>
1117
+ <td style="text-align: center;">7.474</td>
1118
+ </tr>
1119
+ <tr>
1120
+ <td style="text-align: left;">Qwen3-TTS-25Hz-1.7B-CustomVoice</td>
1121
+ <td style="text-align: center;"><strong>1.517</strong></td>
1122
+ <td style="text-align: center;"><strong>1.225</strong></td>
1123
+ </tr>
1124
+ <tr>
1125
+ <td style="text-align: left;">Qwen3-TTS-12Hz-1.7B-CustomVoice</td>
1126
+ <td style="text-align: center;">2.356</td>
1127
+ <td style="text-align: center;">2.812</td>
1128
+ </tr>
1129
+ </tbody>
1130
+ </table>
1131
+ </details>
1132
+
1133
+
1134
+ <details>
1135
+ <summary>Speech Tokenizer Benchmarks</summary>
1136
+
1137
+ *Comparison between different supervised semantic speech tokenizers on ASR Task.*
1138
+
1139
+ <table>
1140
+ <thead>
1141
+ <tr>
1142
+ <th style="text-align: left;">Model</th>
1143
+ <th style="text-align: center;">Codebook Size</th>
1144
+ <th style="text-align: center;">FPS</th>
1145
+ <th style="text-align: center;">C.V. EN</th>
1146
+ <th style="text-align: center;">C.V. CN</th>
1147
+ <th style="text-align: center;">Fluers EN</th>
1148
+ <th style="text-align: center;">Fluers CN</th>
1149
+ </tr>
1150
+ </thead>
1151
+ <tbody>
1152
+ <tr>
1153
+ <td style="text-align: left;">S3 Tokenizer(VQ) (Du et al., 2024a)</td>
1154
+ <td style="text-align: center;">4096</td>
1155
+ <td style="text-align: center;">50</td>
1156
+ <td style="text-align: center;">12.06</td>
1157
+ <td style="text-align: center;">15.38</td>
1158
+ <td style="text-align: center;">-</td>
1159
+ <td style="text-align: center;">-</td>
1160
+ </tr>
1161
+ <tr>
1162
+ <td style="text-align: left;">S3 Tokenizer(VQ) (Du et al., 2024a)</td>
1163
+ <td style="text-align: center;">4096</td>
1164
+ <td style="text-align: center;">25</td>
1165
+ <td style="text-align: center;">11.56</td>
1166
+ <td style="text-align: center;">18.26</td>
1167
+ <td style="text-align: center;">7.65</td>
1168
+ <td style="text-align: center;">5.03</td>
1169
+ </tr>
1170
+ <tr>
1171
+ <td style="text-align: left;">S3 Tokenizer(FSQ) (Du et al., 2024a)</td>
1172
+ <td style="text-align: center;">6561</td>
1173
+ <td style="text-align: center;">25</td>
1174
+ <td style="text-align: center;">10.67</td>
1175
+ <td style="text-align: center;"><strong>7.29</strong></td>
1176
+ <td style="text-align: center;">6.58</td>
1177
+ <td style="text-align: center;">4.43</td>
1178
+ </tr>
1179
+ <tr>
1180
+ <td style="text-align: left;">Qwen-TTS-Tokenizer-25Hz (Stage 1)</td>
1181
+ <td style="text-align: center;">32768</td>
1182
+ <td style="text-align: center;">25</td>
1183
+ <td style="text-align: center;"><strong>7.51</strong></td>
1184
+ <td style="text-align: center;">10.73</td>
1185
+ <td style="text-align: center;"><strong>3.07</strong></td>
1186
+ <td style="text-align: center;"><strong>4.23</strong></td>
1187
+ </tr>
1188
+ <tr>
1189
+ <td style="text-align: left;">Qwen-TTS-Tokenizer-25Hz (Stage 2)</td>
1190
+ <td style="text-align: center;">32768</td>
1191
+ <td style="text-align: center;">25</td>
1192
+ <td style="text-align: center;">10.40</td>
1193
+ <td style="text-align: center;">14.99</td>
1194
+ <td style="text-align: center;">4.14</td>
1195
+ <td style="text-align: center;">4.67</td>
1196
+ </tr>
1197
+ </tbody>
1198
+ </table>
1199
+
1200
+ <br>
1201
+
1202
+ *Comparison between different semantic-related speech tokenizers.*
1203
+
1204
+ <table>
1205
+ <thead>
1206
+ <tr>
1207
+ <th style="text-align: left;">Model</th>
1208
+ <th style="text-align: center;">NQ</th>
1209
+ <th style="text-align: center;">Codebook Size</th>
1210
+ <th style="text-align: center;">FPS</th>
1211
+ <th style="text-align: center;">PESQ_WB</th>
1212
+ <th style="text-align: center;">PESQ_NB</th>
1213
+ <th style="text-align: center;">STOI</th>
1214
+ <th style="text-align: center;">UTMOS</th>
1215
+ <th style="text-align: center;">SIM</th>
1216
+ </tr>
1217
+ </thead>
1218
+ <tbody>
1219
+ <tr>
1220
+ <td style="text-align: left;">SpeechTokenizer (Zhang et al., 2023a)</td>
1221
+ <td style="text-align: center;">8</td>
1222
+ <td style="text-align: center;">1024</td>
1223
+ <td style="text-align: center;">50</td>
1224
+ <td style="text-align: center;">2.60</td>
1225
+ <td style="text-align: center;">3.05</td>
1226
+ <td style="text-align: center;">0.92</td>
1227
+ <td style="text-align: center;">3.90</td>
1228
+ <td style="text-align: center;">0.85</td>
1229
+ </tr>
1230
+ <tr>
1231
+ <td style="text-align: left;">X-codec (Ye et al., 2025a)</td>
1232
+ <td style="text-align: center;">2</td>
1233
+ <td style="text-align: center;">1024</td>
1234
+ <td style="text-align: center;">50</td>
1235
+ <td style="text-align: center;">2.68</td>
1236
+ <td style="text-align: center;">3.27</td>
1237
+ <td style="text-align: center;">0.86</td>
1238
+ <td style="text-align: center;">4.11</td>
1239
+ <td style="text-align: center;">0.84</td>
1240
+ </tr>
1241
+ <tr>
1242
+ <td style="text-align: left;">X-codec 2 (Ye et al., 2025b)</td>
1243
+ <td style="text-align: center;">1</td>
1244
+ <td style="text-align: center;">65536</td>
1245
+ <td style="text-align: center;">50</td>
1246
+ <td style="text-align: center;">2.43</td>
1247
+ <td style="text-align: center;">3.04</td>
1248
+ <td style="text-align: center;">0.92</td>
1249
+ <td style="text-align: center;">4.13</td>
1250
+ <td style="text-align: center;">0.82</td>
1251
+ </tr>
1252
+ <tr>
1253
+ <td style="text-align: left;">XY-Tokenizer (Gong et al., 2025)</td>
1254
+ <td style="text-align: center;">8</td>
1255
+ <td style="text-align: center;">1024</td>
1256
+ <td style="text-align: center;">12.5</td>
1257
+ <td style="text-align: center;">2.41</td>
1258
+ <td style="text-align: center;">3.00</td>
1259
+ <td style="text-align: center;">0.91</td>
1260
+ <td style="text-align: center;">3.98</td>
1261
+ <td style="text-align: center;">0.83</td>
1262
+ </tr>
1263
+ <tr>
1264
+ <td style="text-align: left;">Mimi (Défossez et al., 2024)</td>
1265
+ <td style="text-align: center;">16</td>
1266
+ <td style="text-align: center;">2048</td>
1267
+ <td style="text-align: center;">12.5</td>
1268
+ <td style="text-align: center;">2.88</td>
1269
+ <td style="text-align: center;">3.42</td>
1270
+ <td style="text-align: center;">0.94</td>
1271
+ <td style="text-align: center;">3.87</td>
1272
+ <td style="text-align: center;">0.87</td>
1273
+ </tr>
1274
+ <tr>
1275
+ <td style="text-align: left;">FireredTTS 2 Tokenizer (Xie et al., 2025)</td>
1276
+ <td style="text-align: center;">16</td>
1277
+ <td style="text-align: center;">2048</td>
1278
+ <td style="text-align: center;">12.5</td>
1279
+ <td style="text-align: center;">2.73</td>
1280
+ <td style="text-align: center;">3.28</td>
1281
+ <td style="text-align: center;">0.94</td>
1282
+ <td style="text-align: center;">3.88</td>
1283
+ <td style="text-align: center;">0.87</td>
1284
+ </tr>
1285
+ <tr>
1286
+ <td style="text-align: left;">Qwen-TTS-Tokenizer-12Hz</td>
1287
+ <td style="text-align: center;">16</td>
1288
+ <td style="text-align: center;">2048</td>
1289
+ <td style="text-align: center;">12.5</td>
1290
+ <td style="text-align: center;"><strong>3.21</strong></td>
1291
+ <td style="text-align: center;"><strong>3.68</strong></td>
1292
+ <td style="text-align: center;"><strong>0.96</strong></td>
1293
+ <td style="text-align: center;"><strong>4.16</strong></td>
1294
+ <td style="text-align: center;"><strong>0.95</strong></td>
1295
+ </tr>
1296
+ </tbody>
1297
+ </table>
1298
+
1299
+ </details>
1300
+
1301
+
1302
+ ## Citation
1303
+
1304
+ If you find our paper and code useful in your research, please consider giving a star :star: and citation :pencil: :)
1305
+
1306
+ ```BibTeX
1307
+ @article{Qwen3-TTS,
1308
+ title={Qwen3-TTS Technical Report},
1309
+ author={Hangrui Hu and Xinfa Zhu and Ting He and Dake Guo and Bin Zhang and Xiong Wang and Zhifang Guo and Ziyue Jiang and Hongkun Hao and Zishan Guo and Xinyu Zhang and Pei Zhang and Baosong Yang and Jin Xu and Jingren Zhou and Junyang Lin},
1310
+ journal={arXiv preprint arXiv:2601.15621},
1311
+ year={2026}
1312
+ }
1313
+ ```
1314
+
1315
+ <br>
config.json ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3TTSForConditionalGeneration"
4
+ ],
5
+ "assistant_token_id": 77091,
6
+ "im_end_token_id": 151645,
7
+ "im_start_token_id": 151644,
8
+ "tts_bos_token_id": 151672,
9
+ "tts_eos_token_id": 151673,
10
+ "tts_pad_token_id": 151671,
11
+ "model_type": "qwen3_tts",
12
+ "tokenizer_type": "qwen3_tts_tokenizer_12hz",
13
+ "tts_model_size": "1b7",
14
+ "tts_model_type": "base",
15
+ "speaker_encoder_config": {
16
+ "enc_dim": 2048,
17
+ "sample_rate": 24000
18
+ },
19
+ "talker_config": {
20
+ "attention_bias": false,
21
+ "attention_dropout": 0,
22
+ "code_predictor_config": {
23
+ "_name_or_path": "",
24
+ "add_cross_attention": false,
25
+ "architectures": null,
26
+ "attention_bias": false,
27
+ "attention_dropout": 0,
28
+ "bad_words_ids": null,
29
+ "begin_suppress_tokens": null,
30
+ "bos_token_id": null,
31
+ "chunk_size_feed_forward": 0,
32
+ "cross_attention_hidden_size": null,
33
+ "decoder_start_token_id": null,
34
+ "diversity_penalty": 0.0,
35
+ "do_sample": false,
36
+ "early_stopping": false,
37
+ "encoder_no_repeat_ngram_size": 0,
38
+ "eos_token_id": null,
39
+ "exponential_decay_length_penalty": null,
40
+ "finetuning_task": null,
41
+ "forced_bos_token_id": null,
42
+ "forced_eos_token_id": null,
43
+ "head_dim": 128,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 1024,
46
+ "id2label": {
47
+ "0": "LABEL_0",
48
+ "1": "LABEL_1"
49
+ },
50
+ "initializer_range": 0.02,
51
+ "intermediate_size": 3072,
52
+ "is_decoder": false,
53
+ "is_encoder_decoder": false,
54
+ "label2id": {
55
+ "LABEL_0": 0,
56
+ "LABEL_1": 1
57
+ },
58
+ "layer_types": [
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention"
64
+ ],
65
+ "length_penalty": 1.0,
66
+ "max_length": 20,
67
+ "max_position_embeddings": 65536,
68
+ "max_window_layers": 28,
69
+ "min_length": 0,
70
+ "model_type": "qwen3_tts_talker_code_predictor",
71
+ "no_repeat_ngram_size": 0,
72
+ "num_attention_heads": 16,
73
+ "num_beam_groups": 1,
74
+ "num_beams": 1,
75
+ "num_code_groups": 16,
76
+ "num_hidden_layers": 5,
77
+ "num_key_value_heads": 8,
78
+ "num_return_sequences": 1,
79
+ "output_attentions": false,
80
+ "output_hidden_states": false,
81
+ "output_scores": false,
82
+ "pad_token_id": null,
83
+ "prefix": null,
84
+ "problem_type": null,
85
+ "pruned_heads": {},
86
+ "remove_invalid_values": false,
87
+ "repetition_penalty": 1.0,
88
+ "return_dict": true,
89
+ "return_dict_in_generate": false,
90
+ "rms_norm_eps": 1e-06,
91
+ "rope_scaling": null,
92
+ "rope_theta": 1000000,
93
+ "sep_token_id": null,
94
+ "sliding_window": null,
95
+ "suppress_tokens": null,
96
+ "task_specific_params": null,
97
+ "temperature": 1.0,
98
+ "tf_legacy_loss": false,
99
+ "tie_encoder_decoder": false,
100
+ "tie_word_embeddings": false,
101
+ "tokenizer_class": null,
102
+ "top_k": 50,
103
+ "top_p": 1.0,
104
+ "dtype": null,
105
+ "torchscript": false,
106
+ "typical_p": 1.0,
107
+ "use_bfloat16": false,
108
+ "use_cache": true,
109
+ "use_sliding_window": false,
110
+ "vocab_size": 2048
111
+ },
112
+ "codec_bos_id": 2149,
113
+ "codec_eos_token_id": 2150,
114
+ "codec_think_id": 2154,
115
+ "codec_language_id": {
116
+ "chinese": 2055,
117
+ "english": 2050,
118
+ "german": 2053,
119
+ "italian": 2070,
120
+ "portuguese": 2071,
121
+ "spanish": 2054,
122
+ "japanese": 2058,
123
+ "korean": 2064,
124
+ "french": 2061,
125
+ "russian": 2069
126
+ },
127
+ "codec_nothink_id": 2155,
128
+ "codec_pad_id": 2148,
129
+ "codec_think_bos_id": 2156,
130
+ "codec_think_eos_id": 2157,
131
+ "spk_id": {
132
+ "speaker_test": 3000
133
+ },
134
+ "spk_is_dialect": {
135
+ "speaker_test": false
136
+ },
137
+ "head_dim": 128,
138
+ "hidden_act": "silu",
139
+ "hidden_size": 2048,
140
+ "initializer_range": 0.02,
141
+ "intermediate_size": 6144,
142
+ "max_position_embeddings": 32768,
143
+ "model_type": "qwen3_tts_talker",
144
+ "num_attention_heads": 16,
145
+ "num_code_groups": 16,
146
+ "num_hidden_layers": 28,
147
+ "num_key_value_heads": 8,
148
+ "position_id_per_seconds": 13,
149
+ "rms_norm_eps": 1e-06,
150
+ "rope_scaling": {
151
+ "interleaved": true,
152
+ "mrope_section": [
153
+ 24,
154
+ 20,
155
+ 20
156
+ ],
157
+ "rope_type": "default",
158
+ "type": "default"
159
+ },
160
+ "rope_theta": 1000000,
161
+ "sliding_window": null,
162
+ "text_hidden_size": 2048,
163
+ "text_vocab_size": 151936,
164
+ "use_cache": true,
165
+ "use_sliding_window": false,
166
+ "vocab_size": 3072
167
+ },
168
+ "transformers_version": "4.57.3"
169
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_sample": true,
3
+ "repetition_penalty": 1.05,
4
+ "temperature": 0.9,
5
+ "top_p": 1.0,
6
+ "top_k": 50,
7
+ "subtalker_dosample": true,
8
+ "subtalker_temperature": 0.9,
9
+ "subtalker_top_p": 1.0,
10
+ "subtalker_top_k": 50,
11
+ "max_new_tokens": 8192
12
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e85136abc2c7daeb1ba351c2c1a27d74e1da24d60e876db48a85866c1d052e58
3
+ size 3857413744
preprocessor_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "padding_side": "left",
3
+ "padding_value": 0.0,
4
+ "processor_class": "Qwen3TTSProcessor",
5
+ "return_attention_mask": true
6
+ }
speech_tokenizer/config.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3TTSTokenizerV2Model"
4
+ ],
5
+ "model_type": "qwen3_tts_tokenizer_12hz",
6
+ "encoder_valid_num_quantizers": 16,
7
+ "input_sample_rate": 24000,
8
+ "output_sample_rate": 24000,
9
+ "decode_upsample_rate": 1920,
10
+ "encode_downsample_rate": 1920,
11
+ "decoder_config": {
12
+ "attention_bias": false,
13
+ "attention_dropout": 0.0,
14
+ "latent_dim": 1024,
15
+ "codebook_dim": 512,
16
+ "codebook_size": 2048,
17
+ "decoder_dim": 1536,
18
+ "hidden_act": "silu",
19
+ "hidden_size": 512,
20
+ "intermediate_size": 1024,
21
+ "layer_scale_initial_scale": 0.01,
22
+ "max_position_embeddings": 8000,
23
+ "head_dim": 64,
24
+ "num_attention_heads": 16,
25
+ "num_hidden_layers": 8,
26
+ "num_key_value_heads": 16,
27
+ "num_quantizers": 16,
28
+ "num_semantic_quantizers": 1,
29
+ "rms_norm_eps": 1e-05,
30
+ "rope_theta": 10000,
31
+ "semantic_codebook_size": 4096,
32
+ "sliding_window": 72,
33
+ "upsample_rates": [
34
+ 8,
35
+ 5,
36
+ 4,
37
+ 3
38
+ ],
39
+ "upsampling_ratios": [
40
+ 2,
41
+ 2
42
+ ],
43
+ "vector_quantization_hidden_dimension": 512
44
+ },
45
+ "encoder_config": {
46
+ "_frame_rate": 12.5,
47
+ "attention_bias": false,
48
+ "attention_dropout": 0.0,
49
+ "audio_channels": 1,
50
+ "codebook_dim": 256,
51
+ "codebook_size": 2048,
52
+ "compress": 2,
53
+ "dilation_growth_rate": 2,
54
+ "dtype": "float32",
55
+ "head_dim": 64,
56
+ "hidden_act": "gelu",
57
+ "hidden_size": 512,
58
+ "initializer_range": 0.02,
59
+ "intermediate_size": 2048,
60
+ "kernel_size": 7,
61
+ "last_kernel_size": 3,
62
+ "layer_scale_initial_scale": 0.01,
63
+ "max_position_embeddings": 8000,
64
+ "norm_eps": 1e-05,
65
+ "normalize": false,
66
+ "num_attention_heads": 8,
67
+ "num_filters": 64,
68
+ "num_hidden_layers": 8,
69
+ "num_key_value_heads": 8,
70
+ "num_quantizers": 32,
71
+ "num_residual_layers": 1,
72
+ "num_semantic_quantizers": 1,
73
+ "pad_mode": "constant",
74
+ "residual_kernel_size": 3,
75
+ "rope_theta": 10000.0,
76
+ "sampling_rate": 24000,
77
+ "sliding_window": 250,
78
+ "transformers_version": "4.57.0.dev0",
79
+ "trim_right_ratio": 1.0,
80
+ "upsample_groups": 512,
81
+ "upsampling_ratios": [
82
+ 8,
83
+ 6,
84
+ 5,
85
+ 4
86
+ ],
87
+ "use_cache": false,
88
+ "use_causal_conv": true,
89
+ "use_conv_shortcut": false,
90
+ "use_streaming": false,
91
+ "vector_quantization_hidden_dimension": 256
92
+ },
93
+ "transformers_version": "4.57.3"
94
+ }
speech_tokenizer/configuration.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"framework": "pytorch", "task": "feature-extraction", "allow_remote": true}
speech_tokenizer/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:836b7b357f5ea43e889936a3709af68dfe3751881acefe4ecf0dbd30ba571258
3
+ size 682293092
speech_tokenizer/preprocessor_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length_s": null,
3
+ "feature_extractor_type": "EncodecFeatureExtractor",
4
+ "feature_size": 1,
5
+ "overlap": null,
6
+ "padding_side": "right",
7
+ "padding_value": 0.0,
8
+ "return_attention_mask": true,
9
+ "sampling_rate": 24000
10
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ },
213
+ "151669": {
214
+ "content": "<|audio_start|>",
215
+ "lstrip": false,
216
+ "normalized": false,
217
+ "rstrip": false,
218
+ "single_word": false,
219
+ "special": true
220
+ },
221
+ "151670": {
222
+ "content": "<|audio_end|>",
223
+ "lstrip": false,
224
+ "normalized": false,
225
+ "rstrip": false,
226
+ "single_word": false,
227
+ "special": true
228
+ },
229
+ "151671": {
230
+ "content": "<tts_pad>",
231
+ "lstrip": false,
232
+ "normalized": false,
233
+ "rstrip": false,
234
+ "single_word": false,
235
+ "special": true
236
+ },
237
+ "151672": {
238
+ "content": "<tts_text_bos>",
239
+ "lstrip": false,
240
+ "normalized": false,
241
+ "rstrip": false,
242
+ "single_word": false,
243
+ "special": true
244
+ },
245
+ "151673": {
246
+ "content": "<tts_text_eod>",
247
+ "lstrip": false,
248
+ "normalized": false,
249
+ "rstrip": false,
250
+ "single_word": false,
251
+ "special": true
252
+ },
253
+ "151674": {
254
+ "content": "<tts_text_bos_single>",
255
+ "lstrip": false,
256
+ "normalized": false,
257
+ "rstrip": false,
258
+ "single_word": false,
259
+ "special": true
260
+ },
261
+ "151675": {
262
+ "content": "<|audio_pad|>",
263
+ "lstrip": false,
264
+ "normalized": false,
265
+ "rstrip": false,
266
+ "single_word": false,
267
+ "special": true
268
+ }
269
+ },
270
+ "additional_special_tokens": [
271
+ "<|im_start|>",
272
+ "<|im_end|>",
273
+ "<|object_ref_start|>",
274
+ "<|object_ref_end|>",
275
+ "<|box_start|>",
276
+ "<|box_end|>",
277
+ "<|quad_start|>",
278
+ "<|quad_end|>",
279
+ "<|vision_start|>",
280
+ "<|vision_end|>",
281
+ "<|vision_pad|>",
282
+ "<|image_pad|>",
283
+ "<|video_pad|>",
284
+ "<|audio_start|>",
285
+ "<|audio_end|>",
286
+ "<tts_pad>",
287
+ "<tts_text_bos>",
288
+ "<tts_text_bos_single>",
289
+ "<|audio_pad|>"
290
+ ],
291
+ "extra_special_tokens": {
292
+ "image_token": "<|image_pad|>",
293
+ "audio_token": "<|audio_pad|>",
294
+ "video_token": "<|video_pad|>",
295
+ "vision_bos_token": "<|vision_start|>",
296
+ "vision_eos_token": "<|vision_end|>",
297
+ "audio_bos_token": "<|audio_start|>",
298
+ "audio_eos_token": "<|audio_end|>"
299
+ },
300
+ "bos_token": null,
301
+ "clean_up_tokenization_spaces": false,
302
+ "eos_token": "<|im_end|>",
303
+ "errors": "replace",
304
+ "model_max_length": 131072,
305
+ "pad_token": "<|endoftext|>",
306
+ "split_special_tokens": false,
307
+ "tokenizer_class": "Qwen2Tokenizer",
308
+ "unk_token": null,
309
+ "image_token": "<|image_pad|>",
310
+ "audio_token": "<|audio_pad|>",
311
+ "video_token": "<|video_pad|>",
312
+ "vision_bos_token": "<|vision_start|>",
313
+ "vision_eos_token": "<|vision_end|>",
314
+ "audio_bos_token": "<|audio_start|>",
315
+ "audio_eos_token": "<|audio_end|>"
316
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff