1

Tried with the following commands,

pip3 install azure-cognitiveservices-speech
python3 -m pip install --upgrade pip
import azure.cognitiveservices.speech as speechsdk

Error:

ImportError: libasound.so.2: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

ModuleNotFoundError: No module named '_speech_py_impl'
Raphael Titus
  • 173
  • 12
  • 1
    you're missing libasound. not sure which distro you're using, so just use your distro package manager and install whatever package that contains libasound. – ewokx Jul 13 '20 at 07:45
  • @ewong Even after installing libasound facing the same issue – Raphael Titus Jul 16 '20 at 07:03
  • @RaphaelTitus Are you still blocked here? Do you have the prerequisite libraries installed successfully? Get the prereqs for your distro here: https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstarts/setup-platform?tabs=dotnet%2Cwindows%2Cjre%2Cbrowser&pivots=programming-language-python – Bhargavi Annadevara Aug 26 '20 at 11:56

1 Answers1

1

libasound package is not found in Ubuntu virtual machines and Azure functions (Linux).. We can install the package "sudo apt-get install libasound2 alsa-utils alsa-os". For Azure functions (Linux), we can go with Docker containers where libasound can be installed in Dockerfile.

Raphael Titus
  • 173
  • 12