Constructor
new SpeechRecognitionController(translatorControllernon-null, timernon-null, onText, onClear)
Parameters:
| Name | Type | Description |
|---|---|---|
translatorController |
shaka.text.SpeechTranslatorController | |
timer |
shaka.util.Timer | |
onText |
function | |
onClear |
function |
- Implements:
- Source:
Members
recognition_ :ChromeSpeechRecognition
Type:
- ChromeSpeechRecognition
- Source:
Methods
release()
Request that this object release all internal references.
- Implements:
- Source:
start(mediaStreamTracknon-null, sourceLanguage, processLocally) → {Promise}
Parameters:
| Name | Type | Description |
|---|---|---|
mediaStreamTrack |
MediaStreamTrack | |
sourceLanguage |
string | |
processLocally |
boolean |
- Source:
Returns:
- Type
- Promise
stop(clearopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
clear |
boolean |
<optional> |
true |
- Source: