Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alexa skill SSML max length

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>"
}
like image 317
Nicolas Barrera Avatar asked Apr 11 '16 19:04

Nicolas Barrera


1 Answers

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.
like image 117
Jim Rush Avatar answered Sep 29 '22 16:09

Jim Rush