alexa-samples / skill-sample-nodejs-audio-player

An Alexa Skill Sample showing how to play long form audio in 3P-skills
Other
470 stars 319 forks source link

I am unable to play this skill on the simulator #55

Closed avaadi closed 6 years ago

avaadi commented 7 years ago

Hi,

I am unable to play this audio on the simulator.

It gives me a message "Sorry, this skill is not supported on this device".

It seems the audioplayerinterface is undefined. How do I get rid of this ?

var audioPlayerInterface = ((((event.context || {}).System || {}).device || {}).supportedInterfaces || {}).AudioPlayer; if (audioPlayerInterface === undefined) {

sebsto commented 7 years ago

"The service simulator does not support testing the AudioPlayer directives or requests."

https://developer.amazon.com/docs/custom-skills/audioplayer-interface-reference.html#directives

You need to test from a real device instead

Ole73 commented 6 years ago

I could run even audio skills on simulator by replacing lines 20-26 in index.js just by alexa.execute();

sebsto commented 6 years ago

The skill will run but no audio will play as the web simulator does not have a component to simulate the on-device audio player. A physical device is needed to test audio skills.