F5-TTS (Asynchronous Text-to-Speech)
Run in Apifox
Price:50 PTC/1M characters Request
Example: Bearer {{YOUR_API_KEY}}
Body Params application/json
Text for Speech Generation
Clone voice file URL, at least 15 seconds
Clone the content of the voice file
{
"gen_text" : "三零二AI是一个汇集全球顶级品牌的AI超市,汇集全球各类顶尖AI模型,提供多种AI机器人,各种AI工具的使用和AI API接入。" ,
"ref_audio_url" : "https://raw.githubusercontent.com/SWivid/F5-TTS/refs/heads/main/src/f5_tts/infer/examples/basic/basic_ref_zh.wav" ,
"model_type" : "F5-TTS"
}
Request samples curl --location --request POST 'https://api.302.ai/302/submit/f5-tts-sync' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"gen_text": "三零二AI是一个汇集全球顶级品牌的AI超市,汇集全球各类顶尖AI模型,提供多种AI机器人,各种AI工具的使用和AI API接入。",
"ref_audio_url": "https://raw.githubusercontent.com/SWivid/F5-TTS/refs/heads/main/src/f5_tts/infer/examples/basic/basic_ref_zh.wav",
"model_type": "F5-TTS"
}'
Responses application/json Generate Code
{
"completed_at" : "" ,
"created_at" : "" ,
"error" : "" ,
"id" : "" ,
"model" : "" ,
"output" : "" ,
"started_at" : "" ,
"status" : ""
}
Modified at 2024-12-13 02:58:28