SPX synthesize error ErrorCode=ConnectionFailure

Shawn Liu 21 Reputation points
2021-05-11T06:31:26.433+00:00

I am following the document here( https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=script%2Clinuxinstall&pivots=programmer-tool-spx) to quick start a tts on CentOS 8.2 with Speech CLI.
When running sample command "spx synthesize --text "The speech synthesizer greets you!" --audio output greetings.wav"
I got the following error

SYNTHESIS STARTED: c88154c********************e33c80
CANCELED: Reason=Error
CANCELED: ErrorCode=ConnectionFailure
CANCELED: ErrorDetails=Connection failed (no connection to the remote host). Internal error: 1. Error details: Code: 2542. USP state: 2. Received audio size: 0 bytes.
CANCELED: Did you update the subscription info?

Please help. Thanks.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,391 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,367 questions
{count} votes

Accepted answer
  1. svijay-MSFT 5,201 Reputation points Microsoft Employee
    2021-05-12T17:45:33.557+00:00

    @Shawn Liu , Thanks for your response.

    I quickly did a set up at my end (Azure Linux VM) and I was able to do observe the same issue at my end.

    Ran the below command :

    spx synthesize --text "Enjoy using the Speech CLI." --audio output my-sample.wav  
    

    Output :

    96047-image.png

    Checked the logs using the below command. CAT log-<Number>.log . You can do dir command to find out your log file name.

    Observed the below lines in the log traces :

    [787457]: 145ms SPX_TRACE_ERROR: AZ_LOG_ERROR:  tlsio_openssl.c:690 error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed  
    [787457]: 145ms SPX_TRACE_ERROR:  trace_message.cpp:193 Error: File:/home/vsts/work/1/s/external/azure-c-shared-utility/adapters/tlsio_openssl.c Func:send_handshake_bytes Line:690  
    [787457]: 145ms SPX_TRACE_ERROR: AZ_LOG_ERROR:  tlsio_openssl.c:2433 FORCE-Closing tlsio instance.  
    [787457]: 145ms SPX_TRACE_ERROR:  trace_message.cpp:193 Error: File:/home/vsts/work/1/s/external/azure-c-shared-utility/adapters/tlsio_openssl.c Func:tlsio_openssl_close Line:2433  
    [787457]: 145ms SPX_TRACE_ERROR:  web_socket.cpp:874 WS open operation failed with result=1(WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED), code=2542[0x000009ee]  
    

    Appeared like there was some issues with the SSL certificate verification.

    Ran the below command to set SSL cert file location.

     export SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt  
    

    I was able to run the command and get output successfully :

    96019-image.png

    ------------------------

    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.


0 additional answers

Sort by: Most helpful