Class: BrowserSpeechSession
@kortexya/reasoninglayer / BrowserSpeechSession
Class: BrowserSpeechSession
Section titled “Class: BrowserSpeechSession”Defined in: src/browser-speech-session.ts:38
Owns one authenticated media session and its microphone. After an unexpected
drop it reconnects the transport to the SAME session: an authenticated refresh,
then a new socket. It never resends audio, user input or a task: speech captured
while disconnected is dropped, and the outcome of a turn that was running is
reported (onReconnected), not replayed. Call close on navigation/scope changes.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BrowserSpeechSession(
speech,request,options):BrowserSpeechSession
Defined in: src/browser-speech-session.ts:55
Parameters
Section titled “Parameters”speech
Section titled “speech”SpeechClient
request
Section titled “request”options
Section titled “options”Returns
Section titled “Returns”BrowserSpeechSession
Properties
Section titled “Properties”
readonlyready:Promise<void>
Defined in: src/browser-speech-session.ts:39
Accessors
Section titled “Accessors”conversationId
Section titled “conversationId”Get Signature
Section titled “Get Signature”get conversationId():
string|null|undefined
Defined in: src/browser-speech-session.ts:128
Returns
Section titled “Returns”string | null | undefined
deviceSettings
Section titled “deviceSettings”Get Signature
Section titled “Get Signature”get deviceSettings():
MediaTrackSettings|undefined
Defined in: src/browser-speech-session.ts:131
Returns
Section titled “Returns”MediaTrackSettings | undefined
sessionId
Section titled “sessionId”Get Signature
Section titled “Get Signature”get sessionId():
string|undefined
Defined in: src/browser-speech-session.ts:125
Returns
Section titled “Returns”string | undefined
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: src/browser-speech-session.ts:310
Returns
Section titled “Returns”void
commitInput()
Section titled “commitInput()”commitInput():
Promise<void>
Defined in: src/browser-speech-session.ts:286
Returns
Section titled “Returns”Promise<void>
mute()
Section titled “mute()”mute(
value):Promise<void>
Defined in: src/browser-speech-session.ts:292
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”Promise<void>
stopPlayback()
Section titled “stopPlayback()”stopPlayback():
void
Defined in: src/browser-speech-session.ts:299
Returns
Section titled “Returns”void