Azure cognitive service speech SDK is giving me "connection failed" error

Nayak, Malyabanta 0 Reputation points
2024-06-15T19:37:24.41+00:00

I am using Azure cognitive service speech SDK in Ubuntu 22.04 to convert speech to text , it gives me "connection failed error ."

Error from Log(with out proxy set up ):

[961918]: 81336552ms SPX_TRACE_ERROR: AZ_LOG_ERROR: tlsio_openssl.c:1030 Error loading CRL from http://www.microsoft.com/pkiops/crl/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2008.crl

[961918]: 81336552ms SPX_TRACE_ERROR: AZ_LOG_ERROR: tlsio_openssl.c:1624 Unable to retrieve CRL, CRL check may fail.

[961918]: 81336552ms SPX_TRACE_ERROR: AZ_LOG_ERROR: tlsio_openssl.c:695 SSL handshake failed: 5

[961918]: 81336552ms SPX_TRACE_ERROR: AZ_LOG_ERROR: tlsio_openssl.c:2464 FORCE-Closing tlsio instance.

[961918]: 81336553ms SPX_TRACE_SCOPE_ENTER: uws_web_socket.cpp:247 OnWebSocketOpened

[961918]: 81336553ms SPX_TRACE_ERROR: web_socket.cpp:907 WS open operation failed with result=1(WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED), code=2573[0x00000a0d], time=2024-06-15T18:23:02.2736630Z

[961918]: 81336553ms SPX_TRACE_INFO: usp_connection.cpp:933 TS:31363, TransportError: connection:0x8400a220, code=5, string=Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED

wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2

X-ConnectionId: 62a68bf24d244080991831ee6cad3127

[961918]: 81336553ms SPX_TRACE_ERROR: usp_reco_engine_adapter.cpp:2009 Response: On Error: Code:5, Message: Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED

wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2

X-ConnectionId: 62a68bf24d244080991831ee6cad3127.

Error with Proxy set up :

"[271483]: 85282648ms SPX_TRACE_ERROR: AZ_LOG_ERROR: socketio_berkeley.c:634 Failure: getaddrinfo failure -2.

[271483]: 85282648ms SPX_TRACE_ERROR: AZ_LOG_ERROR: http_proxy_io.c:285 Underlying IO open failed

[271483]: 85282648ms SPX_TRACE_ERROR: AZ_LOG_ERROR: tlsio_openssl.c:780 Could not open underlying IO: 1

[271483]: 85282648ms SPX_TRACE_SCOPE_ENTER: uws_web_socket.cpp:247 OnWebSocketOpened

[271483]: 85282648ms SPX_TRACE_ERROR: web_socket.cpp:907 WS open operation failed with result=1(WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED), code=-2[0xfffffffe], time=2024-06-15T19:28:48.3689531Z

[271483]: 85282648ms SPX_TRACE_INFO: usp_connection.cpp:933 TS:71, TransportError: connection:0x6c0046a0, code=5, string=Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED

wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2"

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,516 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 15,836 Reputation points
    2024-06-17T21:27:56.6366667+00:00

    Hello @Nayak, Malyabanta , Thanks for using Microsoft Q&A Platform.

    This could be due to a network issue or a firewall blocking the connection. Check if the system has the necessary network connectivity to connect to the Azure cognitive service speech service

    You can Use VNet Service endpoint https://video2.skills-academy.com/en-us/azure/ai-services/speech-service/speech-service-vnet-service-endpoint

    Use Private endpoint https://video2.skills-academy.com/en-us/azure/ai-services/speech-service/speech-services-private-link

    Looks like you have already raised the GitHub issue: https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/2419

    If you still face issue, please raise a support ticket in the Azure portal.

    I hope this helps.

    Regards,

    Vasavi

    0 comments No comments