From e63a730e11278dc15f509e322e295837b8874785 Mon Sep 17 00:00:00 2001 From: David Germiquet Date: Thu, 7 Mar 2024 19:10:41 -0500 Subject: [PATCH] Fix json --- interaction_models/en.json | 299 ++++++++++++++++++++++++++++++++++--- 1 file changed, 275 insertions(+), 24 deletions(-) diff --git a/interaction_models/en.json b/interaction_models/en.json index 292a8c9..bfa0447 100644 --- a/interaction_models/en.json +++ b/interaction_models/en.json @@ -23,8 +23,7 @@ "play my library", "play songs from my library", "shuffle my library", - "shuffle my music", - "play my playlist" + "shuffle my music" ] }, { @@ -139,19 +138,38 @@ ] }, { - "name": "AskSonicPlayPlayListIntent", + "name": "AskSonicPlayAlbumIntent", "slots": [ { - "name": "playlist", + "name": "album", "type": "AMAZON.MusicAlbum", "samples": [ - "{playlist}" + "{album}" ] + }, + { + "name": "artist", + "type": "AMAZON.MusicGroup" + } + ], + "samples": [ + "play album {album} by {artist}", + "play album {album}", + "play the album {album} by {artist}", + "play the album {album}", + "play the {artist} album {album}" + ] + }, + { + "name": "AskSonicPlayPlayListIntent", + "slots": [ + { + "name": "playlist", + "type": "AMAZON.MusicAlbum" } ], "samples": [ - "open the playlist {playlist}", - "play the playlist {playlist}" + "Play the playlist {playlist}" ] } ], @@ -187,18 +205,25 @@ ] }, { - "name": "AskSonicPlayPlayListIntent", + "name": "AskSonicPlayAlbumIntent", "confirmationRequired": false, "prompts": {}, "slots": [ { - "name": "playlist", + "name": "album", "type": "AMAZON.MusicAlbum", "confirmationRequired": false, "elicitationRequired": true, "prompts": { - "elicitation": "Elicit.Slot.816060946300.1349749939239" + "elicitation": "Elicit.Intent-AskSonic.IntentSlot-Album" } + }, + { + "name": "artist", + "type": "AMAZON.MusicGroup", + "confirmationRequired": false, + "elicitationRequired": false, + "prompts": {} } ] } @@ -223,31 +248,257 @@ "value": "What album should I play?" } ] - }, - { - "id": "Confirm.Intent.1406286725120", - "variations": [ - { - "type": "PlainText", - "value": "What playlist do you want?" - } - ] - }, + } + ] + } +}{ + "interactionModel": { + "languageModel": { + "invocationName": "sub sonic", + "intents": [ + { + "name": "AMAZON.CancelIntent", + "samples": [] + }, + { + "name": "AMAZON.HelpIntent", + "samples": [] + }, + { + "name": "AMAZON.StopIntent", + "samples": [] + }, + { + "name": "AskSonicShuffleLibraryIntent", + "slots": [], + "samples": [ + "play music", + "play my library", + "play songs from my library", + "shuffle my library", + "shuffle my music" + ] + }, + { + "name": "AMAZON.NavigateHomeIntent", + "samples": [] + }, + { + "name": "AMAZON.PauseIntent", + "samples": [] + }, + { + "name": "AMAZON.ResumeIntent", + "samples": [] + }, + { + "name": "AMAZON.NextIntent", + "samples": [] + }, + { + "name": "AMAZON.PreviousIntent", + "samples": [] + }, + { + "name": "AMAZON.StartOverIntent", + "samples": [] + }, + { + "name": "AskSonicTrackInformationIntent", + "slots": [], + "samples": [ + "what is currently playing", + "what is playing right now", + "what is the current song", + "what is the name of this song", + "what is this", + "what song is playing", + "what song is this", + "what song", + "what's playing", + "what's this song", + "who is this by", + "who sings this" + ] + }, + { + "name": "AskSonicDetailedTrackInformationIntent", + "slots": [], + "samples": [ + "details about this song", + "what album is this song from", + "what album" + ] + }, + { + "name": "AskSonicStarIntent", + "slots": [], + "samples": [ + "favorite this song", + "heart this song", + "like this song", + "love this song", + "star this song", + "star this" + ] + }, + { + "name": "AskSonicStarPreviousIntent", + "slots": [], + "samples": [ + "favorite the last song", + "heart the last song", + "like the last song", + "love the last song", + "star the last song", + "star the previous song" + ] + }, + { + "name": "AskSonicPlayArtistIntent", + "slots": [ + { + "name": "artist", + "type": "AMAZON.MusicGroup", + "samples": [ + "{artist}" + ] + } + ], + "samples": [ + "play artist {artist}", + "play music by {artist}", + "play songs by {artist}", + "play the artist {artist}" + ] + }, + { + "name": "AskSonicListArtistAlbumsIntent", + "slots": [ + { + "name": "artist", + "type": "AMAZON.MusicGroup", + "samples": [ + "{artist}" + ] + } + ], + "samples": [ + "tell me albums by {artist}", + "list albums by {artist}", + "list {artist} albums", + "what albums does {artist} have" + ] + }, + { + "name": "AskSonicPlayAlbumIntent", + "slots": [ + { + "name": "album", + "type": "AMAZON.MusicAlbum", + "samples": [ + "{album}" + ] + }, + { + "name": "artist", + "type": "AMAZON.MusicGroup" + } + ], + "samples": [ + "play album {album} by {artist}", + "play album {album}", + "play the album {album} by {artist}", + "play the album {album}", + "play the {artist} album {album}" + ] + }, + { + "name": "AskSonicPlayPlayListIntent", + "slots": [ + { + "name": "playlist", + "type": "AMAZON.MusicAlbum" + } + ], + "samples": [ + "Play the playlist {playlist}" + ] + } + ], + "types": [ + { + "name": "AMAZON.MusicAlbum", + "values": [ + { + "name": { + "value": "Yellowcard" + } + } + ] + } + ] + }, + "dialog": { + "intents": [ + { + "name": "AskSonicPlayArtistIntent", + "confirmationRequired": false, + "prompts": {}, + "slots": [ + { + "name": "artist", + "type": "AMAZON.MusicGroup", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Intent-AskSonic.IntentSlot-Artist" + } + } + ] + }, + { + "name": "AskSonicPlayAlbumIntent", + "confirmationRequired": false, + "prompts": {}, + "slots": [ + { + "name": "album", + "type": "AMAZON.MusicAlbum", + "confirmationRequired": false, + "elicitationRequired": true, + "prompts": { + "elicitation": "Elicit.Intent-AskSonic.IntentSlot-Album" + } + }, + { + "name": "artist", + "type": "AMAZON.MusicGroup", + "confirmationRequired": false, + "elicitationRequired": false, + "prompts": {} + } + ] + } + ], + "delegationStrategy": "ALWAYS" + }, + "prompts": [ { - "id": "Elicit.Slot.490590561974.1634588788595", + "id": "Elicit.Intent-AskSonic.IntentSlot-Artist", "variations": [ { "type": "PlainText", - "value": "what is the playlist you want?" + "value": "What artist should I play?" } ] }, { - "id": "Elicit.Slot.816060946300.1349749939239", + "id": "Elicit.Intent-AskSonic.IntentSlot-Album", "variations": [ { "type": "PlainText", - "value": "what is the playlist?" + "value": "What album should I play?" } ] }