跳转到内容

Tada TTS 1B

集成

模型 id tada/1b/text-to-speech
# 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/tada/1b/text-to-speech?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "prompt": "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.003 3 API 积分 · ≈ ₽0.32 在此页面运行

获取 API 密钥
Open model 文本转语音

根据参考音频进行声音克隆的文本转语音,1B 版本支持十种语言

Open model · 音频

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

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

构建请求

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

•必填

以文本提供的语音内容;参考说话人提供用于渲染文本的声音。

•必填 audio_url
拖放文件,或

以音频文件 URL 提供的声音克隆源,用于指定模型应复现其声音特征的说话人。

高级 output_format · transcript · language · num_extra_steps · temperature · top_p · repetition_penalty · acoustic_cfg_scale · noise_temperature · num_inference_steps · speed_up_factor · enable_safety_checker
output_format 默认 wav

生成音频的文件格式。

默认

参考音频转录内容;对于英语以外语言的录音必须提供。英语仅内置自动转录。

默认 en

文本对齐语言代码;使用英语以外的语言生成语音时,必须与合成语言对应。

默认 0

额外的自回归步数,用于通过在提供的文本之后继续生成语音来添加尾部韵律或静音。

默认 0.6

文本 token 采样温度:提高该值会增加输出多样性,0 或更低的值不被允许。

默认 0.9

用于生成文本的 Top-p(核)采样设置。

默认 1.1

生成输出时对 token 重复的惩罚。

默认 1.6

用于生成声学特征的无分类器指导强度。

默认 0.9

流匹配扩散期间使用的噪声温度。

默认 20

通过流匹配生成声学特征时使用的 ODE 求解器步数。

默认 1

语速倍数:低于 1.0 时生成语音变慢,高于 1.0 时变快。

POST /run/tada/1b/text-to-speech?wait=20 报价 → $0.003
# 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/tada/1b/text-to-speech?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "prompt": "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 密钥

关于 Tada TTS 1B

使用 `audio_url` 指定的参考音频中的声音朗读 `prompt` 文本。对于非英语音频,需要提供参考音频的 `transcript`。`language` 支持 en、ar、ch、de、es、fr、it、ja、pl 和 pt。可调节 `speed_up_factor`(0.5 到 2)、`temperature`、`top_p` 和 `num_inference_steps`;输出格式为 wav 或 mp3。

参数

发送规范名称或原生名称之一,不要同时发送两者。 规范名称

名称类型 默认值允许值 描述
audio_url必填 audio
类型url · audio
以音频文件 URL 提供的声音克隆源,用于指定模型应复现其声音特征的说话人。
transcript可选
类型string
默认值
参考音频转录内容;对于英语以外语言的录音必须提供。英语仅内置自动转录。
prompt必填
类型string
以文本提供的语音内容;参考说话人提供用于渲染文本的声音。
language可选
类型enum
默认值en
enarchdeesfritjaplpt
文本对齐语言代码;使用英语以外的语言生成语音时,必须与合成语言对应。
num_extra_steps可选
类型integer
默认值0
0 – 50
额外的自回归步数,用于通过在提供的文本之后继续生成语音来添加尾部韵律或静音。
temperature可选
类型number
默认值0.6
≤ 2> 0
文本 token 采样温度:提高该值会增加输出多样性,0 或更低的值不被允许。
top_p可选
类型number
默认值0.9
0 – 1
用于生成文本的 Top-p(核)采样设置。
repetition_penalty可选
类型number
默认值1.1
1 – 2
生成输出时对 token 重复的惩罚。
acoustic_cfg_scale可选
类型number
默认值1.6
0 – 10
用于生成声学特征的无分类器指导强度。
noise_temperature可选
类型number
默认值0.9
0 – 2
流匹配扩散期间使用的噪声温度。
num_inference_steps可选
类型integer
默认值20
1 – 50
通过流匹配生成声学特征时使用的 ODE 求解器步数。
speed_up_factor可选
类型number
默认值1
0.5 – 2
语速倍数:低于 1.0 时生成语音变慢,高于 1.0 时变快。
output_format可选
类型enum
默认值wav
wavmp3
生成音频的文件格式。
enable_safety_checker可选
类型boolean
默认值true
调用方获得授权后,可将其设置为 false 以放宽审核。
必填 规范名称,也可接受

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

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "tada/1b/text-to-speech",
  "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": 3,
    "usd": "0.003",
    "charged": 3,
    "refunded": 0
  },
  "input": {
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "prompt": "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/tada/1b/text-to-speech.md. 所有模型和指南: https://doitong.com/developers/llms.txt