Transcribe audio
Transcribes the provided audio using the specified speech-to-text model.
The API accepts audio in either JSON or multipart/form-data format.
For JSON requests, provide the audio as a Base64-encoded string
through the input_audio.data field and specify the audio format
through input_audio.format.
For multipart/form-data requests, upload the audio file using the
file field.
The request is billed according to the selected speech-to-text model and the usage associated with the transcription request.
Authorizations
Enter the API key with the Bearer: prefix, e.g. "Bearer "
Path Parameters
The workspace ID used for billing and routing.
^[a-f0-9]{24}$Body
The speech-to-text model to use.
The model must be one of the speech-to-text models supported by the API.
"openai/whisper-1"
Audio data provided as a Base64-encoded string.
This object is used for JSON requests. Multipart requests should
provide the audio through the file field instead.
The language of the input audio.
Must be a two-letter ISO-639-1 language code.
If omitted, the model may automatically detect the language.
2"en"
The format of the transcription response.
json returns the standard transcription response.
verbose_json returns additional transcription information,
such as language, duration, and timestamp information when
supported by the selected model.
json, verbose_json "json"
Sampling temperature used during transcription.
Values must be between 0 and 1.
0 <= x <= 10
Specifies the timestamp granularities to include in the transcription response.
Supported values are word and segment.
word, segment Response
Successfully transcribed the audio.
Transcription result returned by the speech-to-text model.
The exact fields may vary depending on the selected
response_format and the capabilities of the selected model.
The transcribed text.
"Hello, this is a transcription test."
The transcription task.
"transcribe"
Detected or requested language.
"english"
Duration of the input audio in seconds.
3.52
Transcription segments with timing information.
Available when supported by the selected model and when
requested through timestamp_granularities.
