跳至內容

MiniMax Speech 2.8 HD

整合

模型 id minimax/speech-2.8-hd
# 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/minimax/speech-2.8-hd?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Welcome aboard. Tonight we cruise along the northern coast, where the lighthouse has guided sailors home for two hundred years. Find a warm seat on the upper deck and enjoy the view."
  }'

# 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.019 19 API 點數 · ≈ ₽2.04 在此頁面執行

取得 API 金鑰

範例

輸出 · ~10 秒

提示詞Welcome aboard. Tonight we cruise along the northern coast, where the lighthouse has guided sailors home for two hundred years. Find a warm seat on the upper deck and enjoy the view.

$0.019 · 19 API 點數

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填 182 / 10000

用於語音合成的文字,使用 `<#x#>` 指定停頓,其中 x 的範圍為 0.01 到 99.99 秒。可用的插入語標記包括 `(laughs)`、`(sighs)`、`(coughs)`、`(clears throat)`、`(gasps)`、`(sniffs)`、`(groans)` 和 `(yawns)`。

進階 output_format · language_boost · voice_setting · audio_setting · pronunciation_dict · normalization_setting · voice_modify
output_format 預設 hex

輸出內容格式;僅適用於非串流回應。

改善所選語言和方言的辨識效果。

預設 {"english_normalizati...

用於設定語音的設定。

用於設定音訊的選項。

用於取代文字的自訂發音字典。

控制音訊響度正規化的設定。

用於修改聲音音高、強度和音色的設定。

POST /run/minimax/speech-2.8-hd?wait=20 報價 → $0.019
# 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/minimax/speech-2.8-hd?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Welcome aboard. Tonight we cruise along the northern coast, where the lighthouse has guided sailors home for two hundred years. Find a warm seat on the upper deck and enjoy the view."
  }'

# 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 金鑰

關於 MiniMax Speech 2.8 HD

MiniMax Speech 2.8 HD 可將文字轉換為 30 多種語言的語音,並提供細緻控制:行內停頓標記、語音速度、音高與音量、自訂發音字典及語音效果。可從內建語音中選擇,並設定輸出取樣率與格式。

參數

名稱類型 預設值允許值 說明
prompt必填
類型string
≤ 10,000 個字元
用於語音合成的文字,使用 `<#x#>` 指定停頓,其中 x 的範圍為 0.01 到 99.99 秒。可用的插入語標記包括 `(laughs)`、`(sighs)`、`(coughs)`、`(clears throat)`、`(gasps)`、`(sniffs)`、`(groans)` 和 `(yawns)`。
voice_setting選填
類型object
預設值{"english_normalization":false,"pitch":0,"speed":1,"voice_id":"Wise_Woman","vol":1}
用於設定語音的設定。
voice_setting.voice_id選填
類型string
預設值Wise_Woman
≥ 1 characters
用於語音合成的預先定義語音識別碼。
voice_setting.speed選填
類型number
預設值1
0.5 – 2
語速,範圍為 0.5 到 2.0。
voice_setting.vol選填
類型number
預設值1
0.01 – 10
輸出音量,範圍為 0 到 10。
voice_setting.pitch選填
類型integer
預設值0
-12 – 12
語音音高,範圍為 -12 到 12。
voice_setting.emotion選填
類型enum
happysadangryfearfuldisgustedsurprisedneutral
合成語音的情緒語氣。
voice_setting.english_normalization選填
類型boolean
預設值false
英文文字正規化選項,以少量額外延遲換取更好的數字讀法。
audio_setting選填
類型object
用於設定音訊的選項。
audio_setting.sample_rate選填
類型enum
預設值32000
80001600022050240003200044100
生成音訊的取樣率。
audio_setting.bitrate選填
類型enum
預設值128000
3200064000128000256000
生成音訊的位元率。
audio_setting.format選填
類型enum
預設值mp3
mp3pcmflac
音訊格式。
audio_setting.channel選填
類型enum
預設值1
12
音訊聲道數:1 代表單聲道,2 代表立體聲。
language_boost選填
類型enum
ChineseChinese,YueEnglishArabicRussianSpanishFrenchPortugueseGermanTurkishDutchUkrainianVietnameseIndonesianJapaneseItalian
另有 22 個KoreanThaiPolishRomanianGreekCzechFinnishHindiBulgarianDanishHebrewMalaySlovakSwedishCroatianHungarianNorwegianSlovenianCatalanNynorskAfrikaansauto
改善所選語言和方言的辨識效果。
output_format選填
類型enum
預設值hex
urlhex
輸出內容格式;僅適用於非串流回應。
pronunciation_dict選填
類型object
用於取代文字的自訂發音字典。
pronunciation_dict.tone_list選填
類型string[]
使用語法 ['text/(pronunciation)', ...] 的發音取代清單,例如 ['燕少飞/(yan4)(shao3)(fei1)']。中文聲調數字範圍為 1 到 5。
normalization_setting選填
類型object
控制音訊響度正規化的設定。
normalization_setting.enabled選填
類型boolean
預設值true
啟用音訊響度正規化。
normalization_setting.target_loudness選填
類型number
預設值-18
-70 – -10
目標響度,以 LUFS 計算;預設值為 -18.0。
normalization_setting.target_range選填
類型number
預設值8
0 – 20
目標響度範圍,以 LU 計算;預設值為 8.0。
normalization_setting.target_peak選填
類型number
預設值-0.5
-3 – 0
目標峰值,以 dBTP 計算;預設值為 -0.5。
voice_modify選填
類型object
用於修改聲音音高、強度和音色的設定。
voice_modify.pitch選填
類型integer
預設值0
-100 – 100
以半音為單位的音高控制:使用負值降低音調,或使用正值提高音調。允許值範圍為 -100 到 100。
voice_modify.intensity選填
類型integer
預設值0
-100 – 100
聲音能量控制;設定值越高,語音越有活力。允許範圍為 -100 到 100。
voice_modify.timbre選填
類型integer
預設值0
-100 – 100
-100 到 100 的聲音音色調整,用於控制音調特性。
必填

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax/speech-2.8-hd",
  "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": 19,
    "usd": "0.019",
    "charged": 19,
    "refunded": 0
  },
  "input": {
    "prompt": "Hello! Welcome to our new studio. <#0.5#> Let's make something wonderful today."
  },
  "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_ms": 1
  },
  "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_ms
integer音訊長度,以毫秒計算。

更多模型:文字轉語音

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/minimax/speech-2.8-hd.md. 所有模型與指南: https://doitong.com/developers/llms.txt