Simon, as a side note, in this thread there is an example of playing a local mp3 file in your action. I have not been able to utilize it yet since I use the cloud service and it seems to have difficulties playing an mp3 file hosted there rather than on a local machine behind SSL. I will tinker more tonight but maybe something to play with.
As a second note, anyone else have luck creating a custom Alexa command? I have successfully built a custom integration but it doesn’t like any url I send it. my command looks like this:
# INSERT YOUR URL
# This is what Alexa says when the Skill is launched. For this purpose i only insert the SSML audio tag
# with the Link to the mp3 file but you can also put some text before or after
# speech = "<audio src='https://4caqzf5u03zmorlpmwxwyfap8sspwj6p.ui.nabu.casa/local/doorbell.mp3'/>"
speech = "<audio src='https://cdn.electrictime.com/wp-content/uploads/[email protected]'/>"
handler_input.response_builder.speak(speech).set_card(
# INSERT YOUR TEXT
# This may be shown on an Echo Show, change "My Title" and "File is now played" to whatever you whant
SimpleCard(title="My Title", content="File is now played"))
return handler_input.response_builder.response