More out of interest than anything, but... why is the skill-sample-nodejs-audio-player demo library so large at 26Mb? It says that the skill needs "packaging" first... and it comes to:
2,400 files in 85 folders totalling 25.8Mb
But when I setup and clone another demo skill, like Fact-Skill or yes/no, it's 530k with 70 files in 21 folders. And that also uses AWS resources like Lambda, too.
What is it about an audio player that uses the other 25Mb and several thousand files?
Does Lambda already have the Alexa and AWS libs built in? Because this code seems to work just fine for the other demo skills without having to npm install. The size of the upload each time I deploy is also making it take more time on the rather poor 700Kb/sec rural broadband upload speed. So the lighter I can make the audio player, the better.
const Alexa = require('alexa-sdk'); const AWS = require('aws-sdk');
I feel I've missed something fundamental, here.
Is it simply that in this demo, the audio player skill is setup to be emulated locally?
Why does the audio player need to be npm install-ed?