Alexa skill SSML max length

你。 提交于 2019-12-10 12:37:06

问题


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

回答1:


From the JSON interface reference:

Response Format

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:

  • 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.


来源:https://stackoverflow.com/questions/36557053/alexa-skill-ssml-max-length

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!