Alexa技能SSML最大长度 [英] Alexa skill SSML max length
本文介绍了Alexa技能SSML最大长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Amazon Echo Alexa技能JSON响应中 SSML
属性的最大长度或限制是多少?
What is the maximum length, or limits of, the SSML
attribute in an Amazon Echo Alexa skill JSON response?
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>This output speech uses SSML.</speak>"
}
推荐答案
来自 JSON接口参考:
响应格式
本节介绍了服务返回的响应格式。 Alexa技能的服务必须以JSON格式发送其响应。
This section documents the format of the response that your service returns. The service for an Alexa skill must send its response in JSON format.
请注意响应的以下大小限制:
Note the following size limitations for the response:
- outputSpeech响应不能超过8000个字符。
- 卡中包含的所有文本不能超过8000个字符。
这包括标题,内容,文本和图像URL。 - 图像URL
(smallImageUrl或largeImageUrl)不能超过2000个字符。 - AudioPlayer的audioItem.stream中包含的令牌.Play指令不能超过1024个字符。
- AudioPlayer.Play指令的audioItem.stream中包含的网址不能超过8000个字符。
- 响应的
总大小不能超过24 KB。
- The outputSpeech response cannot exceed 8000 characters.
- All of the text included in a card cannot exceed 8000 characters. This includes the title, content, text, and image URLs.
- An image URL (smallImageUrl or largeImageUrl) cannot exceed 2000 characters.
- The token included in an audioItem.stream for the AudioPlayer.Play directive cannot exceed 1024 characters.
- The url included in an audioItem.stream for the AudioPlayer.Play directive cannot exceed 8000 characters.
- The total size of your response cannot exceed 24 kilobytes.
这篇关于Alexa技能SSML最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文