TranscriptionOptions interface
Metadata for a transcription request. Also serves as the optional parameters bag for transcribe, so it supports standard operation options such as abortSignal, requestOptions, and tracingOptions.
- Extends
Properties
| active |
The 0-based indices of the channels to be transcribed separately. If not specified, multiple channels are merged and transcribed jointly. Only up to two channels are supported. |
| audio |
The URL of the audio to be transcribed. The audio must be shorter than 2 hours in audio duration and smaller than 250 MB in size. If both Audio and AudioUrl are provided, Audio is used. |
| diarization |
Mode of diarization. |
| enhanced |
Enhanced mode properties. |
| locales | A list of possible locales for the transcription. If not specified, the locale of the speech in the audio is detected automatically from all supported locales. |
| models | Maps some or all candidate locales to a model URI to be used for transcription. If no mapping is given, the default model for the locale is used. |
| phrase |
Phrase list properties. |
| profanity |
Mode of profanity filtering. |
Inherited Properties
| abort |
The signal which can be used to abort requests. |
| on |
A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times. |
| request |
Options used when creating and sending HTTP requests for this operation. |
| tracing |
Options used when tracing is enabled. |
Property Details
activeChannels
The 0-based indices of the channels to be transcribed separately. If not specified, multiple channels are merged and transcribed jointly. Only up to two channels are supported.
activeChannels?: number[]
Property Value
number[]
audioUrl
The URL of the audio to be transcribed. The audio must be shorter than 2 hours in audio duration and smaller than 250 MB in size. If both Audio and AudioUrl are provided, Audio is used.
audioUrl?: string
Property Value
string
diarizationOptions
Mode of diarization.
diarizationOptions?: TranscriptionDiarizationOptions
Property Value
enhancedMode
locales
A list of possible locales for the transcription. If not specified, the locale of the speech in the audio is detected automatically from all supported locales.
locales?: string[]
Property Value
string[]
models
Maps some or all candidate locales to a model URI to be used for transcription. If no mapping is given, the default model for the locale is used.
models?: Record<string, string>
Property Value
Record<string, string>
phraseList
profanityFilterMode
Mode of profanity filtering.
profanityFilterMode?: string
Property Value
string
Inherited Property Details
abortSignal
The signal which can be used to abort requests.
abortSignal?: AbortSignalLike
Property Value
Inherited From OperationOptions.abortSignal
onResponse
A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times.
onResponse?: RawResponseCallback
Property Value
Inherited From OperationOptions.onResponse
requestOptions
Options used when creating and sending HTTP requests for this operation.
requestOptions?: OperationRequestOptions
Property Value
Inherited From OperationOptions.requestOptions
tracingOptions
Options used when tracing is enabled.
tracingOptions?: OperationTracingOptions
Property Value
Inherited From OperationOptions.tracingOptions