Class: SpeechInput

SpeechInput()

Experimental speech input, uses annyang library. Seems to work well on chrome and edge on PC. Kind of works on android chrome, with limitations, but WebRTC disables it for good, thus, disabled if MediaStreams are enabled.

Constructor

new SpeechInput()

Source:

Classes

SpeechInput

Members

convertNumbers

android hack: numbers less than 10 are recognized as words, so, convert to numbers
Source:

Methods

addCommand(command, callback, argopt)

Add a voice command.
Parameters:
Name Type Attributes Description
command string
callback * function to call on command
arg string <optional>
arbitrary argument to the command, passed to callback
Source:

callback()

Called after speech, to process text, according to lowercase, onlyLetters, removePeriod, convertNumbers flags, and then call user provided callback functions.
Source: