I have installed the latest versions of pocketsphinx and sphinxbase (0.8). I try to import pocketsphinx into python code (version 3.4.2 of Python) and to use the "Decoder" like this:
try:
import sphinxbase
import pocketsphinx as ps
except:
print ("Pocket sphinx and sphixbase is not installed in your system.
Please install it with package manager.")
speechRec = ps.Decoder(hmm = hmmd, lm = lmdir, dict = dictp, beam = '1e-80')
wavFile = file(wavfile,'rb')
wavFile.seek(44)
speechRec.decode_raw(wavFile)
However, I get the following error:
AttributeError: 'module' object has no attribute 'Decoder'
Does somebody know what's wrong?