API Reference
Transcribe Audio

Transcribe Audio

transcribeAudio(audio: Blob | Float32Array, options?: TranscriptionOptions)

Transcribes audio to text.

const transcription = await browserAI.transcribeAudio(audioBlob, {
  return_timestamps: true,
  language: 'en'
});

Parameters

ParameterTypeRequiredDescription
audioBlob|Float32ArrayYesAudio data
optionsTranscriptionOptionsNoTranscription settings

TranscriptionOptions

OptionTypeDefaultDescription
return_timestampsbooleanfalseInclude word timing
languagestring'en'Target language
chunk_length_snumber30Chunk size in seconds

Returns

Promise<TranscriptionResult>