Speech Recognition canceled: Error details: Runtime error: Failed to initialize platform (azure-c-shared)

louislau 11 Reputation points
2021-11-09T13:36:57.697+00:00

When I use the default Azure sample code to convert speech to text using the activated speech service, it shows that "Speech Recognition canceled: CancellationReason.Error" , "Error details: Runtime error: Failed to initialize platform (azure-c-shared)" . The question is that the same code can work in my local machine, but will raise such error message in my Lab server machine, don't know if there are any settings required for network setup. But I have checked that my speech service is open for all network by default. Any idea about this issue? Thanks in advance!

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,627 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Pengtao 20 Reputation points
    2023-11-12T15:17:13.7233333+00:00

    I'm facing the same issue, here is how I fixed it.
    The cause of the problem could be libssl version, the sdk doesn't support libssl3 yet, so we have to install libssl1.1 manually:

    wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
    sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
    

    Ref links:

    4 people found this answer helpful.

  2. Piyush Bansal 6 Reputation points
    2022-05-14T19:47:08.17+00:00

    Hi

    I have installed the azure speech recognization sdk for python on centos 7 using the following links

    https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-configure-rhel-centos-7 - for environment setup
    https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-sdk?tabs=linux%2Crhel-centos%2Cios-xcode%2Cmac-xcode%2Candroid-studio#get-the-speech-sdk -sdk installation.

    When I run the my transcription script that throws the following error
    Runtime error: Failed to initialize platform (azure-c-shared). Error: 2153 SessionId: 804b125389f04e759b53bd4aaa8d1abf

    can someone help on this issue. what I missed here.

    Thanks

    1 person found this answer helpful.
    0 comments No comments

  3. T Scott 5 Reputation points
    2023-02-26T00:40:12.72+00:00

    I also get the same error when attempting to issue simple command to recognize a file as shown on Quickstart: Recognize and convert speech to text page

    $ spx recognize --file 128B.wav

    but in my case I get the addition message after the Session ID string

    CANCELED: Did you update the subscription info?

    Sounds like a clue but I'm not sure what that means.

    I am running the spx CLI in a WSL Ubuntu instance on a Windows 10 PC.

    1 person found this answer helpful.
    0 comments No comments

  4. vivek singh 1 Reputation point
    2022-04-24T18:44:04.947+00:00

    I am facing the same issue. I have installed this SDK in AWS lambda through the lambda layer.


  5. Akhil Singhal 0 Reputation points
    2023-01-20T12:41:11.8033333+00:00

    I am facing same issues, trying to run the service from Ubuntu 22 WSL2 system.

    Runtime error: Failed to initialize platform (azure-c-shared). Error: 2153