跳转到内容

Qwen 3 TTS - Text to Speech [0.6B]

集成

模型 id qwen-3-tts/text-to-speech/0.6b
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/qwen-3-tts/text-to-speech/0.6b?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此请求: $0.004 4 API 积分 · ≈ ₽0.43 在此页面运行

获取 API 密钥
Alibaba 文本转语音 参考输入 #text-to-speech

较小的 0.6B Qwen3 文本转语音模型,支持九种预设声音、语言选择及通过嵌入克隆声音

Alibaba · 音频

你的第一个结果将在此显示

在下方构建请求,并使用你的 API 密钥运行。输出会复制到我们的存储中,可永久保存或免费保存 7 天。

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填

要转换为语音的文本内容。

可选的语音风格指令;提供说话人嵌入时将被忽略。

高级 reference_text · speaker_voice_embedding_file_url · voice · language · top_k · top_p · temperature · repetition_penalty · subtalker_top_k · subtalker_top_p · subtalker_temperature · max_new_tokens · subtalker_dosample · enable_safety_checker

可选提供的参考文本,用于改进克隆声音的合成;必须是用于创建说话人嵌入的文本。

拖放文件,或

用于语音合成的克隆音色;提供后将替代预定义音色选项。

语音合成音色选择;提供说话人嵌入时将被覆盖。音色详情和主要语言支持请参阅[语音文档](https://github.com/QwenLM/Qwen3-TTS/tree/main?tab=readme-ov-file#custom-voice-generate)。

默认 Auto

音色使用的语言。

默认 50

top-k 采样设置。

默认 1

采样时使用的 Top-p 设置。

默认 0.9

采样时使用的温度;数值越大,随机性越高。

默认 1.05

抑制 token 或代码重复的惩罚。

默认 50

从子说话人采样时使用的 Top-k 设置。

默认 1

从子说话人采样时使用的 Top-p 设置。

默认 0.9

子说话人使用的采样温度。

默认 200

新生成 codec token 的上限。

POST /run/qwen-3-tts/text-to-speech/0.6b?wait=20 报价 → $0.004
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/qwen-3-tts/text-to-speech/0.6b?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Doitong. This is a short test sentence."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Qwen 3 TTS - Text to Speech [0.6B]

使用 0.6B 模型将 `text` 转换为语音。可选择 Vivian、Serena、Dylan 或 Sohee 等预设 `voice`,也可提供 `speaker_voice_embedding_file_url` 使用克隆声音,并可选提供 `reference_text`。`language` 支持 Auto 及包括 English、Chinese 和 Japanese 在内的十种指定语言。提供采样控制和 `max_new_tokens`(1 至 8192)。

参数

名称类型 默认值允许值 描述
text必填
类型string
要转换为语音的文本内容。
prompt可选
类型string | null
可选的语音风格指令;提供说话人嵌入时将被忽略。
voice可选
类型enum
VivianSerenaUncle_FuDylanEricRyanAidenOno_AnnaSohee
语音合成音色选择;提供说话人嵌入时将被覆盖。音色详情和主要语言支持请参阅[语音文档](https://github.com/QwenLM/Qwen3-TTS/tree/main?tab=readme-ov-file#custom-voice-generate)。
language可选
类型enum
默认值Auto
AutoEnglishChineseSpanishFrenchGermanItalianJapaneseKoreanPortugueseRussian
音色使用的语言。
speaker_voice_embedding_file_url可选
类型url · file
用于语音合成的克隆音色;提供后将替代预定义音色选项。
reference_text可选
类型string | null
可选提供的参考文本,用于改进克隆声音的合成;必须是用于创建说话人嵌入的文本。
top_k可选
类型integer | null
默认值50
≥ 0
top-k 采样设置。
top_p可选
类型number | null
默认值1
0 – 1
采样时使用的 Top-p 设置。
temperature可选
类型number | null
默认值0.9
≤ 1> 0
采样时使用的温度;数值越大,随机性越高。
repetition_penalty可选
类型number | null
默认值1.05
≥ 0
抑制 token 或代码重复的惩罚。
subtalker_dosample可选
类型boolean | null
默认值true
启用或禁用子说话人的采样。
subtalker_top_k可选
类型integer | null
默认值50
≥ 0
从子说话人采样时使用的 Top-k 设置。
subtalker_top_p可选
类型number | null
默认值1
0 – 1
从子说话人采样时使用的 Top-p 设置。
subtalker_temperature可选
类型number | null
默认值0.9
0 – 1
子说话人使用的采样温度。
max_new_tokens可选
类型integer | null
默认值200
1 – 8,192
新生成 codec token 的上限。
enable_safety_checker可选
类型boolean
默认值true
调用方获得授权后,可将其设置为 false 以放宽审核。
必填

文件参数接受公开的 https:// URL、最大 10 MB 的 data: URI,或上传文件的 file_url。 文件

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "qwen-3-tts/text-to-speech/0.6b",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 4,
    "usd": "0.004",
    "charged": 4,
    "refunded": 0
  },
  "input": {
    "text": "Hello from Doitong. This is a short test sentence."
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200,
      "duration": 5,
      "channels": 1,
      "sample_rate": 1,
      "bitrate": "string"
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
audio
object {url, content_type, file_name, file_size, duration, channels, sample_rate, bitrate}包含合成语音的音频文件。

更多模型:文本转语音

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/qwen-3-tts/text-to-speech/0.6b.md. 所有模型和指南: https://doitong.com/developers/llms.txt