4

I've installed the Python interface to pocketsphinx in a virtual environment using venv on macOS:

pip3 install --upgrade pip setuptools wheel
pip3 install --upgrade pocketsphinx

but when I run the basic example:

from pocketsphinx import LiveSpeech
for phrase in LiveSpeech():
    print(phrase)

it returns no results. The default microphone is functional in other programs. I've dumped the verbose debug info here.

(Note: I have pocketsphinx installed globally as well, and when I run pocketsphinx_continuous -inmic yes it returns streaming recognition results correctly.

How I can pin down what is going wrong with the Python interface?

Naftali Beder
  • 1,066
  • 1
  • 10
  • 27
  • 2
    A guess--do you have to allow the Python executable access to the microphone in the Security and Privacy part of System Preferences? – RGoodman Jun 11 '20 at 21:38

0 Answers0