Microsoft Azure Speech to Text Java 问题:使用代理时出现连接失败
Microsoft Azure Speech to Text Java issue: ConnectionFailure when using proxy
我正在尝试获取 Microsoft Azure Speech To Text Java 快速入门,网址为:
Java Quickstart 按照说明工作。
我还没能这样做。
在运行代码中,Eclipse控制台显示如下错误:
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?
我已尝试在 Azure 控制台中为我的 Azure 语音资源重新生成 speechSubscriptionKey。
我正在使用 centralindia
作为 serviceRegion .
- 我有免费试用订阅。
- JDK 版本:
1.8.0_231
64 位。
- OS:微软Windows10
- IDE:月食月神
我在使用代理服务器的网络中。我将代理设置配置为:
System.setProperty("http.proxyHost", "<ProxyHost>");
System.setProperty("http.proxyPort", "<ProxyPort>");
还是不行。
P.S: 我有一个连接到系统的工作麦克风。
感谢 Daud 的评论。
SpeechConfig.setProxy("proxyHost", "proxyPort", "", "")
更多细节可以参考这篇link。
我正在尝试获取 Microsoft Azure Speech To Text Java 快速入门,网址为: Java Quickstart 按照说明工作。
我还没能这样做。 在运行代码中,Eclipse控制台显示如下错误:
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?
我已尝试在 Azure 控制台中为我的 Azure 语音资源重新生成 speechSubscriptionKey。
我正在使用 centralindia
作为 serviceRegion .
- 我有免费试用订阅。
- JDK 版本:
1.8.0_231
64 位。 - OS:微软Windows10
- IDE:月食月神
我在使用代理服务器的网络中。我将代理设置配置为:
System.setProperty("http.proxyHost", "<ProxyHost>");
System.setProperty("http.proxyPort", "<ProxyPort>");
还是不行。
P.S: 我有一个连接到系统的工作麦克风。
感谢 Daud 的评论。
SpeechConfig.setProxy("proxyHost", "proxyPort", "", "")
更多细节可以参考这篇link。