Is it possible to tell Amazon Echo (using SSML) to play an mp3 file from a specific offset?
How to play an mp3 file from an offset in Amazon Echo
2.8k views Asked by Ranjit Iyer At
2
There are 2 answers
0
On
I confirm, self-signed certificates cannot be used. I have my skill server accessible in a publicly available address with self-signed certificates. Now I need to ask Amazon to play my mp3 file stored in that same machine and it forces me to change the certificates. I used letsencrypt and it works fine
It is not possible to do this using the current APIs. As shown in the documentation for the SSML tag, there is only one possible attribute which can be set on this tag, which is
src. Note that there are also requirements and limitations to the source that can be specified:It goes on to say this about using the audio tag:
As described in this example, the given mp3 will simply be played in its entirety at the given point in the dialog, with no other configuration available. To accomplish the functionality you're desiring, you would need to dynamically create a new MP3 beginning at your desired timestamp, which complies with the requirements in the first block quote, and serve that file with your response.