Class: BrowserSpeechAudio
@kortexya/reasoninglayer / BrowserSpeechAudio
Class: BrowserSpeechAudio
Section titled “Class: BrowserSpeechAudio”Defined in: src/speech-audio.ts:31
Shared capture/playback implementation for Workspace and Work. Create from a user gesture so AudioContext activation precedes the microphone prompt.
Properties
Section titled “Properties”context
Section titled “context”
readonlycontext:AudioContext
Defined in: src/speech-audio.ts:32
Accessors
Section titled “Accessors”settings
Section titled “settings”Get Signature
Section titled “Get Signature”get settings():
MediaTrackSettings|undefined
Defined in: src/speech-audio.ts:150
Actual device capabilities, useful in restricted qualification receipts.
Returns
Section titled “Returns”MediaTrackSettings | undefined
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: src/speech-audio.ts:238
Returns
Section titled “Returns”void
endSegment()
Section titled “endSegment()”endSegment():
void
Defined in: src/speech-audio.ts:202
Returns
Section titled “Returns”void
enqueue()
Section titled “enqueue()”enqueue(
frame,sampleRate):void
Defined in: src/speech-audio.ts:193
Parameters
Section titled “Parameters”sampleRate
Section titled “sampleRate”number
Returns
Section titled “Returns”void
flush()
Section titled “flush()”flush():
void
Defined in: src/speech-audio.ts:205
Returns
Section titled “Returns”void
flushCapture()
Section titled “flushCapture()”flushCapture():
Promise<void>
Defined in: src/speech-audio.ts:219
Await before sending input_commit so the last capture packet precedes it.
Returns
Section titled “Returns”Promise<void>
mute()
Section titled “mute()”mute(
value):void
Defined in: src/speech-audio.ts:208
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
resumePlayback()
Section titled “resumePlayback()”resumePlayback():
Promise<void>
Defined in: src/speech-audio.ts:214
Returns
Section titled “Returns”Promise<void>
startCapture()
Section titled “startCapture()”startCapture():
Promise<void>
Defined in: src/speech-audio.ts:93
Open capture only after the caller has received native input permission. Playback can already be running; no microphone is opened by capture:false.
Returns
Section titled “Returns”Promise<void>
create()
Section titled “create()”
staticcreate(options):Promise<BrowserSpeechAudio>
Defined in: src/speech-audio.ts:56
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<BrowserSpeechAudio>