来自SoulX的TTS模型,支持快速克隆语音和生成多人语音对话
Request
Body Params application/jsonRequired
{
"text": "你好,你是谁",
"prompt_audio_url": "https://file.302ai.cn/gpt/imgs/20251031/a7383815f24106093691df51c36ea916.wav",
"prompt_text": "欢迎使用302.ai部署的index-tts2语音生成服务"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/soulx_tts/task' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "你好,你是谁",
"prompt_audio_url": "https://file.302ai.cn/gpt/imgs/20251031/a7383815f24106093691df51c36ea916.wav",
"prompt_text": "欢迎使用302.ai部署的index-tts2语音生成服务"
}'
Responses
application/json {
"task_id": "c2c9257d-7058-46ac-a340-29bace2b779e"
}
Modified at 2026-01-19 06:27:57