Run in Apifox
将音频转录为输入语言。 转录API接受您想要转录的音频文件作为输入,以及您希望的音频转录输出文件格式。我们目前支持多种输入和输出文件格式。
Request
示例值: Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
要转录的音频文件,采用以下格式之一:mp3、mp4、mpeg、mpga、m4a、wav 或 webm。
要使用的模型的 ID。whisper-v3 , whisper-v3-turbo
none dynamic soft_dynamic bass_dynamic
回复的格式,采用以下格式之一:srt、verbose_json、vtt
Request samples curl --location --request POST 'https://api.302.ai/v1/audio/alignments' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--form 'file=@""' \
--form 'text=""' \
--form 'model="whisper-v3-turbo"' \
--form 'vad_model="silero"' \
--form 'preprocessing="none"' \
--form 'response_format="verbose_json"' \
--form 'alignment_model="tdnn_ffn"'
Responses application/json Generate Code
{
"text" : "Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that."
}
Modified at 2024-12-11 17:49:25