Osx - dyld: Library not loaded Cause: Image not found - Google Python Speech Recognition API

When I try to use the Google Speech Rec API I get this error message. Any help?

dyld: library not loaded: /usr/local/Cellar/flac/1.3.1/lib/libFLAC.8.dylib
Link to: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ speech_recognition / flac-mac
 Cause: Image not found

I am using PyCharm.

I tried copy paste and uninstall and reinstall but to no avail. HELP :) My whole project is to get the user to say something and translate it to google translation and give an answer. I have translation and conversations, but speech recognition is what I am facing now. thanks in advance

There are more error messages here.

Traceback (last call last): File> "/Library/Framework/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line> 162, in _run_module_as_main " main ", fname, loader, pkg_name) File> "/Library/Framework/Python.framework/Versions/2.7/lib/python2.7/runpy.py",> line> 72, in _run_code exec code in run_globals File "/Library/Frameworks/Python.framework/Versions /2.7/lib/python2.7/site-> packages / speech_recognition / .py ", line 12, in audio = r.listen (source) File" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2 .7 / site-> packages / speech_recognition / init.py ", line 264, in listening buffer = source.stream.read (source.CHUNK) File" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-> packages / pyaudio.py ", line 605, while reading return pa.read_stream (self._stream, num_frames) IOError: [Errno Input overflowed] -9981

+3


source to share


2 answers


You must have homebrew installed first.

Second, after installing homebrew, you need to install flask:



brew install flac

      

+5


source


Figured it out - I just forgot to install Homebrew



0


source







All Articles