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.
Namespace: iSpeechAssembly: iSpeechSDK (in iSpeechSDK.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void addCommand(
string[] commandPhrases
) |
| Visual Basic |
|---|
Public Sub addCommand ( _
commandPhrases As String() _
) |
| Visual C++ |
|---|
public:
void addCommand(
array<String^>^ commandPhrases
) |
Parameters
- commandPhrases
- Type: array<System..::..String>[]()[][]
An array containing your command phrases
See Also