从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 (将#修改为@)