跳转到内容

Bytedance Seed Speech Text to Speech

集成

模型 id bytedance/seed-speech/tts/v2
# 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/bytedance/seed-speech/tts/v2?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.002 2 API 积分 · ≈ ₽0.22 在此页面运行

获取 API 密钥
ByteDance 文本转语音 唇形同步 #stylized#transform#lipsync

文本转语音,支持多种预设声音、速度、音调和音量控制,以及口语风格指令

ByteDance · 音频

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

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

构建请求

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

•必填 50 / 5000

要转换为合成语音的文本。

高级 voice_instruction · output_format · sample_rate · voice · language · speed · volume · pitch

可选的自然语言表达指令,例如 'Speak in a cheerful tone' 或 'Could you speak a bit slower?'。可用于指定语气、情绪、音量和语速。

output_format 默认 mp3

音频输出编码:'mp3' 生成 MP3,'opus' 生成封装在 Ogg 容器中的 Opus。

sample_rate 默认 24000

输出音频的采样频率,单位为 Hz。

默认 stokie_en

合成声音预设,其名称还包含支持的语言代码。语言支持可能彼此独立,如 'en_zh';也可能支持英语与中文的无缝混合,以 'mixed_en_zh' 表示。

朗读语言覆盖设置:省略时会自动检测,双语声音可无缝混合中文和英语;提供后会禁用检测并限制为一种语言。使用 zh 选择中文,en 选择英语,ja 选择日语,es-mx 选择墨西哥西班牙语,id 选择印度尼西亚语,pt-br 选择巴西葡萄牙语,ko 选择韩语,it 选择意大利语,de 选择德语,fr 选择法语。

默认 1

语速倍数:1.0 为正常速度,0.5 为半速,2.0 为两倍速。

默认 1

音量倍数:1.0 为正常音量,0.5 为一半音量,2.0 为两倍音量。

默认 0

以半音为单位调整声音音调:0 表示不变,-12 表示降低一个八度,12 表示升高一个八度。

POST /run/bytedance/seed-speech/tts/v2?wait=20 报价 → $0.002
# 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/bytedance/seed-speech/tts/v2?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 密钥

关于 Bytedance Seed Speech Text to Speech

将最多 5000 个字符的 `text` 转换为音频。选择 `voice`,也可以指定 `language` 或使用自动检测。`speed` 和 `volume` 范围为 0.5 到 2,`pitch` 可调整 -12 到 12 个半音,`voice_instruction` 用于控制表达方式。输出格式为 mp3 或 opus,采样率为 8000 到 48000 Hz。

参数

名称类型 默认值允许值 描述
text必填
类型string
≤ 5,000 个字符
要转换为合成语音的文本。
voice可选
类型enum
默认值stokie_en
vivi_mixed_en_zh_ja_es_idmindy_en_es_id_pt_zhstokie_endacey_entim_enkian_en_zhcedric_en_zhsophie_en_zhjean_en_zhmagnus_en_zhmabel_en_zhnadia_en_zhopal_en_zhpearl_en_zhquentin_en_zhvienna_mixed_en_zh
另外 25 个alina_mixed_en_zhcorinne_mixed_en_zhesther_mixed_en_zhfreya_mixed_en_zhgigi_mixed_en_zhholly_mixed_en_zhlyla_mixed_en_zhdaisy_mixed_en_zhtracy_es_zhjess_ja_es_id_pt_en_zhpinky_es_ko_mixed_en_zhsweety_ja_essandy_es_mixed_en_zhsven_deminimi_jausseau_frfelipe_eshan_idmartins_ptenzo_itshane_kobonnie_zhfelix_zhceleste_zhmonkey_king_zh
合成声音预设,其名称还包含支持的语言代码。语言支持可能彼此独立,如 'en_zh';也可能支持英语与中文的无缝混合,以 'mixed_en_zh' 表示。
output_format可选
类型enum
默认值mp3
mp3opus
音频输出编码:'mp3' 生成 MP3,'opus' 生成封装在 Ogg 容器中的 Opus。
sample_rate可选
类型enum
默认值24000
8000160002205024000320004410048000
输出音频的采样频率,单位为 Hz。
speed可选
类型number
默认值1
0.5 – 2
语速倍数:1.0 为正常速度,0.5 为半速,2.0 为两倍速。
volume可选
类型number
默认值1
0.5 – 2
音量倍数:1.0 为正常音量,0.5 为一半音量,2.0 为两倍音量。
pitch可选
类型integer
默认值0
-12 – 12
以半音为单位调整声音音调:0 表示不变,-12 表示降低一个八度,12 表示升高一个八度。
language可选
类型enum
zhenjaes-mxidpt-brkoitdefr
朗读语言覆盖设置:省略时会自动检测,双语声音可无缝混合中文和英语;提供后会禁用检测并限制为一种语言。使用 zh 选择中文,en 选择英语,ja 选择日语,es-mx 选择墨西哥西班牙语,id 选择印度尼西亚语,pt-br 选择巴西葡萄牙语,ko 选择韩语,it 选择意大利语,de 选择德语,fr 选择法语。
voice_instruction可选
类型string | null
可选的自然语言表达指令,例如 'Speak in a cheerful tone' 或 'Could you speak a bit slower?'。可用于指定语气、情绪、音量和语速。
必填

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bytedance/seed-speech/tts/v2",
  "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": 2,
    "usd": "0.002",
    "charged": 2,
    "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
    }
  },
  "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}生成得到的音频文件。

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/bytedance/seed-speech/tts/v2.md. 所有模型和指南: https://doitong.com/developers/llms.txt