Package: python-pocketsphinx Version: 0.8-2 Severity: normal Importing just the decoder module fails, the module itself should handle any initialisation that is needed to make this work. Importing the whole pocketsphinx module and then calling the decoder from that works though.
pabs@chianamo ~/tmp/speech-test $ cat test.py from pocketsphinx import Decoder HMM = "/usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k" LM = "/usr/share/pocketsphinx/model/lm/en_US/hub4.5000.DMP" DICT = "/usr/share/pocketsphinx/model/lm/en_US/cmu07a.dic" WAV = "test.wav" decoder = Decoder(hmm=HMM, lm=LM, dict=DICT) fh = open(WAV) fh.seek(44) # skip the WAV header decoder.decode_raw(fh) print decoder.get_hyp() # short for hypothesis pabs@chianamo ~/tmp/speech-test $ python test.py Traceback (most recent call last): File "test.py", line 1, in <module> from pocketsphinx import Decoder File "sphinxbase.pxd", line 150, in init pocketsphinx (pocketsphinx.c:7935) ValueError: PyCapsule_GetPointer called with invalid PyCapsule object -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.8-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-pocketsphinx depends on: ii libc6 2.13-38 ii libpocketsphinx1 0.8-2 ii libsphinxbase1 0.8-1 ii python 2.7.3-4 -- bye, pabs http://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part