def add_word(self, *args): """ add_word(Decoder self, char const * word, char const * phones, int update) Add a word to the pronunciation dictionary. This function adds a word to the pronunciation dictionary and the current language model (but, obviously, not to the current FSG if FSG mode is enabled). If the word is already present in one or the other, it does whatever is necessary to ensure that the word can be recognized. Parameters: ----------- word: Word string to add. phones: Whitespace-separated list of phoneme strings describing pronunciation of word. update: If TRUE, update the search module (whichever one is currently active) to recognize the newly added word. If adding multiple words, it is more efficient to pass FALSE here in all but the last word. The internal ID (>= 0) of the newly added word, or <0 on failure. """ return _pocketsphinx.Decoder_add_word(self, *args)
def add_word(self, word, phones, update): """add_word(Decoder self, char const * word, char const * phones, int update)""" return _pocketsphinx.Decoder_add_word(self, word, phones, update)