new Transcriber(options)
This manager handles the transcription of speech into text.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
- To Do:
-
- deal with alternatives, interim results, and recognition errors
Methods
(protected) _onChange()
Callback for changes to the recognition settings.
Changes to the recognition settings require the recognition to stop and be re-started.
- Source:
(protected) _prepareTranscription()
Prepare the transcription.
- Source:
clearTranscripts()
Clear all transcripts and resets the circular buffers.
- Source:
getTranscripts(options) → {Array.<Transcript>}
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
|
- Source:
Returns:
the list of transcripts still in the buffer
- Type
- Array.<Transcript>
start() → {Promise}
Start the transcription.
- Source:
Returns:
promise fulfilled when the transcription actually started
- Type
- Promise
stop() → {Promise}
Stop the transcription.
- Source:
Returns:
promise fulfilled when the speech recognition actually stopped
- Type
- Promise