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",
"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",
"sourceid": "music",
"command": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?",
"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|favorite songs)\\s?(?<ArtistName>.*)?",
"shuffle": true,
"commandtemplates": [
"Play music",
"Play my music",
"Listen to my music "
"Listen to my music ",
"shuffle my favorite songs"
]
}
]
@ -221,8 +235,11 @@
{
"actionid": "play",
"sourceid": "latestepisodes",
"command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)",
"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?(?<source>latest episodes)",
"filters": [ "unplayed" ],
"sortBy": "datecreated",
"sortOrder": "Descending",
"commandtemplates": [ "Play my latest episodes" ]
}
]
@ -271,7 +288,7 @@
"sourceid": "livetv",
"menuid": "series",
"command": "(?<action>show|display|go to|view)\\s?(?<determiner1>my|me)?\\s?(?<source>Live tv series)",
"commandtemplates": ["Show live tv series"]
"commandtemplates": [ "Show live tv series" ]
}
]
},

View File

@ -141,6 +141,19 @@
"Play 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",
"sourceid": "music",
"command": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>shuffle)\\s?(?<determiner1>my|me)?\\s?(?<source> music)\\s?(?<ArtistName>.*)?",
"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|favorite songs)\\s?(?<ArtistName>.*)?",
"shuffle": true,
"commandtemplates": [
"Play music",
"Play my music",
"Listen to my music "
"Listen to my music ",
"shuffle my favorite songs"
]
}
]
@ -221,8 +235,11 @@
{
"actionid": "play",
"sourceid": "latestepisodes",
"command": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)\\s?(?<deviceaction>on device|to device)\\s?(?<Devicename>.*)",
"altcommand": "(?<action>play)\\s?(?<determiner1>my|me)?\\s?(?<text>latest episodes)",
"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?(?<source>latest episodes)",
"filters": [ "unplayed" ],
"sortBy": "datecreated",
"sortOrder": "Descending",
"commandtemplates": [ "Play my latest episodes" ]
}
]
@ -271,7 +288,7 @@
"sourceid": "livetv",
"menuid": "series",
"command": "(?<action>show|display|go to|view)\\s?(?<determiner1>my|me)?\\s?(?<source>Live tv series)",
"commandtemplates": ["Show live tv series"]
"commandtemplates": [ "Show live tv series" ]
}
]
},

View File

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