我正在使用 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/