The iSpeechRecognizer type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| iSpeechRecognizer | Initializes a new instance of the iSpeechRecognizer class |
Methods
| Name | Description | |
|---|---|---|
| addAlias |
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.
| |
| addCommand(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.
| |
| addCommand(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.
| |
| cancelRecord |
Cancels a recording in progress and dismisses the current prompt if one is visible.
| |
| clear |
Clears all commands and aliases from this {@link SpeechRecognizer} object.
| |
| clearMetaAndOptionalCommands | ||
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| setFreeForm |
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.
| |
| setLanguage |
Set the speech recognition language.
| |
| setOptionalCommand |
Specify additional parameters to send to the server.
| |
| startStreamingRecognize |
Starts the ASR connection
| |
| stopStreaming |
Stops the recording process and returns a {@link SpeechResult}.
| |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| FREEFORM_DICTATION |
Free form dictation, such as a written document
| |
| FREEFORM_DISABLED |
Disable free form speech recognition.
| |
| FREEFORM_INSTANT_MESSAGE |
A message for an instant message client
| |
| FREEFORM_MEMO |
A memo or a list of items
| |
| FREEFORM_MESSAGE |
A message addressed to another person.
| |
| FREEFORM_SMS |
A SMS or TXT message.
| |
| FREEFORM_TRANSCRIPT |
General transcription
| |
| FREEFORM_VOICEMAIL |
A voice mail transcription
|