我开始使用微软提供的Cognitive Services。我对将 synthesise 语音转换为音频文件的文本到语音转换特别感兴趣。
因此,为了测试它,我创建了30天免费试用订阅,并将订阅 key 粘贴到微软提供的Quickstart project中。然而,当我运行简单的代码时,我收到以下错误:
Speech synthesis canceled, Internal server error. websocket error code: 1011 Did you update the subscription info?
我想知道为什么我昨天获取的订阅信息还有29天就过期了,无法连接到服务器。
我已尝试联系 Microsoft 支持,但他们向我发回了指向快速入门项目的同一存储库的相同链接。
最佳答案
我刚刚尝试使用此 sample 进行试用订阅,效果很好。
您可以尝试使用我的 API key 。
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";
关于javascript - 语音服务 Azure - 服务器连接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61364056/