curl --location '/tk/v2/api/v1/services/audio/tts/customization' \
--header 'Authorization: Bearer {{api_key}}' \
--header 'Content-Type: application/json' \
--data '{
"model": "voice-enrollment",
"input": {
"action": "create_voice",
"target_model": "cosyvoice-v3.5-flash",
"voice_prompt": "温柔女声,语速适中,适合客服场景",
"preview_text": "你好,这是试听。",
"prefix": "demo"
},
"parameters": {
"sample_rate": 24000,
"response_format": "wav"
}
}'{
"output": {
"voice_id": "demo_voice",
"status": "SUCCESS",
"preview_audio_url": "https://example.com/preview.wav"
},
"usage": {
"characters": 0
},
"request_id": "94d9bda2-5c77-0f84-8d92-1c6c5f4e3b7a"
}