Constructor
new SpeechRecognition(options)
- Source:
- To Do:
-
- deal with alternatives, interim results, and recognition errors
This manager handles the live transcription of speech into text.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Extends
- PsychObject
Methods
(protected) _onChange()
- Source:
Callback for changes to the recognition settings.
Changes to the recognition settings require the speech recognition process to be stopped and be re-started.
(protected) _prepareRecognition()
- Source:
Prepare the speech recognition process.
clearTranscripts()
- Source:
Clear all transcripts and resets the circular buffers.
getTranscripts(options) → {Array.<Transcript>}
- Source:
Get the list of transcripts still in the buffer, i.e. those that have not been previously cleared by calls to getTranscripts with clear = true.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Returns:
the list of transcripts still in the buffer
- Type
- Array.<Transcript>
start() → {Promise}
- Source:
Start the speech recognition process.
Returns:
promise fulfilled when the process actually starts
- Type
- Promise
stop() → {Promise}
- Source:
Stop the speech recognition process.
Returns:
promise fulfilled when the process actually stops
- Type
- Promise