The Amazon Echo Dot, Google Home Mini, etc are inexpensive ways to listen to streaming radio without the need for interacting with a screen. The Echo can be used with Skills to make it easy to accomplish a particular task. Though in theory, radiosai is available on tunein and it should be possible to listen via tunein, of late, it doesn't seem to work. Alexa says, "I can't listen by genre on Tunein". So, tried to make an official Radiosai skill.
There was already a Radio Sai skill, but that one was missing AfriStream and AsiaStream. So, decided to try to implement this skill, with some improvements, as an official radiosai skill.
Changes in the user interface - the screenshots given here are no longer similar to Amazon's AWS console or the Skills console. Instead of uploading the sample utterances as a text file, I manually created the utterances in the Skill console using the wizard. Also added some confirmation before playing each stream, like
There was already a Radio Sai skill, but that one was missing AfriStream and AsiaStream. So, decided to try to implement this skill, with some improvements, as an official radiosai skill.
Changes in the user interface - the screenshots given here are no longer similar to Amazon's AWS console or the Skills console. Instead of uploading the sample utterances as a text file, I manually created the utterances in the Skill console using the wizard. Also added some confirmation before playing each stream, like
var message = 'Playing Bhajan Stream.'; this.response.speak(message); this.attributes['stream'] = 'BhajanStream'; controller.play.call(this);
and also added a stop call to the AudioPlayer -
'AMAZON.CancelIntent' : function () { // adding the line below to stop the audio player controller.stop.call(this); ////////////// var message = 'Good bye.'; this.response.speak(message); this.emit(':responseReady'); }
It looks like only the playModeIntentHandlers are active - the others don't seem to be called. Have submitted for being made available to the public.
Edit: Update May 11 -
1. Bug fixes by the owner of this repository, looks like the SDK had some changes so the zip file needed to be changed.
2. How to build an Alexa audio streaming skill from a template - YouTube video - lots of similar resources available
3. Audio player skill sample from Amazon, for multiple streams.
No comments:
Post a Comment