Data Sheet
www.veear.eu
60 EasyVR 3 (Plus) User Manual (1.0.17)
int8_t getGrammarsCount (void )
Gets the total number of grammars available, including built-in and custom.
Return values:
integer
is the count of grammars (negative in case of errors)
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.










