gpt4 book ai didi

python-2.7 - osx-dyld : Library not loaded Reason: image not found - Python Google Speech Recognition API

转载 作者:行者123 更新时间:2023-12-02 04:55:56 39 4
gpt4 key购买 nike

当我尝试使用 Google Speech Rec 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 后,您需要安装 flac:

brew install flac

关于python-2.7 - osx-dyld : Library not loaded Reason: image not found - Python Google Speech Recognition API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31497217/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com