當我嘗試使用Google Speech Rec API時,出現此錯誤消息。任何幫助?osx - dyld:庫未加載原因:找不到圖像 - Python Google語音識別API
dyld: Library not loaded: /usr/local/Cellar/flac/1.3.1/lib/libFLAC.8.dylib
Referenced from: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/speech_recognition/flac-mac
Reason: image not found
我在使用PyCharm。
我試過複製粘貼和卸載並重新安裝,但無濟於事。幫助:)我的整個項目是讓用戶說點什麼,然後谷歌翻譯翻譯它並讓它說出答案。我的翻譯和口語涵蓋了,但語音識別是我現在遇到的問題。在此先感謝
下面是更多的錯誤消息。
Traceback (most recent call last): File >"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line >162, in _run_module_as_main "main", fname, loader, pkg_name) File >"/Library/Frameworks/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/main.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 listen buffer = source.stream.read(source.CHUNK) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/pyaudio.py", line 605, in read return pa.read_stream(self._stream, num_frames) IOError: [Errno Input overflowed] -9981
你能對你的回答詳細點嗎?我得到完全相同的錯誤。安裝Homebrew是如何解決這個問題的? – abmirayo
@abmirayo據我所知,Homebrew安裝的東西Apple認爲過多,並不需要在每臺計算機上,所以它不包含在正常的OSX中。 Homebrew基本上有你可能需要的隨機文件,例如Flac文件。告訴我你是否需要安裝家庭釀造的幫助。你用它做什麼?只是問問。 –