Interface: BrowserSpeechOptions
@kortexya/reasoninglayer / BrowserSpeechOptions
Interface: BrowserSpeechOptions
Section titled “Interface: BrowserSpeechOptions”Defined in: src/browser-speech-session.ts:16
Properties
Section titled “Properties”deviceId?
Section titled “deviceId?”
optionaldeviceId?:string
Defined in: src/browser-speech-session.ts:30
onError
Section titled “onError”onError: (
error) =>void
Defined in: src/browser-speech-session.ts:19
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
onEvent
Section titled “onEvent”onEvent: (
event) =>void
Defined in: src/browser-speech-session.ts:17
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onReconnected?
Section titled “onReconnected?”
optionalonReconnected?: (info) =>void
Defined in: src/browser-speech-session.ts:24
The connection came back after a drop. info.lastOutcome says how the turn that
was running (if any) ended; its answer is in the conversation history, it is not
replayed as audio.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onState
Section titled “onState”onState: (
state) =>void
Defined in: src/browser-speech-session.ts:18
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onUnderrun?
Section titled “onUnderrun?”
optionalonUnderrun?: () =>void
Defined in: src/browser-speech-session.ts:20
Returns
Section titled “Returns”void
reconnect?
Section titled “reconnect?”
optionalreconnect?:false| {budgetMs?:number; }
Defined in: src/browser-speech-session.ts:27
Reconnect after an unexpected drop for up to budgetMs (default 45 s), or
false to end the session on the first drop.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: src/browser-speech-session.ts:28
workletUrl?
Section titled “workletUrl?”
optionalworkletUrl?:string
Defined in: src/browser-speech-session.ts:29