undefined
Class: abstract
VoiceController
Defined in: voiceController.ts:12
An interface for invoking voice-controlled actions on a page using speech transcribed by a Transcriber.
Extended by
Implements
Constructors
new VoiceController()
new VoiceController(commandHandlers, callbacks): VoiceController
Defined in: voiceController.ts:24
Parameters
Parameter | Type |
---|---|
commandHandlers |
CommandHandlers |
callbacks |
Partial <TranscriberCallbacks > |
Returns
Properties
Property | Type | Defined in |
---|---|---|
commandHandlers |
CommandHandlers |
voiceController.ts:13 |
onModelLoaded |
() => any |
voiceController.ts:16 |
onModelLoadStarted |
() => any |
voiceController.ts:15 |
onSpeechEnd |
() => any |
voiceController.ts:22 |
onSpeechStart |
() => any |
voiceController.ts:21 |
onTranscribeStarted |
() => any |
voiceController.ts:17 |
onTranscribeStopped |
() => any |
voiceController.ts:18 |
onTranscriptionCommitted |
(text : string ) => any |
voiceController.ts:19 |
onTranscriptionUpdated |
(text : string ) => any |
voiceController.ts:20 |
Methods
normalizeText()
static normalizeText(text): string
Defined in: voiceController.ts:56
Parameters
Parameter | Type |
---|---|
text |
string |
Returns
string