1# This file was automatically generated by SWIG (http://www.swig.org). 2# Version 3.0.5 3# 4# Do not make changes to this file unless you know what you are doing--modify 5# the SWIG interface file instead. 6 7 8 9 10""" 11This documentation was automatically generated using original comments in 12Doxygen format. As some C types and data structures cannot be directly mapped 13into Python types, some non-trivial type conversion could have place. 14Basically a type is replaced with another one that has the closest match, and 15sometimes one argument of generated function comprises several arguments of the 16original function (usually two). 17 18Functions having error code as the return value and returning effective 19value in one of its arguments are transformed so that the effective value is 20returned in a regular fashion and run-time exception is being thrown in case of 21negative error code. 22""" 23 24 25fromsysimportversion_info 26ifversion_info>=(2,6,0):

423"""424 get_fsg(Decoder self, char const * name) -> FsgModel425426 Get the finite-state grammar set object for this decoder.427428 If FSG decoding is not enabled, this returns NULL. Call429 ps_set_fsgset() to enable it.430431 The current FSG set object for this decoder, or NULL if none is432 available. 433 """434return_pocketsphinx.Decoder_get_fsg(self,name)

534"""535 get_lm(Decoder self, char const * name) -> NGramModel536537 Get the language model set object for this decoder.538539 If N-Gram decoding is not enabled, this will return NULL. You will540 need to enable it using ps_set_lmset().541542 The language model set object for this decoder. The decoder retains543 ownership of this pointer, so you should not attempt to free it544 manually. Use ngram_model_retain() if you wish to reuse it elsewhere.545546 """547return_pocketsphinx.Decoder_get_lm(self,name)

583"""584 set_search(Decoder self, char const * search_name)585586 Actives search with the provided name.587588 Activates search with the provided name. The search must be added589 before using either ps_set_fsg(), ps_set_lm() or ps_set_kws().590591 0 on success, -1 on failure 592 """593return_pocketsphinx.Decoder_set_search(self,search_name)