Transcription
Transcription is an experimental feature.
transcribe
function to transcribe audio using a transcription model.
audio property can be a Uint8Array, ArrayBuffer, Buffer, string (base64 encoded audio data), or a URL.
To access the generated transcript:
Settings
Provider-Specific Settings
Transcription models often have provider or model-specific settings which you can set using theproviderOptions parameter.
Download Size Limits
Whenaudio is a URL, the SDK downloads the file with a default 2 GiB size limit.
You can customize this using createDownload:
DownloadError is thrown:
Retries
Thetranscribe function accepts an optional maxRetries parameter
that you can use to set the maximum number of retries.
It defaults to 2 retries (3 attempts in total). You can set it to 0 to disable retries.
Abort Signals and Timeouts
Thetranscribe function accepts an optional abortSignal parameter of
type AbortSignal
that you can use to abort the transcription process or set a timeout.
Custom Headers
Thetranscribe function accepts an optional headers parameter
that you can use to add custom headers to the request.
Response Information
Thetranscribe function returns comprehensive response information: