MiniMax同步语音合成API 请求/响应示例 请求示例 非流式请求: plaintext curl location request POST ' header "Authorization: Bearer ${YOURAPPKEY}" header "ContentType: application/json" data '{ "model": "minimaxspeech2.8hd", "text": "今天是不是很开心呀(laughs),当然了! 那我们出发吧。", "stream": false, "voicesetting": { "voiceid": "maleqnqingse", "speed": 1.0, "vol": 1.0, "pitch": 0, "emotion": "happy" }, "audiosetting": { "samplerate": 32000, "bitrate": 128000, "format": "mp3", "channel": 1 }, "pronunciationdict": { "tone": ["处理/(chu3)(li3)", "危险/dangerous"] }, "subtitleenable": true, "subtitletype": "sentence" }' 流式请求: plaintext curl location request POST ' header "Authorization: Bearer ${YOURAPPKEY}" header "ContentType: application/json" header "Accept: text/eventstream" data '{ "model": "minimaxspeech2.8turbo", "text": "这是一段较长的播报内容,用于演示流式分片返回的合成效果。", "stream": true, "voicesetting": { "voiceid": "femaleshaonv", "speed": 1.0, "emotion": "neutral" }, "audiosetting": { "samplerate": 32000, "format": "mp3", "channel": 1 } }' 非流式响应示例 plaintext { "data": { "audio": "5a3c1f9e8b7d...(十六进制音频数据,实际长度较长)", "status": 2, "subtitlefile": " }, "extrainfo": { "audiolength": 9900, "audiosamplerate": 32000, "audiosize": 160323, "bitrate": 128000, "wordcount": 52, "usagecharacters": 26, "invisiblecharacterratio": 0, "audioformat": "mp3", "audiochannel": 1 }, "traceid": "01b8bf9bb7433cc75c18eee6cfa8fe21", "baseresp": { "statuscode": 0, "statusmsg": "success" } }