API Reference
Start Recording

Start Recording

startRecording(options?: RecordingOptions)

Starts audio recording for speech recognition.

await browserAI.startRecording({
  sampleRate: 16000,
  channels: 1
});

Parameters

ParameterTypeRequiredDescription
optionsRecordingOptionsNoRecording configuration

RecordingOptions

OptionTypeDefaultDescription
sampleRatenumber16000Audio sample rate
channelsnumber1Number of channels

Returns

Promise<void>