
www.veear.eu
52
EasyVR 3
User Manual (1.0.11)
void trainCommand (int8_t
group
, int8_t
index
)
Starts training of a custom command. Results are available after
Parameters:
group
(0-16) is the target group, or one of the values in #Groups
index
(0-31) is the index of the command within the selected group
Note:
The module is busy until training completes and it cannot accept other commands. You can interrupt
training with
void recognizeCommand (int8_t
group
)
Starts recognition of a custom command. Results are available after
Parameters:
group
(0-16) is the target group, or one of the values in #Groups
Note:
The module is busy until recognition completes and it cannot accept other commands. You can
interrupt recognition with
void recognizeWord (int8_t
wordset
)
Starts recognition of a built-in word. Results are available after
Parameters:
wordset
(0-3) is the target word set, or one of the values in
, (4-31) is
the target custom grammar, if present
Note:
The module is busy until recognition completes and it cannot accept other commands. You can
interrupt recognition with
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