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.
Advertisement
Answer
Thanks for Daud’s comment.
SpeechConfig.setProxy("proxyHost", "proxyPort", "", "")
More details can refer to this link.