QVAC Logo

transcribe( )

Transcribes audio to text in a single response.

function transcribe(params): Promise<string>;

Description

This function provides a simple interface for transcribing audio by collecting all streaming results into a single string response.

Parameters

NameTypeRequired?Description
paramsobjectThe arguments for the transcription

params

FieldTypeRequired?Description
modelIdstringModel identifier
audioChunkstring or BufferAudio data (file path or buffer)
promptstringOptional prompt to guide transcription

Returns

Promise<string> — The complete transcribed text

Throws

When transcription fails (propagated from transcribeStream)

On this page