question

TotallyNotAlena avatar image
TotallyNotAlena asked ·

Error when listening to Service Simulator for RADIO SKILL after following default template

Hi, I've followed the set up for a radio streaming skill using the files and instructions from the alexa repo on Github. https://github.com/Acrylami/skill-sample-nodejs-audio-player/tree/mainline/single-stream

Everything has gone perfectly except now after deploying the skill, I attempt to listen to the successful output which appears fine with no errors but it produces this error:

Error: The audio could not be loaded, either because the server or network failed or because the format is not supported.

I am getting my audio stream from https://tunein.com/radio/Radio-Vocaloid-s198764/ which is https as required. Anyone know why my skill fell at the final hurdle? I know with mp3 files you must encode them in a certain way but I have no way of doing this for a radio site.

Thanks!

alexa skills kitaudioservice simulatoraudioplayer
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

TotallyNotAlena avatar image
TotallyNotAlena answered ·

I found this thread about another user trying to create a radio skill from tunein and is the problem the URL is not permitted? If so what are the conditions for an allowed host URL?

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jenn@amazon avatar image
Jenn@amazon answered ·

The link to the audio needs to be to the actual audio stream, not to a station page or player.

For example:

http://knhc-ice.streamguys1.com/live

http://kut-hls.streamguys1.com:80/kut1/playlist.m3u8

From the Docs:

The supported formats for the audio file include AAC/MP4, MP3, HLS, PLS and M3U. Bitrates: 16kbps to 384 kbps.

AudioPlayer Play docs

1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Note that the stream must be https for the AudioPlayer.

0 Likes 0 ·