Monday, 13 March 2017

Alexa AudioPlayer Skill: Play audio by asking by track title

I'm relatively new to working with Alexa skills and am looking for assistance.

Using the example for the Node.js AudioPlayer for Alexa (https://github.com/alexa/skill-sample-nodejs-audio-player) you can create a list of podcasts to play in order. The only way to invoke playing a podcast is using play 'next' or 'previous' commands to navigate the list.

Does anyone have an example on how to play audio from sources in AudioAssets.js by asking by title? For example, I have .pls files for radio stations I'd like to play. In AudioAssets.js, I have the radio station name in 'title' and the .pls link in 'url. This works with the sample code. If 'title' = 'My Favorite Radio Station', how do I invoke the skill by saying, "Alexa, ask AudioPlayer to play title My Favorite Radio Station?

I'm learning a lot from playing with this skill, but I'm not advanced enough to figure this out. Any guidance would be greatly appreciated.



via Keith Fenske

No comments:

Post a Comment