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.

Namespace: iSpeech
Assembly: iSpeechSDK (in iSpeechSDK.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void addCommand(
	string commandPhrase
)
Visual Basic
Public Sub addCommand ( _
	commandPhrase As String _
)
Visual C++
public:
void addCommand(
	String^ commandPhrase
)

Parameters

commandPhrase
Type: System..::..String
A command phrase

See Also