User Manual

www.veear.eu
User Manual (1.0.14) EasyVR 3 57
Note:
The module is busy until recognition completes and it cannot accept other commands. You can
interrupt recognition with stop().
bool hasFinished ()
Polls the status of on-going recognition, training or asynchronous playback tasks.
Return values:
true
if the operation has completed
int8_t getCommand ()
Gets the recognised command index if any.
Return values:
(0-31)
is the command index if recognition is successful, (-1) if no command
has been recognized or an error occurred
int8_t getWord ()
Gets the recognised word index if any, from built-in sets or custom grammars.
Return values:
(0-31)
is the command index if recognition is successful, (-1) if no built-in
word has been recognized or an error occurred
int16_t getToken ()
Gets the index of the received SonicNet token if any.
Return values:
integer
is the index of the received SonicNet token (0-255 for 8-bit tokens or
0-15 for 4-bit tokens) if detection was successful, (-1) if no token has
been received or an error occurred
int16_t getError ()
Gets the last error code if any.
Return values:
(0-255)
is the error code, (-1) if no error occurred
bool isTimeout ()
Retrieves the timeout indicator.
Return values:
true
if a timeout occurred
bool isAwakened ()
Retrieves the wake-up indicator (only valid after hasFinished() has been called).
Return values:
true
if the module has been awakened from sleep mode
bool isConflict ()
Retrieves the conflict indicator.