Update voice grammar

This commit is contained in:
Tavares André 2016-02-22 19:39:43 +01:00
parent 9b938fcfdb
commit 8321787773
3 changed files with 48 additions and 16 deletions

View File

@ -141,6 +141,19 @@
"Play my music", "Play my music",
"Listen to my music " "Listen to my music "
] ]
},
{
"actionid": "play",
"sourceid": "latestmovies",
"command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest movies|latest films)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest movies|latest films)",
"filters": [ "unplayed" ],
"sortBy": "datecreated",
"sortOrder": "Descending",
"commandtemplates": [
"Play my latest movies",
"Play latest films"
]
} }
] ]
}, },
@ -181,13 +194,14 @@
{ {
"actionid": "shuffle", "actionid": "shuffle",
"sourceid": "music", "sourceid": "music",
"command": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)", "command": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music|favorite songs)\\s?(?<ArtistName>.*)?\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?", "altcommand": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music|favorite songs)\\s?(?<ArtistName>.*)?",
"shuffle": true, "shuffle": true,
"commandtemplates": [ "commandtemplates": [
"Play music", "Play music",
"Play my music", "Play my music",
"Listen to my music " "Listen to my music ",
"shuffle my favorite songs"
] ]
} }
] ]
@ -221,8 +235,11 @@
{ {
"actionid": "play", "actionid": "play",
"sourceid": "latestepisodes", "sourceid": "latestepisodes",
"command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)", "command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest episodes)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)", "altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest episodes)",
"filters": [ "unplayed" ],
"sortBy": "datecreated",
"sortOrder": "Descending",
"commandtemplates": [ "Play my latest episodes" ] "commandtemplates": [ "Play my latest episodes" ]
} }
] ]

View File

@ -141,6 +141,19 @@
"Play my music", "Play my music",
"Listen to my music " "Listen to my music "
] ]
},
{
"actionid": "play",
"sourceid": "latestmovies",
"command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest movies|latest films)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest movies|latest films)",
"filters": [ "unplayed" ],
"sortBy": "datecreated",
"sortOrder": "Descending",
"commandtemplates": [
"Play my latest movies",
"Play latest films"
]
} }
] ]
}, },
@ -181,13 +194,14 @@
{ {
"actionid": "shuffle", "actionid": "shuffle",
"sourceid": "music", "sourceid": "music",
"command": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)", "command": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music|favorite songs)\\s?(?<ArtistName>.*)?\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?", "altcommand": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music|favorite songs)\\s?(?<ArtistName>.*)?",
"shuffle": true, "shuffle": true,
"commandtemplates": [ "commandtemplates": [
"Play music", "Play music",
"Play my music", "Play my music",
"Listen to my music " "Listen to my music ",
"shuffle my favorite songs"
] ]
} }
] ]
@ -221,8 +235,11 @@
{ {
"actionid": "play", "actionid": "play",
"sourceid": "latestepisodes", "sourceid": "latestepisodes",
"command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)", "command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest episodes)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)", "altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<source>latest episodes)",
"filters": [ "unplayed" ],
"sortBy": "datecreated",
"sortOrder": "Descending",
"commandtemplates": [ "Play my latest episodes" ] "commandtemplates": [ "Play my latest episodes" ]
} }
] ]

View File

@ -6,8 +6,6 @@ define(['paperdialoghelper'], function (paperDialogHelper) {
var commandgroups = getGrammarCommands(lang); var commandgroups = getGrammarCommands(lang);
/// <summary> Shuffle array. </summary> /// <summary> Shuffle array. </summary>
/// <param name="array"> The array. </param> /// <param name="array"> The array. </param>
/// <returns> array </returns> /// <returns> array </returns>