User Manual
www.veear.eu
56 EasyVR 3 User Manual (1.0.14)
bool dumpGrammar (int8_t grammar, uint8_t & flags, uint8_t & count)
Retrieves the contents of a built-in or a custom grammar. Command labels contained in the grammar
can be obtained by calling getNextWordLabel()
Parameters:
grammar
(0-31) is the target grammar, or one of the values in Wordset
flags
is a variable that holds some grammar flags when the function
returns. See GrammarFlag
count
is a variable that holds the number of words in the grammar when the
function returns.
Return values:
true
if the operation is successful
bool getNextWordLabel (char * name)
Retrieves the name of a command contained in a custom grammar. It must be called after
dumpGrammar()
Parameters:
name
points to an array of at least 32 characters that holds the command
label when the function returns
Return values:
true
if the operation is successful
void trainCommand (int8_t group, int8_t index)
Starts training of a custom command. Results are available after hasFinished() returns true.
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 stop().
void recognizeCommand (int8_t group)
Starts recognition of a custom command. Results are available after hasFinished() returns true.
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 stop().
void recognizeWord (int8_t wordset)
Starts recognition of a built-in word. Results are available after hasFinished() returns true.
Parameters:
wordset
(0-3) is the target word set, or one of the values in Wordset, (4-31) is
the target custom grammar, if present










