Function


nuVrsSetWord

Syntax: 
s32 nuVrsSetWord(NUVrsHandle* handle, u8* word)
Arguments: 
handle  NUVrsHandle structure
word    Word to be registered
Return Value: 
Error
Description: 

Stores a word in the dictionary

This stores the word specified by "word" in the Voice Recognition System Dictionary. "handle" must be initialized with the nuVrsOpen function. The return value is the return value from the osVoiceSetWord function.

This function calls the osVoiceSetWord function via the SI manager.

Errors:

CONT_ERR_NO_CONTROLLER Nothing is connected to the Controller port.
CONT_ERR_DEVICE Something other than the Voice Recognition System is connected to the Controller port.
CONT_ERR_VOICE_NO_RESPONSE No response from Voice Recognition System. There may be a problem with the hardware.
CONT_ERR_CONTRFAIL Data transfer failure. There is a problem in the Voice Recognition System connection.
CONT_ERR_INVALID There is an error in the way this function was called or in the argument. This error will not occur if the correct calling method is used. Please correct the problem so that this error does not occur when development is completed.
CONT_ERR_VOICE_WORD You have attempted to register an invalid word. The word which has been set has been disabled and the word number has not be incremented. Execute the osVoiceSetWord() function again to register a valid word.
CONT_ERR_VOICE_MEMORY The dictionary memory is full. If a recognition command was executed in this state, normal recognition processing can be performed even if the number of words which have been set is less than the number of words set by the osVoiceClearDictionary() function. When this error occurs, manage the number of words which have actually been set on the application side.

See also: nuVrsOpen, osVoiceSetWord