Authorization: Bearer ********************
{
"model": "ChatTTS",
"extra_body": {
"prompt": "[oral_1]",
"temperature": 0.2,
"top_K": 20
},
"input": "您好,我是v3 TTS小助理,感谢体验我们的API服务!"
}
curl --location --request POST 'https://api.apicore.ai/v1/audio/speech' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "ChatTTS",
"extra_body": {
"prompt": "[oral_1]",
"temperature": 0.2,
"top_K": 20
},
"input": "您好,我是v3 TTS小助理,感谢体验我们的API服务!"
}'
// 直接返回音频文件 xxx.mp3