输入示例
curl -X POST "https://openspeech.bytedance.com/api/v3/tts/voice_clone" \
-H "Content-Type: application/json" \
-H "X-Api-Key: your_api_key" \
-H "X-Api-Request-Id: $(uuidgen)" \
-d '{
"speaker_id": "",
"audio": {
"data": "'$(base64 -i "your_file_path" | tr -d '\n')'",
"format": "wav"
},
"language": 1,
"extra_params": {
"demo_text": "hello, this is a test",
}
}'输出示例
{
"available_training_times": 15,
"create_time": 1772026663000,
"language": 1,
"speaker_id": "S_*******",
"speaker_status": [
{
"demo_audio": "https://x.bytespeech.com/S_*******",
"model_type": 5
}
],
"status": 2
}