amazon web services - Alexa SSML not playing -
i trying ask , tried dummy example ssml. using amazon lambda , python. if test code lambda console expected output:
{ "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 go alexa service simulator , try request, text in output speech gone, "listen" button in console disabled , if try on echo, doesn't play anything:
{ "version": "1.0", "response": { "outputspeech": { "type": "ssml" }, "card": { "content": "three.", "title": "dice", "type": "simple" }, "shouldendsession": true } }
if copy/paste ssml <speak><audio src='https://s3.amazonaws.com/aws-website-resources-1183x/dice-die-roll.mp3' />three</speak>
voice simulator can play , played expected. i've converted mp3 file using ffmpeg: ffmpeg -y -i a.mp3 -ar 16000 -ab 48k -codec:a libmp3lame -ac 1 output.mp3
, understand amazon's s3 should trusted, may problem? i've tried using single , double quotes in ssml , tried escaping quotes no avail. knows should into?
dumb mistake. output should in ssml
instead of text
.
"outputspeech": { "ssml": "<speak><audio src='https://s3.amazonaws.com/aws-website-resources-1183x/dice-die-roll.mp3' />three</speak>", "type": "ssml" },
Comments
Post a Comment