Input Audio → Speech Recognition (STT) → Text Translation → Voice Cloning → Text-to-Speech (TTS) → Output Audioinitialization)#speech_to_text)#translation)#voice_clone)#text_to_speech)#| 供应商 | 支持语言 | 自动选择条件 |
|---|---|---|
| Fish | All languages | Default use in non-Chinese and non-English scenarios |
| index_tts2 | Chinese, English | Priority is given to Chinese-English mutual translation |
| soulx | Chinese, English | Used when specified manually by the user |
| f5 | Chinese, English | Used when specified manually by the user |
| voxcpm | Chinese, English | Used when specified manually by the user |
{
"audio_file_url": "https://file.302ai.cn/gpt/imgs/20251113/8c68d17098dde0e2dd8bb3e8407a898b.mp3",
"clone_audio_file_url": "",
"target_language": "zh",
"source_language": "",
"voice_clone_provider": "fish"
}curl --location --request POST 'https://api.302.ai/302/audio/translate/task' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"audio_file_url": "https://file.302ai.cn/gpt/imgs/20251113/8c68d17098dde0e2dd8bb3e8407a898b.mp3",
"clone_audio_file_url": "",
"target_language": "zh",
"source_language": "",
"voice_clone_provider": "fish"
}'{
"task_id": "25691459-2665-41e1-86fe-2d37d48a95c1",
"status": "pending",
"message": "任务已创建并 开始处理"
}