跳转到内容

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.com/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此请求: $0.005 5 API 积分 在此页面运行

获取 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.com/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.com/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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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/developers/models/minimax/speech-02-hd.md. 所有模型和指南: https://doitong.com/developers/llms.txt