transcribe( )
This function provides a simple interface for transcribing audio by collecting all streaming results into a single string response.
function transcribe(params: TranscribeClientParams, options?: { forceNewConnection?: boolean; profiling?: { enabled?: boolean; includeServerBreakdown?: boolean; mode?: "summary" | "verbose" }; timeout?: number }): Promise
| Name | Type | Required? | Description |
|---|
params | TranscribeClientParams | ✓ | The arguments for the transcription |
options | `{ forceNewConnection?: boolean; profiling?: { enabled?: boolean; includeServerBreakdown?: boolean; mode?: "summary" | "verbose" }; timeout?: number }` | ✗ |
| Error | When |
|---|
When transcription fails (propagated from transcribeStream) | |