语音服务 Azure - 服务器连接失败
Speech Services Azure - Failing server connection
我开始使用 Cognitive Services provided by Microsoft. I am particularly interested in Text-To-Speech to synthesise 语音到音频文件中。
因此,为了测试它,我创建了 30 天免费试用订阅,并将订阅密钥粘贴到 Microsoft 提供的 Quickstart project 中。然而,当我 运行 简单代码时,我得到以下错误:
Speech synthesis canceled, Internal server error. websocket error code: 1011
Did you update the subscription info?
我想知道我昨天获取的订阅信息,距离到期还有29天,为什么无法连接到服务器。
我已尝试联系 Microsoft 支持,但他们将相同的 link 发回给了 Quickstart 项目的相同存储库。
我刚刚尝试使用此 sample 进行试用订阅,效果很好。
你可以用我的 API 密钥试试。
Key 1: da159eddaebc433e84a8c6ebc8a39e20
Key 2: 68990a117e1a4285ae8076f3c62fd3b2
记得同时替换 subscriptionKey 和 serviceRegion。
// replace with your own subscription key,
// service region (e.g., "westus"), and
// the name of the file you save the synthesized audio.
var subscriptionKey = "da159eddaebc433e84a8c6ebc8a39e20";
var serviceRegion = "westus"; // e.g., "westus"
var filename = "d:/speech/YourAudioFile.wav";
我开始使用 Cognitive Services provided by Microsoft. I am particularly interested in Text-To-Speech to synthesise 语音到音频文件中。
因此,为了测试它,我创建了 30 天免费试用订阅,并将订阅密钥粘贴到 Microsoft 提供的 Quickstart project 中。然而,当我 运行 简单代码时,我得到以下错误:
Speech synthesis canceled, Internal server error. websocket error code: 1011 Did you update the subscription info?
我想知道我昨天获取的订阅信息,距离到期还有29天,为什么无法连接到服务器。
我已尝试联系 Microsoft 支持,但他们将相同的 link 发回给了 Quickstart 项目的相同存储库。
我刚刚尝试使用此 sample 进行试用订阅,效果很好。
你可以用我的 API 密钥试试。
Key 1: da159eddaebc433e84a8c6ebc8a39e20
Key 2: 68990a117e1a4285ae8076f3c62fd3b2
记得同时替换 subscriptionKey 和 serviceRegion。
// replace with your own subscription key,
// service region (e.g., "westus"), and
// the name of the file you save the synthesized audio.
var subscriptionKey = "da159eddaebc433e84a8c6ebc8a39e20";
var serviceRegion = "westus"; // e.g., "westus"
var filename = "d:/speech/YourAudioFile.wav";