SR_Vocabulary Struct Reference
[SR_Vocabulary API functions]


Detailed Description

A vocabulary maps words to their phonetic representation.

Data Fields

ESR_ReturnCode(* save )(struct SR_Vocabulary_t *self, const LCHAR *filename)
ESR_ReturnCode(* getPronunciation )(struct SR_Vocabulary_t *self, const LCHAR *word, LCHAR *pronunciation, size_t *len)
ESR_ReturnCode(* getLanguage )(struct SR_Vocabulary_t *self, ESR_Locale *locale)
ESR_ReturnCode(* destroy )(struct SR_Vocabulary_t *self)

Field Documentation

ESR_ReturnCode(* SR_Vocabulary::save)(struct SR_Vocabulary_t *self, const LCHAR *filename)

Saves a vocabulary to file.

Parameters:
self SR_Vocabulary handle
filename File to write to

ESR_ReturnCode(* SR_Vocabulary::getPronunciation)(struct SR_Vocabulary_t *self, const LCHAR *word, LCHAR *pronunciation, size_t *len)

Returns phonetic representation of word.

Parameters:
self SR_Vocabulary handle
word Word to check for
pronunciation [out] Phonetic representation of word
len [in/out] Length of value argument. If the return code is ESR_BUFFER_OVERFLOW, the required length is returned in this variable.

ESR_ReturnCode(* SR_Vocabulary::getLanguage)(struct SR_Vocabulary_t *self, ESR_Locale *locale)

Returns vocabulary locale.

Parameters:
self SR_Vocabulary handle
locale [out] Vocabulary locale

ESR_ReturnCode(* SR_Vocabulary::destroy)(struct SR_Vocabulary_t *self)

Destroys a Vocabulary.

Parameters:
self SR_Vocabulary handle


Generated on Thu May 1 15:37:28 2008 for SREC by  doxygen 1.5.3