src/Recognition.cpp
/// <summary>
/// Verifies if the recognized spoken number matches the number parameter.
/// </summary>
/// <param name="text">The text to verify.</param>
/// <returns>true if the text matches.</returns>

Verifies if the recognized spoken number matches the number parameter.

The text to verify.
true if the text matches.
Verifies if the recognized spoken number matches the number parameter . The text to verify . true if the text matches .
bool Recognition::heard(int spokenNumber) {
    const int length = this->length[0];
    char * buffer = new char[length];
    bool return_value = false;
    snprintf(buffer, length, "%d", spokenNumber);
	return_value = heard(buffer);
    delete[] buffer;
    return return_value;
}
bool Recognition :: heard ( int spokenNumber ) { const int length = this -> length [ 0 ] ; char * buffer = new char [ length ] ; bool return_value = false ; snprintf ( buffer , length , " " , spokenNumber ) ; return_value = heard ( buffer ) ; delete [ ] buffer ; return return_value ; }
<summary>
Verifies if the recognized spoken number matches the number parameter.
<summary > Verifies if the recognized spoken number matches the number parameter .