Reputation: 3
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 .
1.8.0_231
for 64-bit.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.
Upvotes: 0
Views: 365
Reputation: 8660
Thanks for Daud's comment.
SpeechConfig.setProxy("proxyHost", "proxyPort", "", "")
More details can refer to this link.
Upvotes: 0