如何解决从google_speech导入语音时,Pydroid 3错误
在Ubuntu 16.04中正常工作的脚本在Pydroid中失败。
在没有任何错误的情况下安装google_speech之后,导入Speech会显示与SoX相关的错误
Python 3.8.3
[GCC 9.3.0] on linux
>>> from google_speech import Speech
Traceback (most recent call last):
File "<stdin>",line 1,in <module>
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/google_speech/__init__.py",line 323,in <module>
bin_dep.check_bin_dependency(("sox",))
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/google_speech/bin_dep.py",line 7,in check_bin_dependency
raise RuntimeError("Binary '%s' Could not be found" % (bin))
RuntimeError: Binary 'sox' Could not be found
以前显然已经安装了SoX,如下面的屏幕截图所示
https://i.stack.imgur.com/zvXd3.png
但是,在终端中调用时找不到
/storage/emulated/0 $ sox
sh: sox: not found
/storage/emulated/0 $
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。