Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
wav / pcm / ogg_opus / mp3、デフォルトは pcm
[0.8,2]、デ フォルトは1、通常1桁の小数点で十分です
空でない任意の文字列を渡すことができ、渡された値はサーバー側のトレースに使用できます
合成する音声のテキスト、長さは1024文字に制限されています
{"audio": {
"voice_type": "zh_male_M392_conversation_wvae_bigtts",
"encoding": "mp3",
"speed_ratio": 1.0
},
"request": {
"reqid": "xxxx",
"text": "你好啊",
"operation": "query"
}
}
Request samples
curl --location --request POST 'https://api.302.ai/doubao/tts_hd' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{"audio": {
"voice_type": "zh_male_M392_conversation_wvae_bigtts",
"encoding": "mp3",
"speed_ratio": 1.0
},
"request": {
"reqid": "xxxx",
"text": "你好啊",
"operation": "query"
}
}'
Responses
application/json Modified at 2025-02-14 06:01:14