Git Product home page Git Product logo

Comments (2)

hrfee avatar hrfee commented on June 2, 2024

Here's a full json file i made, this works for me.
{
"interactionModel": {
"languageModel": {
"invocationName": "sonos",
"intents": [

		{
			"name": "AMAZON.CancelIntent",
			"samples": []
		},
		{
			"name": "AMAZON.HelpIntent",
			"samples": []
		},
		{
			"name": "AMAZON.StopIntent",
			"samples": []
		},
		{
			"name": "FinishedIntent",
			"slots": [
				{
					"name": "Ending",
					"type": "ENDINGS"
				}
			],
			"samples": [
				"{Ending}",
				"I'm {Ending}"
			]
		},
		{
			"name": "AlbumIntent",
			"slots": [
				{
					"name": "AlbumName",
					"type": "AMAZON.MusicAlbum"
				},
				{
					"name": "Room",
					"type": "ROOMS"
				}
			],
			"samples": [
				"play album {AlbumName}",
				"play album {AlbumName} in {Room}",
				"play album {AlbumName} in the {Room}"
			]
		},
		{
			"name": "TrackIntent",
			"slots": [
				{
					"name": "TrackName",
					"type": "AMAZON.MusicRecording"
				},
				{
					"name": "Room",
					"type": "ROOMS"
				}
			],
			"samples": [
				"play the song {TrackName}",
				"play track {TrackName}",
				"play the song {TrackName} in the {Room}",
				"play the song {TrackName} in {Room}",
				"play track {TrackName} in {Room}",
				"play track {TrackName} in the {Room}"
			]
		},
		
		{
		  "name": "ArtistIntent",
		  "slots": [
			{
				"name": "ArtistName",
				"type": "AMAZON.MusicGroup"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}
			],
			"samples": [
				"play artist {ArtistName} in the {Room}",
				"play artist {ArtistName} in {Room}",
				"play artist {ArtistName}",
				"play {ArtistName} in the {Room}",
				"play {ArtistName} in {Room}",
				"play {ArtistName}"
			]
		},

		{
		  "name": "MusicRadioIntent",
		  "slots": [
			{
				"name": "ArtistName",
				"type": "AMAZON.MusicGroup"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}
		  ],
			"samples": [
				"play {ArtistName} radio in the {Room}",
				"play {ArtistName} radio in {Room}",
				"play {ArtistName} radio"
			]
		},

		{
		  "name": "PlayMoreByArtistIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"play more by this artist in the {Room}",
				"play more songs by this artist in the {Room}",
				"play more tracks by this artist in the {Room}",
				"play more music by this artist in the {Room}",
				"play more by this artist",
				"play more songs by this artist",
				"play more tracks by this artist",
				"play more music by this artist"
			]
		},
	  
		{
		  "name": "PlayMoreLikeTrackIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"play more like this in the {Room}",
				"play more songs like this in the {Room}",
				"play more tracks like this in the {Room}",
				"play more music like this in the {Room}",
				"play more like this",
				"play more songs like this",
				"play more tracks like this",
				"play more music like this"
			]
		},
		  
		{  
		  "name": "SiriusXMStationIntent",
		  "slots": [
			{
				"name": "Station",
				"type": "SXMSTATIONS"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"start sirius XM {Station} in the {Room}",
				"start sirius XM {Station}",
				"tune to sirius XM {Station} in the {Room}",
				"tune to sirius XM {Station}"
			]
		},
		  
		{  
		  "name": "SiriusXMChannelIntent",
		  "slots": [
			{
				"name": "Channel",
				"type": "SXMCHANNELS"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"start sirius XM channel {Channel} in the {Room}",
				"start sirius XM channel {Channel}",
				"tune to sirius XM channel {Channel} in the {Room}",
				"tune to sirius XM channel {Channel}"
			]
		},
		  
		{
		  "name": "PandoraMusicIntent",
		  "slots": [
			{
				"name": "Name",
				"type": "NAMES"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"tune to pandora {Name} in the {Room}",
				"tune to pandora {Name} in {Room}",
				"tune to pandora {Name}"
			]
		},
	   
		{
		  "name": "PandoraThumbsUpIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"give the current song in the {Room} a thumbs up",
				"give the current song a thumbs up in the {Room}",
				"give this song a thumbs up in the {Room}",
				"give the current song a thumbs up",
				"give this song a thumbs up"
			]
		},
		
		{
		  "name": "PandoraThumbsDownIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"give the current song in the {Room} a thumbs down",
				"give the current song a thumbs down in the {Room}",
				"give this song a thumbs down in the {Room}",
				"give the current song a thumbs down",
				"give this song a thumbs down"
			]
		},
		  
		{
		  "name": "PlayPresetIntent",
		  "slots": [
			{
				"name": "Preset",
				"type": "PRESETS"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"play preset {Preset}",
				"play the preset {Preset}"
			]
		},
	  
		{
		  "name": "PlaylistIntent",
		  "slots": [
			{
				"name": "Preset",
				"type": "PRESETS"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"playlist {Preset} in {Room}",
				"playlist {Preset} in the {Room}",
				"play playlist {Preset} in {Room}",
				"play playlist {Preset} in the {Room}",
				"start playlist {Preset} in {Room}",
				"start playlist {Preset} in the {Room}",
				"playlist {Preset}",
				"playlist {Preset}",
				"play playlist {Preset}",
				"play playlist {Preset}",
				"start playlist {Preset}",
				"start playlist {Preset}"
			]
		},
	  
		{
		  "name": "FavoriteIntent",
		  "slots": [
			{
				"name": "Preset",
				"type": "PRESETS"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"favorite {Preset} in {Room}",
				"favorite {Preset} in the {Room}",
				"play favorite {Preset} in {Room}",
				"play favorite {Preset} in the {Room}",
				"start favorite {Preset} in {Room}",
				"start favorite {Preset} in the {Room}",
				"favorite {Preset}",
				"favorite {Preset}",
				"play favorite {Preset}",
				"play favorite {Preset}",
				"start favorite {Preset}",
				"start favorite {Preset}"
			]
		},

		{
		  "name": "ChangeRoomIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"change room to {Room}",
				"change room to the {Room}"
			]
		},
		
		{
		  "name": "ChangeServiceIntent",
		  "slots": [
			{
				"name": "Service",
				"type": "SERVICES"
			}   
		  ],
			"samples": [
				"change music to {Service}",
				"change service to {Service}"
			]
		},
		
		{
		  "name": "ChangeRoomAndServiceIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			},   
			{
				"name": "Service",
				"type": "SERVICES"
			}   
		  ],
			"samples": [
				"change room to {Room} and music to {Service}",
				"change music to {Service} and room to {Room}",
				"change room to the {Room} and music to {Service}",
				"change music to {Service} and room to the {Room}",
				"change room to {Room} and service to {Service}",
				"change service to {Service} and room to {Room}",
				"change room to the {Room} and service to {Service}",
				"change service to {Service} and room to the {Room}"
			]
		},
		
		{
		  "name": "PauseIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"pause in the {Room}",
				"pause in {Room}",
				"pause the music in {Room}",
				"stop in the {Room}",
				"stop in {Room}",
				"stop playing in the {Room}",
				"stop playing in {Room}",
				"stop the music in {Room}",
				"pause",
				"pause the music",
				"stop",
				"stop the music"
			]
		},
		
		{
		  "name": "PauseAllIntent",
			"samples": [
				"pause all",
				"pause all the music",
				"stop all",
				"stop all the music"
			]
		},
	   
		{
		  "name": "ResumeIntent",
		  "slots": [
			 {
				"name": "Room",
				"type": "ROOMS"
			 }   
		   ],
			"samples": [
				"continue the {Room}",
				"continue in the {Room}",
				"continue the music in {Room}",
				"continue the music in the {Room}",
				"continue playing the {Room}",
				"continue playing in the {Room}",
				"continue playing the music in {Room}",
				"continue playing the music in the {Room}",
				"resume the {Room}",
				"resume in the {Room}",
				"resume the music in {Room}",
				"resume the music in the {Room}",
				"continue",
				"continue the music",
				"continue playing",
				"resume",
				"resume the music"
			]
		},
		
		{
		  "name": "ResumeAllIntent",
			"samples": [
				"resume all",
				"continue all",
				"continue playing all",
				"continue playing all the music"
			]
		},

		{
		  "name": "VolumeDownIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"turn it down in {Room}",
				"turn it down in the {Room}",
				"turn the volume down in {Room}",
				"turn the volume down in the {Room}",
				"turn down the volume in {Room}",
				"turn down the volume in the {Room}",
				"softer in {Room}",
				"softer in the {Room}",
				"quieter in {Room}",
				"quieter in the {Room}",
				"volume down in {Room}",
				"volume down in the {Room}",
				"lower volume in the {Room}",
				"lower volume in {Room}",
				"decrease volume in the {Room}",
				"decrease volume in {Room}",
				"turn it down",
				"turn the volume down",
				"turn down the volume",
				"softer",
				"quieter",
				"volume down",
				"lower volume",
				"decrease volume"
			]
		},
		
		{
		  "name": "VolumeUpIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"turn it up in {Room}",
				"turn it up in the {Room}",
				"turn the volume up in {Room}",
				"turn the volume up in the {Room}",
				"turn up the volume in {Room}",
				"turn up the volume in the {Room}",
				"louder in {Room}",
				"louder in the {Room}",
				"volume up in {Room}",
				"volume up in the {Room}",
				"raise volume in the {Room}",
				"raise volume in {Room}",
				"increase volume in the {Room}",
				"increase volume in {Room}",
				"turn it up",
				"turn the volume up",
				"turn up the volume",
				"louder",
				"volume up",
				"raise volume",
				"increase volume"
			]
		},

		{
		  "name": "SetVolumeIntent",
		  "slots": [
			{
				"name": "Percent",
				"type": "AMAZON.NUMBER"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}
		  ],
			"samples": [
				"set volume to {Percent} in {Room}",
				"set volume to {Percent} percent in {Room}",
				"set volume to {Percent} in the {Room}",
				"set volume to {Percent} percent in the {Room}",
				"set the volume to {Percent} in {Room}",
				"set the volume to {Percent} percent in {Room}",
				"set the volume to {Percent} in the {Room}",
				"set the volume to {Percent} percent in the {Room}",
				"change volume to {Percent} in {Room}",
				"change volume to {Percent} percent in {Room}",
				"change volume to {Percent} in the {Room}",
				"change volume to {Percent} percent in the {Room}",
				"change the volume to {Percent} in {Room}",
				"change the volume to {Percent} percent in {Room}",
				"change the volume to {Percent} in the {Room}",
				"change the volume to {Percent} percent in the {Room}",
				"turn it up to {Percent} in {Room}",
				"turn it up to {Percent} percent in {Room}",
				"turn it up to {Percent} in the {Room}",
				"turn it up to {Percent} percent in the {Room}",
				"turn it down to {Percent} in {Room}",
				"turn it down to {Percent} percent in {Room}",
				"turn it down to {Percent} in the {Room}",
				"turn it down to {Percent} percent in the {Room}",
				"set volume to {Percent}",
				"set volume to {Percent} percent",
				"set the volume to {Percent}",
				"set the volume to {Percent} percent",
				"change volume to {Percent}",
				"change volume to {Percent} percent",
				"change the volume to {Percent}",
				"change the volume to {Percent} percent",
				"turn it up to {Percent}",
				"turn it up to {Percent} percent",
				"turn it down to {Percent}",
				"turn it down to {Percent} percent"
			]
		},
	  
		{
		  "name": "NextTrackIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"go to next track in {Room}",
				"go to next track in the {Room}",
				"go to the next track in {Room}",
				"go to the next track in the {Room}",
				"skip to next track in {Room}",
				"skip to next track in the {Room}",
				"skip to the next track in {Room}",
				"skip to the next track in the {Room}",
				"skip in {Room}",
				"skip in the {Room}",
				"next in {Room}",
				"next in the {Room}",
				"next track in {Room}",
				"next track in the {Room}",
				"next song in {Room}",
				"next song in the {Room}",
				"skip this track in {Room}",
				"skip this track in the {Room}",
				"skip song in {Room}",
				"skip song in the {Room}",
				"skip this song in {Room}",
				"skip this song in the {Room}",
				"go to next track",
				"go to the next track",
				"skip to next track",
				"skip to the next track",
				"skip",
				"next",
				"next track",
				"next song",
				"skip this track",
				"skip song",
				"skip this song"
			]
		},
	  
		{
		  "name": "PreviousTrackIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"go to previous track in {Room}",
				"go to previous track in the {Room}",
				"go to the previous track in {Room}",
				"go to the previous track in the {Room}",
				"go to the last song in {Room}",
				"go to the last song in the {Room}",
				"go back in {Room}",
				"go back in the {Room}",
				"go back to the previous track in {Room}",
				"go back to the previous track in the {Room}",
				"last track in {Room}",
				"last track in the {Room}",
				"last song in {Room}",
				"last song in the {Room}",
				"previous track in {Room}",
				"previous track in the {Room}",
				"previous song in {Room}",
				"previous song in the {Room}",
				"go to previous track",
				"go to the previous track",
				"go to the last song",
				"go back",
				"go back to the previous track",
				"last track",
				"last song",
				"previous track",
				"previous song"
			]
		},

		{
		  "name": "ClearQueueIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"clear the queue in {Room}",
				"clear the queue in the {Room}",
				"clear queue in {Room}",
				"clear queue in the {Room}",
				"clear playlist in {Room}",
				"clear playlist in the {Room}",
				"clear the queue",
				"clear queue",
				"clear playlist"
			]
		},

	   
		{
		  "name": "WhatsPlayingIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"what's playing",
				"what song is this",
				"what band is this",
				"who's playing",
				"what am i hearing",
				"who is this",
				"what is this"
			]
		},

		{
		  "name": "MuteIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"mute in {Room}",
				"mute in the {Room}",
				"mute {Room}",
				"mute the {Room}",
				"mute"
			]
		},

		{
		  "name": "UnmuteIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			}   
		  ],
			"samples": [
				"unmute in {Room}",
				"unmute in the {Room}",
				"unmute {Room}",
				"unmute the {Room}",
				"unmute"
			]
		},

		{
		  "name":  "RepeatIntent",
		  "slots": [
			{
				"name": "Toggle",
				"type": "TOGGLES"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}
		  ],
			"samples": [
				"turn {Toggle} repeat in {Room}",
				"turn {Toggle} repeat in the {Room}",
				"turn repeat {Toggle} in {Room}",
				"turn repeat {Toggle} in the {Room}",
				"repeat {Toggle} in {Room}",
				"repeat {Toggle} in the {Room}",
				"turn {Toggle} repeat",
				"turn repeat {Toggle}",
				"repeat {Toggle}"
			]
		},

		{
		  "name":  "ShuffleIntent",
		  "slots": [
			{
				"name": "Toggle",
				"type": "TOGGLES"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}
		  ],
			"samples": [
				"turn {Toggle} shuffle in {Room}",
				"turn {Toggle} shuffle in the {Room}",
				"turn shuffle {Toggle} in {Room}",
				"turn shuffle {Toggle} in the {Room}",
				"shuffle {Toggle} in {Room}",
				"shuffle {Toggle} in the {Room}",
				"turn {Toggle} shuffle",
				"turn shuffle {Toggle}",
				"shuffle {Toggle}"
			]
		},

		{
		  "name":  "CrossfadeIntent",
		  "slots": [
			{
				"name": "Toggle",
				"type": "TOGGLES"
			},
			{
				"name": "Room",
				"type": "ROOMS"
			}
		  ],
			"samples": [
				"turn {Toggle} crossfade in {Room}",
				"turn {Toggle} crossfade in the {Room}",
				"turn crossfade {Toggle} in {Room}",
				"turn crossfade {Toggle} in the {Room}",
				"crossfade {Toggle} in {Room}",
				"crossfade {Toggle} in the {Room}",
				"turn {Toggle} crossfade",
				"turn crossfade {Toggle}",
				"crossfade {Toggle}"
			]
		},
		
		{
		  "name": "JoinGroupIntent",
		  "slots": [
			{
			  "name": "JoiningRoom",
			  "type": "ROOMS"
			},
			{
			  "name": "PlayingRoom",
			  "type": "ROOMS"
			}
		  ],
			"samples": [
				"join {JoiningRoom} to {PlayingRoom}",
				"join the {JoiningRoom} to {PlayingRoom}",
				"join {JoiningRoom} to the {PlayingRoom}",
				"join the {JoiningRoom} to the {PlayingRoom}"
			]
		},
		
		{
		  "name" : "UngroupIntent",
		  "slots" : [
			{
			  "name" : "Room",
			  "type" : "ROOMS"
			}
		  ],
			"samples": [
				"ungroup {Room}",
				"ungroup the {Room}",
				"isolate {Room}",
				"isolate the {Room}"
			]
		},
		
		{
		  "name" : "PlayInRoomIntent",
		  "slots" : [
			{
			  "name" : "Room",
			  "type" : "ROOMS"
			}
		  ],
			"samples": [
				"play in {Room}",
				"play in the {Room}",
				"to play in {Room}",
				"to play in the {Room}",
				"also play in {Room}",
				"also play in the {Room}"
			]
		},

		{
		  "name":  "LineInIntent",
		  "slots": [
			{
				"name": "Room",
				"type": "ROOMS"
			},
			{
				"name": "LineIn",
				"type": "ROOMS"
			}
		  ],
			"samples": [
				"{Room} to use line in",
				"set {Room} to line in",
				"set the {Room} to line in",
				"{Room} use line-in",
				"{Room} to use line-in",
				"set {Room} to line-in",
				"set the {Room} to line-in",
				"set {Room} line in to {LineIn}",
				"set the {Room} line in to {LineIn}",
				"set {Room} line in to the {LineIn}",
				"set the {Room} line in to the {LineIn}",
				"set {Room} line-in to {LineIn}",
				"set the {Room} line-in to {LineIn}",
				"set {Room} line-in to the {LineIn}",
				"set the {Room} line-in to the {LineIn}"
			]
		}
	  ]
	}
}
}

from echo-sonos.

CraigTorg avatar CraigTorg commented on June 2, 2024

Does this formatting changed in this .json file does it change the Lambda test code in the next steps of the instructions?

from echo-sonos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.