Class: BrowserSpeechOutput
@kortexya/reasoninglayer / BrowserSpeechOutput
Class: BrowserSpeechOutput
Section titled “Class: BrowserSpeechOutput”Defined in: src/browser-speech-output.ts:58
Authenticated streaming rendering for an existing application workflow. Does not create a conversation, interpret tasks, or open a microphone.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BrowserSpeechOutput(
speech,options?):BrowserSpeechOutput
Defined in: src/browser-speech-output.ts:68
Parameters
Section titled “Parameters”speech
Section titled “speech”SpeechClient
options?
Section titled “options?”BrowserSpeechOutputOptions = {}
Returns
Section titled “Returns”BrowserSpeechOutput
Methods
Section titled “Methods”activate()
Section titled “activate()”activate():
Promise<void>
Defined in: src/browser-speech-output.ts:74
Call synchronously from the voice-enable gesture, before asynchronous work.
Returns
Section titled “Returns”Promise<void>
close()
Section titled “close()”close():
void
Defined in: src/browser-speech-output.ts:122
Returns
Section titled “Returns”void
speak()
Section titled “speak()”speak(
text,request?):Promise<void>
Defined in: src/browser-speech-output.ts:149
Parameters
Section titled “Parameters”string
request?
Section titled “request?”Omit<SynthesizeSpeechRequest, "text" | "stream" | "format"> = {}
Returns
Section titled “Returns”Promise<void>
stop()
Section titled “stop()”stop():
void
Defined in: src/browser-speech-output.ts:115
Returns
Section titled “Returns”void