{
"text": "欢迎使用302.ai部署的index-tts2语音生成服务",
"speaker_audio_url": "https://file.302.ai/gpt/audio/651ce834-4edc-4f8f-aa0b-72899db336cd.mp3",
"emotion_audio_url": "https://file.302.ai/gpt/imgs/20250912/55e7a53b814a6b574371e796ddc3ba65.wav",
"emotion_alpha": 0.6
}
curl --location --request POST 'https://api.302.ai/302/index_tts2/task' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "欢迎使用302.ai部署的index-tts2语音生成服务",
"speaker_audio_url": "https://file.302.ai/gpt/audio/651ce834-4edc-4f8f-aa0b-72899db336cd.mp3",
"emotion_audio_url": "https://file.302.ai/gpt/imgs/20250912/55e7a53b814a6b574371e796ddc3ba65.wav",
"emotion_alpha": 0.6
}'
{
"task_id": "string"
}