AJ Python Speech Recog Part Two
AJ Python Speech Recog Part Two
current_search(self)
sta!c default_config()
DEPRECATED: This does the same thing as simply crea!ng a Config and is
here for historical reasons.
end_utt(self)
This method must be called at the end of each separate “u"erance” of raw
audio input. It takes care of flushing any internal buffers and finalizing
recogni!on results.
get_alignment(self)
This will return something if ps_set_alignment has been called, but it will not
contain an actual alignment (i.e. phone and state dura!ons) unless a second
pass of decoding has been run.
If the decoder is not in sub-word alignment mode then it will return None.
get_cmn(self, update=False)
get_config(self)
DEPRECATED: This does the same thing as simply accessing config and is
here for historical reasons.
Get the currently ac!ve FsgModel or the model for a specific search module.
Parameters: name (str) – Name of search module for this FSG. If this is
None (the default), the currently ac!ve FSG will be
returned.
https://pocketsphinx.readthedocs.io/en/latest/pocketsphinx.html Page 7 of 32
Main pocketsphinx package — PocketSphinx 5.0.1 documentation 06/08/23, 12:16 AM
returned.
get_in_speech(self)
This method is retained for compa!bility, but it will always return True as long
as ps_start_utt has been previously called.
get_lattice(self)
Get the current N-Gram language model or the one associated with a search
module.
returned.
get_logmath(self)
DEPRECATED: This does the same thing as simply accessing logmath and is
here for historical reasons.
get_prob(self)
get_search(self)
hyp(self)
Note that the format argument does nothing, never has done anything, and
never will. It’s only here for historical reasons.
logmath
Look up a word in the dic!onary and return phone transcrip!on for it.
n_frames(self)
nbest(self)