javascript - 语音服务 Azure - 服务器连接失败

标签 javascript azure text-to-speech

我开始使用微软提供的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 进行试用订阅,效果很好。

enter image description here

您可以尝试使用我的 API key 。

enter image description here

Key 1: da159eddaebc433e84a8c6ebc8a39e20
Key 2: 68990a117e1a4285ae8076f3c62fd3b2

请记住替换 subscriptionKeyserviceRegion

  // 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/

相关文章:

javascript - 提交表单时,我不想在出现弹出窗口时加载页面

javascript - 禁用 javascript 时 Stripe 会发生什么

javascript - 如何跳到下一个描述 Mocha 错误?

java - TextToSpeech 仅在按下按钮时有效,在单独调用时无效

android - IllegalArgumentException : Invalid int: "OS" with Samsung tts

javascript - 在javascript中选定文本之前和之后插入文本

azure - 从 NuGet 库登录 Azure 和控制台应用程序

asp.net-mvc - Elmah 显示, "No OWIN authentication manager is associated with the request."

azure - 从 Azure Synapse T sql 中的 Azure key 保管库检索密码

google-chrome - chrome.tts.speak字符数限制