@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public class SpeechRecognition
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
boolean |
continuous
The continuous property of the SpeechRecognition interface controls whether continuous results are returned for each recognition, or only a single result.
|
@JsNonNull SpeechGrammarList |
grammars
The grammars property of the SpeechRecognition interface returns and sets a collection of SpeechGrammar objects that represent the grammars that will be understood by the current SpeechRecognition.
|
boolean |
interimResults
The interimResults property of the SpeechRecognition interface controls whether interim results should be returned (true) or not (false.) Interim results are results that are not yet final (e.g.
|
@JsNonNull java.lang.String |
lang
The lang property of the SpeechRecognition interface returns and sets the language of the current SpeechRecognition.
|
int |
maxAlternatives
The maxAlternatives property of the SpeechRecognition interface sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult.
|
@JsNullable EventHandler |
onaudioend
The onaudioend property of the SpeechRecognition interface represents an event handler that will run when the user agent has finished capturing audio (when the audioend event fires.)
|
@JsNullable EventHandler |
onaudiostart
The onaudiostart property of the SpeechRecognition interface represents an event handler that will run when the user agent has started to capture audio (when the audiostart event fires.)
|
@JsNullable EventHandler |
onend
The onend property of the SpeechRecognition interface represents an event handler that will run when the speech recognition service has disconnected (when the end event fires.)
|
@JsNullable SpeechRecognitionErrorEventHandler |
onerror
The onerror property of the SpeechRecognition interface represents an event handler that will run when a speech recognition error occurs (when the error event fires.)
|
@JsNullable SpeechRecognitionEventHandler |
onnomatch
The onnomatch property of the SpeechRecognition interface represents an event handler that will run when the speech recognition service returns a final result with no significant recognition (when the nomatch event fires.)
|
@JsNullable SpeechRecognitionEventHandler |
onresult
The onresult property of the SpeechRecognition interface represents an event handler that will run when the speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app (when the result event fires.)
|
@JsNullable EventHandler |
onsoundend
The onsoundend property of the SpeechRecognition interface represents an event handler that will run when any sound — recognisable speech or not — has stopped being detected (when the soundend event fires.)
|
@JsNullable EventHandler |
onsoundstart
The onsoundstart property of the SpeechRecognition interface represents an event handler that will run when any sound — recognisable speech or not — has been detected (when the soundstart event fires.)
|
@JsNullable EventHandler |
onspeechend
The onspeechend property of the SpeechRecognition interface represents an event handler that will run when speech recognised by the speech recognition service has stopped being detected (when the speechend event fires.)
|
@JsNullable EventHandler |
onspeechstart
The onspeechstart property of the SpeechRecognition interface represents an event handler that will run when sound recognised by the speech recognition service as speech has been detected (when the speechstart event fires.)
|
@JsNullable EventHandler |
onstart
The onstart property of the SpeechRecognition interface represents an event handler that will run when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition (when the start event fires.)
|
| Constructor and Description |
|---|
SpeechRecognition()
The SpeechRecognition() constructor creates a new SpeechRecognition object instance.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic boolean continuous
public @JsNonNull SpeechGrammarList grammars
public boolean interimResults
public @JsNonNull java.lang.String lang
public int maxAlternatives
public @JsNullable EventHandler onaudioend
public @JsNullable EventHandler onaudiostart
public @JsNullable EventHandler onend
public @JsNullable SpeechRecognitionErrorEventHandler onerror
public @JsNullable SpeechRecognitionEventHandler onnomatch
public @JsNullable SpeechRecognitionEventHandler onresult
public @JsNullable EventHandler onsoundend
public @JsNullable EventHandler onsoundstart
public @JsNullable EventHandler onspeechend
public @JsNullable EventHandler onspeechstart
public @JsNullable EventHandler onstart
public SpeechRecognition()
public void abort()
public void start()
public void stop()
@JsOverlay
public final void addErrorListener(@Nonnull
SpeechRecognitionErrorEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addErrorListener(@Nonnull
SpeechRecognitionErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void addErrorListener(@Nonnull
SpeechRecognitionErrorEventListener callback)
@JsOverlay
public final void removeErrorListener(@Nonnull
SpeechRecognitionErrorEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeErrorListener(@Nonnull
SpeechRecognitionErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeErrorListener(@Nonnull
SpeechRecognitionErrorEventListener callback)
@JsOverlay
public final void addNomatchListener(@Nonnull
SpeechRecognitionEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addNomatchListener(@Nonnull
SpeechRecognitionEventListener callback,
boolean useCapture)
@JsOverlay
public final void addNomatchListener(@Nonnull
SpeechRecognitionEventListener callback)
@JsOverlay
public final void removeNomatchListener(@Nonnull
SpeechRecognitionEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeNomatchListener(@Nonnull
SpeechRecognitionEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeNomatchListener(@Nonnull
SpeechRecognitionEventListener callback)
@JsOverlay
public final void addResultListener(@Nonnull
SpeechRecognitionEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addResultListener(@Nonnull
SpeechRecognitionEventListener callback,
boolean useCapture)
@JsOverlay
public final void addResultListener(@Nonnull
SpeechRecognitionEventListener callback)
@JsOverlay
public final void removeResultListener(@Nonnull
SpeechRecognitionEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeResultListener(@Nonnull
SpeechRecognitionEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeResultListener(@Nonnull
SpeechRecognitionEventListener callback)
@JsOverlay
public final void addAudioendListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addAudioendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addAudioendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeAudioendListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeAudioendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeAudioendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addAudiostartListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addAudiostartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addAudiostartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeAudiostartListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeAudiostartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeAudiostartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addEndListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addEndListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addEndListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeEndListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeEndListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeEndListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addSoundendListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addSoundendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addSoundendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeSoundendListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeSoundendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeSoundendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addSoundstartListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addSoundstartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addSoundstartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeSoundstartListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeSoundstartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeSoundstartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addSpeechendListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addSpeechendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addSpeechendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeSpeechendListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeSpeechendListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeSpeechendListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addSpeechstartListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addSpeechstartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addSpeechstartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeSpeechstartListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeSpeechstartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeSpeechstartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addStartListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addStartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addStartListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeStartListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeStartListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeStartListener(@Nonnull
EventListener callback)