跳至內容

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.21 在此頁面執行

取得 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-TW/developers/models/bytedance/seed-speech/tts/v2.md. 所有模型與指南: https://doitong.com/developers/llms.txt