【问题标题】:Speech Services Azure - Failing server connection语音服务 Azure - 服务器连接失败
【发布时间】:2020-04-23 15:08:48
【问题描述】:

我开始使用微软提供的Cognitive Services。我对将synthesise 语音转换为音频文件的文本转语音特别感兴趣。

出于这个原因,为了测试它,我创建了 30 天免费试用订阅,并将订阅密钥粘贴到 Microsoft 提供的 Quickstart project 中。然而,当我运行简单代码时,出现以下错误:

语音合成已取消,内部服务器错误。网络套接字错误代码:1011 你更新订阅信息了吗?

我想知道为什么我昨天获取的订阅信息,还有29天到期,无法连接到服务器。

我已尝试联系 Microsoft 支持,但他们将相同的链接发回给我,指向快速入门项目的同一存储库。

【问题讨论】:

    标签: javascript azure text-to-speech


    【解决方案1】:

    我刚刚尝试使用此sample 进行试用订阅,效果很好。

    您可以尝试使用我的 API 密钥。

    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";
    

    【讨论】:

    • 是的,我今天尝试了我的代码,它终于可以工作了。我猜订阅密钥没有完全激活
    猜你喜欢
    • 1970-01-01
    • 2017-11-09
    • 2016-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-24
    相关资源
    最近更新 更多