Alexa SSML not playing

I am trying to log in to ASK and I just tried the dummy example with SSML. I am using Amazon Lambda and Python. If I test my code from the Lambda console, I get the expected result:

{
  "version": "1.0",
  "response": {
    "outputSpeech": {
      "text": "<speak><audio src='https://s3.amazonaws.com/aws-website-resources-1183x/dice-die-roll.mp3' />Three</speak>",
      "type": "SSML"
    },
    "shouldEndSession": true,
    "card": {
      "content": "Three.",
      "type": "Simple",
      "title": "Dice"
    }
  }
}

When I go to the Alexa service simulator and try any request, the text in the output speech has disappeared, the “Listen” button on the console is disabled, and if I try it in Echo, it will not play anything:

{
  "version": "1.0",
  "response": {
    "outputSpeech": {
      "type": "SSML"
    },
    "card": {
      "content": "Three.",
      "title": "Dice",
      "type": "Simple"
    },
    "shouldEndSession": true
  }
}

/ SSML <speak><audio src='https://s3.amazonaws.com/aws-website-resources-1183x/dice-die-roll.mp3' />Three</speak> , , , . mp3 , ffmpeg: ffmpeg -y -i a.mp3 -ar 16000 -ab 48k -codec:a libmp3lame -ac 1 output.mp3, , Amazon S3 , ? SSML, . - , ?

+4
1

. ssml text.

"outputSpeech": {
      "ssml": "<speak><audio src='https://s3.amazonaws.com/aws-website-resources-1183x/dice-die-roll.mp3' />Three</speak>",
      "type": "SSML"
    },
+7

Source: https://habr.com/ru/post/1652271/


All Articles