src/Recognition.cpp
/// <summary>
/// Recognizes open text / not constricted without a UI. 
/// </summary>
/// <returns>The id of the message. Negative if an error.</returns>

Recognizes open text / not constricted without a UI.

The id of the message. Negative if an error.
Recognizes open text / not constricted without a UI . The id of the message . Negative if an error .
int Recognition::listen(char* openTextBuffer, int* length, bool useUI, long timeout)
{
	this->openTextBuffer = openTextBuffer;
	this->length = length;
	this->openTextBuffer[0] = '\0';
	this->recognizedIndex = 0;
	EPtr eptrs[] = { EPtr(SPEECH_UI, useUI), EPtr(MS, timeout) };
    return shield.block(writeAll(SERVICE_NAME_RECOGNIZE, eptrs, 2), onEvent == NULL);
}
int Recognition :: listen ( char * openTextBuffer , int * length , bool useUI , long timeout ) { this -> openTextBuffer = openTextBuffer ; this -> length = length ; this -> openTextBuffer [ 0 ] = ' \0 ' ; this -> recognizedIndex = 0 ; EPtr eptrs [ ] = { EPtr ( SPEECH_UI , useUI ) , EPtr ( MS , timeout ) } ; return shield . block ( writeAll ( SERVICE_NAME_RECOGNIZE , eptrs , 2 ) , onEvent == NULL ) ; }
<summary>
Recognizes open text / not constricted without a UI.
<summary > Recognizes open text / not constricted without a UI .