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:
- CENTOS 8.2 Gen 1 in Azure
- RHEL 8.3 in AWS
- 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 ?