src/Recognition.cpp
/// <summary>
/// Recognizes the specified constricted recognition text without a UI.
/// </summary>
/// <param name="recognitionText">The recognition text (words or groups).</param>
/// <returns>The id of the message. Negative if an error.</returns>

Recognizes the specified constricted recognition text without a UI.

The recognition text (words or groups).
The id of the message. Negative if an error.
Recognizes the specified constricted recognition text without a UI . The recognition text ( words or groups ) . The id of the message . Negative if an error .
int Recognition::listenFor(EPtr constraint, bool useUI, int expectedConfidence, long timeout)
{
	this->openTextBuffer = NULL;
	this->recognizedIndex = 0;
	EPtr eptrs[] = { constraint, EPtr(CONFIDENCE, expectedConfidence), EPtr(SPEECH_UI, useUI), EPtr(MS, timeout) };
	return shield.block(writeAll(SERVICE_NAME_RECOGNIZE, eptrs, 4), onEvent == NULL);
}
int Recognition :: listenFor ( EPtr constraint , bool useUI , int expectedConfidence , long timeout ) { this -> openTextBuffer = NULL ; this -> recognizedIndex = 0 ; EPtr eptrs [ ] = { constraint , EPtr ( CONFIDENCE , expectedConfidence ) , EPtr ( SPEECH_UI , useUI ) , EPtr ( MS , timeout ) } ; return shield . block ( writeAll ( SERVICE_NAME_RECOGNIZE , eptrs , 4 ) , onEvent == NULL ) ; }
<summary>
Recognizes the specified constricted recognition text without a UI.
<summary > Recognizes the specified constricted recognition text without a UI .