跳至內容

MiniMax Speech-02 HD

整合

模型 id minimax/speech-02-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-02-hd?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.005 5 API 點數 · ≈ ₽0.54 在此頁面執行

取得 API 金鑰
MiniMax · 音訊

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

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

•必填 50 / 5000

語音輸入文字,限制為 5000 個字元,且至少需要 1 個非空白字元。

進階 output_format · language_boost · enable_safety_checker · voice_setting · audio_setting · pronunciation_dict
output_format 預設 hex

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

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

預設 {"english_normalizati...

用於設定語音的設定。

用於設定音訊的選項。

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

POST /run/minimax/speech-02-hd?wait=20 報價 → $0.005
# 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-02-hd?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 金鑰

關於 MiniMax Speech-02 HD

使用 Speech-02 的 HD 品質版本,將最多 5000 個 `text` 字元產生為語音。可透過 `voice_setting` 調整語音、設定 `audio_setting`、套用 `pronunciation_dict`,並從 38 個選項中選擇 `language_boost`。`output_format` 可為 url 或 hex。結果包含音訊檔案及其毫秒數的長度。

參數

名稱類型 預設值允許值 說明
enable_safety_checker選填
類型boolean
預設值true
在呼叫端獲得授權的情況下,將此值設為 false 可放寬審核。
text必填
類型string
≤ 5,000 個字元
語音輸入文字,限制為 5000 個字元,且至少需要 1 個非空白字元。
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。
必填

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax/speech-02-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": 5,
    "usd": "0.005",
    "charged": 5,
    "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_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-02-hd.md. 所有模型與指南: https://doitong.com/developers/llms.txt