Пример #1
0
    def lookup_word(self, *args):
        """
        lookup_word(Decoder self, char const * word) -> char *

        Lookup for the word in the dictionary and return phone transcription
        for it.

        Parameters:
        -----------

        ps:  Pocketsphinx decoder

        word:  Word to look for

        Whitespace-spearated phone string describing the pronunciation of the
        word or NULL if word is not present in the dictionary. The string is
        allocated and must be freed by the user. 
        """
        return _pocketsphinx.Decoder_lookup_word(self, *args)
Пример #2
0
 def lookup_word(self, word):
     """lookup_word(Decoder self, char const * word) -> char *"""
     return _pocketsphinx.Decoder_lookup_word(self, word)