Start voice recognition by the Voice Recognition System
#include <ultra64.h> /* ultra64.h */
s32 osVoiceStartReadData(OSVoiceHandle *hd);
The osVoiceStartReadData function is for starting recognition processing by the Voice Recognition System.
The osVoiceStartReadData function is for starting recognition processing by the Voice Recognition System. Before starting voice recognition processing with the osVoiceStartReadData function, the Voice Recognition System must be initialized with the osVoiceInit function, the dictionary must be initialized with the osVoiceClearDictionary function, and word registration must be performed with the osVoiceSetWord function. Be absolutely sure to call the osVoiceStartReadData function after calling these functions.
After calling the osVoiceStartReadData function, recognition results can be obtained by calling the osVoiceGetReadData function. In addition, once voice recognition has been started, call the osVoiceStopReadData function to forcibly stop recognition.
hd is the Voice Recognition System control structure. The Voice Recognition System must be initialized with the osVoiceInit function before the osVoiceStartReadData function is called.
The returned value is an error code. A 0 (zero) is returned when processing ends normally. If an error occurs, this function has the following error codes.
Nothing is connected to the controller port.
Something other than the Voice Recognition System is connected to the controller port.
There was no response from the Voice Recognition System. There may be a problem with the hardware.
There was a data transmission failure. There is a problem in the Voice Recognition System connection.
The function was called without words correctly registered in the dictionary. Or there is an error in the function call method or in the argument. This error will not occur if the function is being used correctly.
osVoiceCheckWord, osVoiceClearDictionary, osVoiceControlGain, osVoiceCountSyllables, osVoiceGetReadData, osVoiceInit, osVoiceMaskDictionary, osVoiceSetWord, and osVoiceStopReadData
1999/04/30 Changed Format