'Installing speech_recognition - PocketSphinx module missing
I am having trouble running a Python script using the SpeechRecognition module :
import speech_recognition as sr
r = sr.Recognizer()
test = sr.AudioFile("helloWorld.wav")
with test as source:
audio = r.record(source)
r.recognize_sphinx(audio)
I get the error "missing PocketSphinx module: ensure that PocketSphinx is set up correctly"
To try to fix this I installed pocketsphinx via pip, but that didn't fix the problem. I also intalled swig and added it to my environment variables, but this didn't work either.
Currently the error seems to be missing '_ad_win32' module, which I couldn't find anything about.
Does anyone know how to fix this ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
