Microsoft Azure Speech to Text Java quickstart ConnectionFailure

Shahrukh Mateen 31 Reputation points
2020-07-12T05:17:24.143+00:00

I am trying to get the Microsoft Azure Speech To Text Java quickstart available at: Java Quickstart to work as stated.

I haven't yet been able to do so. On running the code, the following error is displayed on the Eclipse console:

Say something...
CANCELED: Reason=Error
CANCELED: ErrorCode=ConnectionFailure
CANCELED: ErrorDetails=Connection failed (no connection to the remote host). Internal error: 1. Error details: 11002. Please check network connection, firewall setting, and the region name used to create speech factory. SessionId: 56caf94e5a9b4c499e5c78b5bd659dcf
CANCELED: Did you update the subscription info?

I have tried regenerating the speechSubscriptionKey in the Azure console for my Azure Speech resource. I am using

centralindia

as the serviceRegion .

  • I have a free trial subscription.
  • JDK version: 1.8.0_231 for 64-bit.
  • OS: Microsoft Windows 10
  • IDE: Eclipse Luna

I am in a network that uses a proxy server. I tried after configuring the proxy settings as:

System.setProperty("http.proxyHost", "<ProxyHost>");
System.setProperty("http.proxyPort", "<ProxyPort>");

Still doesn't work.
P.S: I have a working microphone attached to the system.

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

Accepted answer
  1. romungi-MSFT 48,521 Reputation points Microsoft Employee
    2020-07-13T09:12:07.89+00:00

    @ShahrukhMateen-1499 You can setup the proxy using the steps mentioned here while using the Java SDK.

     public void setProxy(String proxyHostName, int proxyPort, String proxyUserName, String proxyPassword)
    
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Shahrukh Mateen 31 Reputation points
    2020-07-28T11:39:49.467+00:00

    Thank you romungi-MSFT. I was able to resolve the connectivity issue following the suggested approach.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.