transcribeStream( )
This function streams audio transcription results in real-time, yielding text chunks as they become available from the model.
function transcribeStream(params: TranscribeClientParams, options?: { forceNewConnection?: boolean; profiling?: { enabled?: boolean; includeServerBreakdown?: boolean; mode?: "summary" | "verbose" }; timeout?: number }): AsyncGeneratorParameters
| Name | Type | Required? | Description |
|---|---|---|---|
params | TranscribeClientParams | ✓ | The arguments for the transcription |
options | `{ forceNewConnection?: boolean; profiling?: { enabled?: boolean; includeServerBreakdown?: boolean; mode?: "summary" | "verbose" }; timeout?: number }` | ✗ |
Returns
AsyncGeneratorThrows
| Error | When |
|---|---|
When transcription fails with an error message |
transcribe( )
This function provides a simple interface for transcribing audio by collecting all streaming results into a single string response.
translate( )
Translates text from one language to another using a specified translation model. Supports both NMT (Neural Machine Translation) and LLM models.