Alexa Media Playback Skill

alexa alexa-skills-kit alexa-skill

468 просмотра

3 ответа

539 Репутация автора

Is it possible to create a custom Alexa skill that provides audio playback? I would like to create a skill to play music from a currently unsupported music service. I've search through the API documentation, but have been unsuccessful in finding any mention of it.

Автор: Jeff Hutchins Источник Размещён: 17.07.2016 10:48

Ответы (3)


1 плюс

1956 Репутация автора

Amazon supports rich media playback. The announcement for this with lots of details is here.

For simpler stuff, there is another feature that lets you provide audio playback called Speech Synthesis Markup Language. Follow that link to a description of how to use it.

For SSML, in summary, you can supply up to 5 MP3 files in a very specific format with a total of 90 seconds worth of playback audio. This probably isn't good enough to do what you want (unless you like very short songs) but it is what is supported by the platform and the only way, currently, for an Alexa skill to play anything.

Автор: Joseph Jaquinta Размещён: 18.07.2016 02:25

2 плюса

880 Репутация автора

Решение

Amazon released the Audio Streaming API about two weeks ago. Now you can use playlists. The SDKs unfortunately have not caught up yet, so for now you have to roll your own JSON response.

ASK Streaming

Автор: Bela Vizy Размещён: 14.09.2016 02:17

1 плюс

184 Репутация автора

Alexa currently has a audio player interface that may fit your needs.

It can launch the normal audio player with a specified audio file, and album image.

Автор: Raymond Peng Размещён: 05.01.2019 05:10
32x32