Interface: SpeechRecognition
Defined in: src/sound/SpeechRecognitionTypes.ts:58
Browser speech recognizer returned by SpeechRecognizer.recognition.
Extends
EventTarget.SpeechRecognitionEventHandlers
Properties
continuous
continuous:
boolean
Defined in: src/sound/SpeechRecognitionTypes.ts:61
grammars
grammars:
SpeechGrammarList
Defined in: src/sound/SpeechRecognitionTypes.ts:62
interimResults
interimResults:
boolean
Defined in: src/sound/SpeechRecognitionTypes.ts:63
lang
lang:
string
Defined in: src/sound/SpeechRecognitionTypes.ts:64
maxAlternatives
maxAlternatives:
number
Defined in: src/sound/SpeechRecognitionTypes.ts:65
onaudioend
onaudioend: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onaudioend
onaudiostart
onaudiostart: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onaudiostart
onend
onend: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onend
onerror
onerror: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onerror
onnomatch
onnomatch: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onnomatch
onresult
onresult: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onresult
onsoundend
onsoundend: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onsoundend
onsoundstart
onsoundstart: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onsoundstart
onspeechend
onspeechend: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onspeechend
onspeechstart
onspeechstart: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onspeechstart
onstart
onstart: (
this,event) =>void|null
Inherited from
SpeechRecognitionEventHandlers.onstart
Methods
abort()
abort():
void
Defined in: src/sound/SpeechRecognitionTypes.ts:66
Returns
void
addEventListener()
Call Signature
addEventListener<
K>(type,listener,options?):void
Defined in: src/sound/SpeechRecognitionTypes.ts:69
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Type Parameters
K
K extends keyof SpeechRecognitionEventMap
Parameters
type
K
listener
(this, event) => void
options?
boolean | AddEventListenerOptions
Returns
void
Overrides
EventTarget.addEventListener
Call Signature
addEventListener(
type,listener,options?):void
Defined in: src/sound/SpeechRecognitionTypes.ts:77
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Parameters
type
string
listener
EventListenerOrEventListenerObject
options?
boolean | AddEventListenerOptions
Returns
void
Overrides
EventTarget.addEventListener
removeEventListener()
Call Signature
removeEventListener<
K>(type,listener,options?):void
Defined in: src/sound/SpeechRecognitionTypes.ts:82
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Type Parameters
K
K extends keyof SpeechRecognitionEventMap
Parameters
type
K
listener
(this, event) => void
options?
boolean | EventListenerOptions
Returns
void
Overrides
EventTarget.removeEventListener
Call Signature
removeEventListener(
type,listener,options?):void
Defined in: src/sound/SpeechRecognitionTypes.ts:90
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Parameters
type
string
listener
EventListenerOrEventListenerObject
options?
boolean | EventListenerOptions
Returns
void
Overrides
EventTarget.removeEventListener
start()
start(
audioTrack?):void
Defined in: src/sound/SpeechRecognitionTypes.ts:67
Parameters
audioTrack?
Returns
void
stop()
stop():
void
Defined in: src/sound/SpeechRecognitionTypes.ts:68
Returns
void