The iSpeechRecognizer type exposes the following members.

Constructors

  NameDescription
Public methodiSpeechRecognizer
Initializes a new instance of the iSpeechRecognizer class

Methods

  NameDescription
Public methodaddAlias
Adds an alias to use inside of a command. You can reference the added alias using %ALIASNAME% from within a command. Alias names are automatically capitalized. Note: You can only a maximum of two aliases Example: SpeechRecognizer rec = SpeechRecognizer.getInstance("APIKEY"); String[] names = new String[] { "jane", "bob", "john" }; rec.addAlias("NAMES", names); rec.addCommand("call %NAMES%"); The user can now speak "call john" and it will be recognized correctly.
Public methodaddCommand(String)
Adds a new command phrase. Note: You can only use two aliases per command. Example: SpeechRecognizer rec = SpeechRecognizer.getInstance("APIKEY"); rec.addCommand("yes"); rec.addCommand("no"); The user can now speak "Yes" or "No" and it will be recognized correctly.
Public methodaddCommand(array<String>[]()[][])
Adds a new command phrase. Note: You can only use two aliases per command. Example: SpeechRecognizer rec = SpeechRecognizer.getInstance("APIKEY"); String commands = new String(){"yes","no"}; rec.addCommand(commands); The user can now speak "Yes" or "No" and it will be recognized correctly.
Public methodcancelRecord
Cancels a recording in progress and dismisses the current prompt if one is visible.
Public methodclear
Clears all commands and aliases from this {@link SpeechRecognizer} object.
Public methodclearMetaAndOptionalCommands
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodsetFreeForm
Set to free form recognition. Will not use any command or alias list. Your API key must be provisioned to use this feature. One of the SpeechRecognizer.FREEFORM_ values. Most developer accounts can use FREEFORM_DICTATION as a parameter.
Public methodsetLanguage
Set the speech recognition language.
Public methodsetOptionalCommand
Specify additional parameters to send to the server.
Public methodstartStreamingRecognize
Starts the ASR connection
Public methodstopStreaming
Stops the recording process and returns a {@link SpeechResult}.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberFREEFORM_DICTATION
Free form dictation, such as a written document
Public fieldStatic memberFREEFORM_DISABLED
Disable free form speech recognition.
Public fieldStatic memberFREEFORM_INSTANT_MESSAGE
A message for an instant message client
Public fieldStatic memberFREEFORM_MEMO
A memo or a list of items
Public fieldStatic memberFREEFORM_MESSAGE
A message addressed to another person.
Public fieldStatic memberFREEFORM_SMS
A SMS or TXT message.
Public fieldStatic memberFREEFORM_TRANSCRIPT
General transcription
Public fieldStatic memberFREEFORM_VOICEMAIL
A voice mail transcription

See Also