已尝试使用以下命令:
pip3 install azure-cognitiveservices-speech
python3 -m pip install --upgrade pip
import azure.cognitiveservices.speech as speechsdk错误:
ImportError: libasound.so.2: cannot open shared object file: No such file or directory在处理上述异常的过程中,发生了另一个异常:
ModuleNotFoundError: No module named '_speech_py_impl'发布于 2020-08-28 16:19:15
在Ubuntu虚拟机和Azure函数(Linux)中找不到libasound包。我们可以安装包"sudo apt-get install libasound2 alsa-utils alsa-os“。对于Azure函数(Linux),我们可以使用Docker容器,其中libasound可以安装在Dockerfile中。
https://stackoverflow.com/questions/62871275
复制相似问题