Run in Apifox
将音频转录为输入语言。 转录API接受您想要转录的音频文件作为输入,以及您希望的音频转录输出文件格式。我们目前支持多种输入和输出文件格式。 Request
示例值: Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
要转录的音频文件,采用以下格式之一:mp3、mp4、mpeg、mpga、m4a、wav 或 webm。
要使用的模型的 ID。仅whisper-1
当前可用。
可选文本,用于指导模型的风格或继续之前的音频片段。提示 应与音频语言相匹配。 采样温度,介于 0 和 1 之间。较高的值(如 0.8)将使输出更加随机,而较低的值(如 0.2)将使输出更加集中和确定。如果设置为 0,模型将使用对数概率 自动升高温度,直到达到特定阈值。 Request samples curl --location --request POST 'https://api.302.ai/v1/audio/transcriptions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--form 'file=@""' \
--form 'model="whisper-1"' \
--form 'prompt=""' \
--form 'response_format="json"' \
--form 'temperature="0"' \
--form 'language=""'
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 2025-01-09 09:22:42