gpt4 book ai didi

xml - Microsoft Azure TTS 认知服务语音限制问题

转载 作者:行者123 更新时间:2023-12-03 00:04:12 27 4
gpt4 key购买 nike

我刚开始学习 Microsoft Azure 的文本转语音 (TTS) 的认知服务。我成功地使用 AzureTTS 服务将给定文本转换为音频文件。当我有一个语音时它工作得很好> 我的 SSML XML 文档中的元素。工作 SSML 的示例是:

<speak version="1.0" xml:lang="en-US">
<voice xml:lang="en-US" xml:gender="Male" name="en-US-Jessa24kRUS">
Hello, this is my sample text to convert into audio?
</voice>
</speak>

但是,当我有多个语音标签(基于性别)时,它会导致错误。它的SSML是:

<speak version="1.0" xml:lang="en-US">
<voice xml:lang="en-US" xml:gender="Male" name="en-US-Guy24kRUS"> What’s your name? </voice>
<voice xml:lang="en-US" xml:gender="Female" name="en-US-Jessa24kRUS"> My name is Cindy Smith. Do you know John Silver?</voice>
<voice xml:lang="en-US" xml:gender="Male" name="en-US-Guy24kRUS"> John and I are old friends. </voice>
<voice xml:lang="en-US" xml:gender="Female" name="en-US-Jessa24kRUS"> John just joined our company as a salesperson. </voice>
<voice xml:lang="en-US" xml:gender="Male" name="en-US-Guy24kRUS"> That’s good news. John has been a salesperson for chemical products for many years. </voice>
<voice xml:lang="en-US" xml:gender="Female" name="en-US-Jessa24kRUS"> I head he really likes his new job.</voice>
</speak>

错误是:

Response status code does not indicate success: 400 (SSML must contain a maximum of 5 voice elements. Actual 6.).

如果有人解释为什么它限制我使用五个 语音标签,而 documentation 中没有提到任何限制,这对我会有很大帮助。 .

最佳答案

由于延迟,这是已知设置。我们已经意识到并正在努力消除这一限制。希望我们能在本周内完成修复和部署,如果顺利的话,我们可能会更早完成。

关于xml - Microsoft Azure TTS 认知服务语音限制问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60021762/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com