Connection Failed Error with Speech SDK

k2 11 Reputation points
2021-02-18T14:31:57.757+00:00

I've followed both the Speech SDK quickstart and the Speech CLI quickstart, but continue receiving the following error (with the SDK):

'Connection failed (no connection to the remote host). Internal error: 1. Error details: Code: 2508. SessionId: d2adc133aa5d484f99993baf3d139b53'   

And the following error (with the CLI):

SESSION STARTED: 6235df352895424a8eb77503f003bc99  
  
CANCELED: Reason=Error  
CANCELED: ErrorCode=ConnectionFailure  
CANCELED: ErrorDetails=Connection failed (no connection to the remote host). Internal error: 1. Error details: Code: 2460. SessionId: 6235df352895424a8eb77503f003bc99  
CANCELED: Did you update the subscription info?  
  
SESSION STOPPED: 6235df352895424a8eb77503f003bc99  
  

I am using the correct region and keys, and don't have any ports blocked on my firewall. I've tried through two different networks.

How do I fix this?

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

3 answers

Sort by: Most helpful
  1. Anonymous
    2022-01-18T17:52:30.26+00:00

    Hi, you might check and use the correct region identifier from here:
    https://learn.microsoft.com/es-es/azure/cognitive-services/speech-service/regions

    It works fine for me!

    1 person found this answer helpful.

  2. Ramr-msft 17,611 Reputation points
    2021-02-19T07:36:03.88+00:00

    @k2 Thanks for the question. Can you please confirm is your azure services disabled?, If yes To use Azure services, you must upgrade your account. For more information, see How to upgrade your Azure free account.

    We are able to connect to the speech SDK with key and the service region.

    0 comments No comments

  3. VT Comm Ltd 1 Reputation point
    2021-03-09T17:49:26.913+00:00

    I encountered the same problem ! I'm using com.microsoft.cognitiveservices.speech client sdk v1.15.0 in my java codes. I'm using JRE 11. The codes are just to transcribe a PCM file.

    When I run the sample codes in Macbook BigSur, it's working fine. However, when I copy it to some other Linux VMs with identical key and region (hard-coded inside the source codes), the following error is encountered:
    CANCELED: Reason=Error
    CANCELED: ErrorCode=ConnectionFailure
    CANCELED: ErrorDetails=Connection failed (no connection to the remote host). Internal error: 1. Error details: Code: 2508. SessionId: 5fe18919202a4f5aa834338b1334b1d6
    CANCELED: Did you update the subscription info?

    This error happens in the following Linux VMs:

    1. CENTOS 8.2 Gen 1 in Azure
    2. RHEL 8.3 in AWS
    3. CENTOS 8 in gCloud

    I upgraded my Azure account from free trial to pay by credit already. Does Azure Speech to Text service work in CentOS 8.x and RHEL 8 ?

    0 comments No comments