亮色模式
Create translation
POST
https://api.openai.com/v1/audio/translationsTranscribes audio into the input language.
Request
Header 参数
Content-Type
string
必需
示例值:
multipart/form-data
Accept
string
必需
示例值:
application/json
Authorization
string
可选
示例值:
Bearer
Body 参数multipart/form-data
file
file
必需
The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
model
string
必需
ID of the model to use. Only whisper-1
is currently available.
示例值:
whisper-1
prompt
string
可选
An optional text to guide the model's style or continue a previous audio segment. The prompt should be in English.
response_format
string
可选
The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
示例值:
json
temperature
number
可选
The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
示例值:
0
Request samples
返回响应
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
text
string
必需
示例OK
{
"text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}
最后修改时间: 10 天前