pocketsphinx-python icon indicating copy to clipboard operation
pocketsphinx-python copied to clipboard

RuntimeError: new_Ad returned -1

Open chintan121 opened this issue 7 years ago • 2 comments

Error opening audio device (null) for capture: Connection refused Traceback (most recent call last): File "1test.py", line 3, in speech = LiveSpeech() File "/usr/local/lib/python2.7/dist-packages/pocketsphinx/init.py", line 206, in init self.ad = Ad(self.audio_device, self.sampling_rate) File "/usr/local/lib/python2.7/dist-packages/sphinxbase/ad.py", line 102, in init this = _ad.new_Ad(audio_device, sampling_rate) RuntimeError: new_Ad returned -1

my code is from pocketsphinx import LiveSpeech for phrase in LiveSpeech(): print(phrase)

chintan121 avatar Jul 12 '17 09:07 chintan121

Same issue,i don't get why. Anyone solved this please ?

YasserAntonio avatar Mar 04 '18 13:03 YasserAntonio

Same issue here. Reason was pulseaudio not running. Checked with "ps -C pulseaudio" Started with "pulseaudio -D" and LiveSpeech demo is now running without Problems.

MeckPommER avatar Oct 06 '18 13:10 MeckPommER