osVoiceCheckWord osVoiceCheckWord (function)

Checks whether or not a word can be registered in the dictionary


#include <ultra64.h> /* ultra64.h */

s32 osVoiceCheckWord(u8 *word);


osVoiceCheckWord() function is for checking whether or not a specified word can be registered in the Voice Recognition System. Use this when the words to be registered will be input during debugging or by the game player.

"word" specifies the word (SJIS) to be registered.

An error will be returned if a word is specified which contains a character combination which does not satisfy the conditions listed in the table below.

Usage Character
No limitation on use か、き、く、け、こ、さ、し、す、せ、そ、た、ち、つ、て、と、は、ひ、ふ、へ、ほ、が、ぎ、ぐ、げ、ご、ざ、じ、ず、ぜ、ぞ、だ、ぢ、づ、で、ど、ば、び、ぶ、べ、ぼ、ぱ、ぴ、ぷ、ぺ、ぽ、カ、キ、ク、ケ、コ、サ、シ、ス、セ、ソ、タ、チ、ツ、テ、ト、ハ、ヒ、フ、ヘ、ホ、ガ、ギ、グ、ゲ、ゴ、ザ、ジ、ズ、ゼ、ゾ、ダ、ヂ、ヅ、デ、ド、バ、ビ、ブ、ベ、ボ、パ、ピ、プ、ペ、ポ
Can be used only after specified characters
(Combinable characters)
Cannot be used at the beginning of a word ー、ん、っ、ゎ、ン、ッ、ヮ、ヵ、ヶ
Cannot be used at the end of a word っ、ッ
Cannot be used in front of "ー" ん、っ、ン、ッ
Cannot be used after "tsu" or "tsu" ー、あ、い、う、え、お、な、に、ぬ、ね、の、ま、み、む、め、も、や、ゆ、よ、ら、り、る、れ、ろ、わ、ゐ、ゑ、を、ん、ぁ、ぃ、ぅ、ぇ、ぉ、ゃ、ゅ、ょ、っ、ゎ、ア、イ、ウ、エ、オ、ナ、ニ、ヌ、ネ、ノ、マ、ミ、ム、メ、モ、ヤ、ユ、ヨ、ラ、リ、ル、レ、ロ、ワ、ヰ、ヱ、ヲ、ン、ァ、ィ、ゥ、ェ、ォ、ャ、ュ、ョ、ッ、ヮ、
Combinations which cannot be used んん、んン、ンん、ンン

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.

The word cannot be registered. This word cannot be registered in the voice recognition dictionary.

See also

osVoiceClearDictionary, osVoiceControlGain, osVoiceCountSyllables, osVoiceGetReadData, osVoiceInit, osVoiceMaskDictionary, osVoiceSetWord, osVoiceStartReadData, and osVoiceStopReadData

Revision History

1999/04/30 Changed Format