Voice Design
curl --request POST \
--url https://api.minimaxi.com/v1/voice_design \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "讲述悬疑故事的播音员,声音低沉富有磁性,语速时快时慢,营造紧张神秘的氛围。",
"preview_text": "夜深了,古屋里只有他一人。窗外传来若有若无的脚步声,他屏住呼吸,慢慢地,慢慢地,走向那扇吱呀作响的门……"
}
'{
"trial_audio": "hex 编码音频",
"voice_id": "ttv-voice-2025060717322425-xxxxxxxx",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}音色设计
音色设计
使用本接口,输入文本内容,进行音色设计。
POST
/
v1
/
voice_design
Voice Design
curl --request POST \
--url https://api.minimaxi.com/v1/voice_design \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "讲述悬疑故事的播音员,声音低沉富有磁性,语速时快时慢,营造紧张神秘的氛围。",
"preview_text": "夜深了,古屋里只有他一人。窗外传来若有若无的脚步声,他屏住呼吸,慢慢地,慢慢地,走向那扇吱呀作响的门……"
}
'{
"trial_audio": "hex 编码音频",
"voice_id": "ttv-voice-2025060717322425-xxxxxxxx",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}授权
请求头
请求体的媒介类型,请设置为 application/json,确保请求数据的格式为 JSON
可用选项:
application/json 请求体
application/json
此页面对您有帮助吗?
⌘I