Azure 语音服务 CLI,使用 SSML 错误代码 : 1007

标签 azure command-line-interface ssml

我正在使用 Azure 语音服务 CLI 来合成 SSML 文件,但出现以下错误

CANCELED: Reason=Error
CANCELED: ErrorCode=ConnectionFailure
CANCELED: ErrorDetails=Connection was closed by the remote host. Error code: 1007. Error details: Data at the root level is invalid. Line 1, position 1. USP state: 3. Received audio size: 0bytes.
CANCELED: Did you update the subscription info?

我可以将合成与文本输入一起使用,并且它可以工作。

这是我使用的 SSML 文件(只是文档中的副本):

<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
    <voice name="en-US-AriaRUS">
        This is the text that is spoken.
    </voice>
</speak>

我的帐户正在使用“F0”。

最佳答案

您需要更正说话节点。您错过了 xmlns:mstts="http://www.w3.org/2001/mstts"

<speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="en-US">
    <voice name="en-US-AriaRUS">
        <prosody rate="0%" pitch="0%">
        This is the text that is spoken.
        </prosody>
    </voice>
</speak>

关于Azure 语音服务 CLI,使用 SSML 错误代码 : 1007,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62905290/

相关文章:

azure - Pulumi 获取静态 Web 应用程序的部署 token

java - 如何从 Groovy 的 CliBuilder 获取正在运行的命令(或 jar、脚本)的名称?

git - rebase 后手动 merge 的 pull 请求不会在 Github 上显示为已 merge

c# - C# SAPI 可以说 SSML 字符串吗?

python - 将 SSML 和 Python 与 Azure 语音结合使用

xml - 使用 Powershell 更新 Azure 服务配置文件

Azure 存储 - 处理跨分区更新

azure - 在 Microsoft 帐户中创建应用程序的步骤

python - 将 .txt 中的行读取到批处理文件中并作为参数传递到命令行?

python - 如何更改 Alexa 说话速度?