@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)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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 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.
@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)
Thank you romungi-MSFT. I was able to resolve the connectivity issue following the suggested approach.