osVoiceCheckWord osVoiceCheckWord (function)

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

Syntax

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

s32 osVoiceCheckWord(u8 *word);

Description

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.

CONT_ERR_VOICE_WORD
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