question

k2-4198 avatar image
1 Vote"
k2-4198 asked ·

Connection Failed Error with Speech SDK

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-speech
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I get the same error, did you fix it?

0 Votes 0 ·
ramr-msft avatar image
0 Votes"
ramr-msft answered ·

@k2-4198 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.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VTCommLtd-8803 avatar image
0 Votes"
VTCommLtd-8803 answered ·

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 ?

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.