Alexa will send the ContentId and the skill responds with the stream URI. Initiate - is sent when Alexa is ready for immediate playback of content obtained using a GetPlayableContent request.If no entry can be found, an error message needs to be returned. If a user says: “Alexa, play It’s my life by Bon Jovi on music skill name” your skill will need to return the ContentId of that track as listed in your Amazon.MusicRecording catalog. GetPlayableContent - this request is sent when a user requests content to be played from your skill.There are 4 types of requests that are mandatory for any music skill: Save the upload id, you’ll need it later to check the status of the upload. Now let’s upload the artists.json file: $ ask api upload-catalog -c YOUR-ARTISTS-CATALOG-ID-HERE -f. Replace the YOUR-SKILL-ID-HERE and YOUR-ARTISTS-CATALOG-ID-HERE with your skill and artist catalog id values. $ ask api associate-catalog-with-skill -s YOUR-SKILL-ID-HERE -c YOUR-ARTISTS-CATALOG-ID-HERE Save the catalog id and associate it to your Alexa Skill. Deploy: $ ask-cli deploy Step 7 - upload the catalog files to Alexaįirst, let’s create the artists catalog: $ ask api create-catalog -catalog-type AMAZON.MusicGroup -catalog-title catalog-artists -catalog-usage ask/config.template file with your skill id and lambda ARN. Copy the Lambda’s ARN (from the upper right corner: ARN - arn:aws:lambda:us-east-1:*:function:MusicCloudLambda) and go back to your Alexa Skill -> Build -> Endpoint and paste it into the Default endpoint field.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |