-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCubeRemote.xml
647 lines (646 loc) · 30.3 KB
/
CubeRemote.xml
1
<grammar version="1.0" xml:lang="fr-FR" mode="voice" root="ruleCubeRemote" xmlns="http://www.w3.org/2001/06/grammar" tag-format="semantics/1.0"> <rule id="ruleCubeRemote" scope="public"> <example>Appaire le cube</example><!--Format des commandes :CubeUrnL => 2 valeurs séparées par '¤' {Urn¤Url} - Les 2 valeurs sont obligatoires...CubeTag => Paires de valeurs {tag1¤valeur1¤Tag2¤Valeur2¤TagN¤ValeurN} séparées par '¤' - Non nécessaire sur certaines fonctions. - Les Tag étants des balise XML : <Tag1>Valeur1</Tag1> à passer à la requète SOAP.CubeAction => Paires de valeurs séparées par '¤' {CommandeCube¤RetourCube} -Avec {RetourCube} = Chaîne de retour de commande non obligatoire (Pour "Get" seulement).--> <tag>out.action=new Object();</tag> <item>Sarah</item> <item><!-- Item 4 (facultatif) politesse--> <item repeat="0-1"> <one-of> <item>met la</item> <item>fou la</item> <item>affiche la</item> <item>sélèctionne la</item> </one-of> </item><!--Item 1 (Début de phrase)--> <one-of> <!-- Pairing's actions --> <item>Désappaire <tag> out.action.ttsAction = "Le cube est désappairé"; out.action.CubeUrnL = "Registration:1¤/RegistrationService/control/"; out.action.CubeAction = "UnregisterSmartPhone"; </tag> </item> <item>Vérifie l'appairage <tag> out.action.CubeUrnL = "Registration:1¤/RegistrationService/control/"; out.action.ttsAction = "le cube est déja appairé"; out.action.CubeAction ="IsRegisteredSmartPhone"; </tag> </item> <item>Affiche le code <tag> out.action.ttsAction = "Le code d'appairage est affiché"; out.action.CubeUrnL = "Registration:1¤/RegistrationService/control/"; out.action.CubeAction = "RequestPairing"; </tag> </item> <item>Appaire <tag> out.action.ttsAction = "Le Cube est appairé"; out.action.CubeUrnL = "Registration:1¤/RegistrationService/control/"; out.action.CubeAction = "RegisterSmartPhone"; out.action.CubeTag = "pairingData¤Code_Appairage"; </tag> </item> <!-- Get's / Set's Functions --> <!-- Writing XML action's --> <item>Mémorise la chaîne <tag> out.action.ttsAction = "La chaîne x, est mémorisée"; out.action.CubeUrnL = "Channel-Selection:1¤/ChannelSelectionService/control/"; out.action.CubeAction = "GetSelectedChannel¤channelNumber¤channelListId¤locator"; out.action.SpecialAction = "saveChannel"; </tag> </item> <item>Supprime la chaîne <tag> out.action.ttsAction = "La chaîne x, est supprimée."; out.action.CubeUrnL = "Channel-Selection:1¤/ChannelSelectionService/control/"; out.action.CubeAction = "GetSelectedChannel¤channelNumber¤channelListId¤locator"; out.action.SpecialAction = "deleteChannel"; </tag> </item> <item>Réinitialise les chaînes <tag> out.action.ttsAction = "Toutes les chaînes sont effacées."; out.action.CubeUrnL = "dummy¤dummy"; out.action.CubeAction = "dummy"; out.action.SpecialAction = "deleteAll"; </tag> </item> <!-- Infos --><!-- <item>Liste les infos des chaînes <tag> out.action.ttsAction = "Les infos sont affichées"; out.action.CubeUrnL = "Channel-List:1¤/ChannelListService/control/"; out.action.CubeAction = "GetChannelListInfo"; </tag> </item>--> <item>Donne les details des chaînes <tag> out.action.ttsAction = "Les détails sont affichés"; out.action.CubeUrnL = "Channel-List:1¤/ChannelListService/control/"; out.action.CubeAction = "GetChannelListDetail"; out.action.CubeTag = "channelListId¤3d0a2a1"; </tag> </item> <item>Liste les infos des chaînes <tag> out.action.ttsAction = "Les infos sont affichées"; out.action.CubeUrnL = "Channel-List:1¤/ChannelListService/control/"; out.action.CubeAction = "GetChannelDetails"; out.action.CubeTag = "locators¤dvb://1.442.2329"; </tag> </item> <item>Quelle est la chaîne <tag> out.action.ttsAction = "La chaîne x, est affichée"; out.action.CubeUrnL = "Channel-Selection:1¤/ChannelSelectionService/control/"; out.action.CubeAction = "GetSelectedChannel¤channelNumber"; </tag> </item> <!-- Volumes --> <item>Coupe le son <tag> out.action.ttsAction = "Le son est coupé"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetMute"; out.action.CubeTag = "isMuted¤1"; </tag> </item> <item>Remet le son <tag> out.action.ttsAction = "Le son est remis"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetMute"; out.action.CubeTag = "isMuted¤0"; </tag> </item> <item>Quel est le volume <tag> out.action.ttsAction = "Le volume est à x %"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "GetVolumeState¤level"; </tag> </item> <item>Met le volume à un <!-- SARAH met le volume à 1 sur le cube --> <tag> out.action.ttsAction = "Le volume est mis à 1"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤0"; </tag> </item> <item>Met le volume à deux <tag> out.action.ttsAction = "Le volume est mis à 2"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤6"; </tag> </item> <item>Met le volume à trois <tag> out.action.ttsAction = "Le volume est mis à 3"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤10"; </tag> </item> <item>Met le volume à quatre <tag> out.action.ttsAction = "Le volume est mis à 4"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤16"; </tag> </item> <item>Met le volume à cinq <tag> out.action.ttsAction = "Le volume est mis a 5"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤19"; </tag> </item> <item>Met le volume à six <tag> out.action.ttsAction = "Le volume est mis à 6"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤23"; </tag> </item> <item>Met le volume à sept <tag> out.action.ttsAction = "Le volume est mis à 7"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤28"; </tag> </item> <item>Met le volume à huit <tag> out.action.ttsAction = "Le volume est mis à 8"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤33"; </tag> </item> <item>Met le volume à neuf <tag> out.action.ttsAction = "Le volume est mis à 9"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤38"; </tag> </item> <item>Met le volume à dix <!-- SARAH met le volume à 10 sur le cube --> <tag> out.action.ttsAction = "Le volume est mis à 10"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤41"; </tag> </item> <item>Met le volume à onze <tag> out.action.ttsAction = "Le volume est mis à 11"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤47"; </tag> </item> <item>Met le volume à douze <tag> out.action.ttsAction = "Le volume est mis à 12"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤50"; </tag> </item> <item>Met le volume à treize <tag> out.action.ttsAction = "Le volume est mis à 13"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤57"; </tag> </item> <item>Met le volume à quatorze <tag> out.action.ttsAction = "Le volume est mis à 14"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤60"; </tag> </item> <item>Met le volume à quinze <tag> out.action.ttsAction = "Le volume est mis à 15"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤64"; </tag> </item> <item>Met le volume à seize <tag> out.action.ttsAction = "Le volume est mis à 16"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤69"; </tag> </item> <item>Met le volume à dix-sept <tag> out.action.ttsAction = "Le volume est mis à 17"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤73"; </tag> </item> <item>Met le volume à dix-huit <tag> out.action.ttsAction = "Le volume est mis à 18"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤78"; </tag> </item> <item>Met le volume à dix-neuf <tag> out.action.ttsAction = "Le volume est mis à 19"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤82"; </tag> </item> <item>Met le volume a vingt <tag> out.action.ttsAction = "Le volume est mis à 20"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤87"; </tag> </item> <item>Met le volume à vingt et un <tag> out.action.ttsAction = "Le volume est mis à 21"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤91"; </tag> </item> <item>Met le volume à vingt-deux <tag> out.action.ttsAction = "Le volume est mis à 22"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤96"; </tag> </item> <item>Met le volume à fond <tag> out.action.ttsAction = "Le volume est mis à fond"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤100"; </tag> </item> <item>Met le volume à moitier <tag> out.action.ttsAction = "Le volume est mis à moitier"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤50"; </tag> </item> <item>Met le volume au quart <tag> out.action.ttsAction = "Le volume est mis au quart"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤24"; </tag> </item> <item>Met le volume au trois quart <tag> out.action.ttsAction = "Le volume est mis au trois quart"; out.action.CubeUrnL = "Volume:1¤/VolumeService/control/"; out.action.CubeAction = "SetVolumeLevel"; out.action.CubeTag = "level¤77"; </tag> </item> <!-- SendKey's Functions --> <!-- Volume --> <item>Monte le volume <tag> out.action.ttsAction = "Le volume est monté"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57347"; </tag> </item> <item>Baisse le volume <tag> out.action.ttsAction = "Le volume est baissé"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57348"; </tag> </item><!-- <item>Coupe le son <tag> out.action.ttsAction = "Le son est coupé"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57349"; </tag> </item> <item>Remet le son <tag> out.action.ttsAction = "Le son est remis"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57349"; </tag> </item>--> <!-- Remote touches --> <!-- Numerics --> <item>Touche 0 <tag> out.action.ttsAction = "Touche 0 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58112"; </tag> </item> <item>Touche 1 <tag> out.action.ttsAction = "Touche 1 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58113"; </tag> </item> <item>Touche 2 <tag> out.action.ttsAction = "Touche 2 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58114"; </tag> </item> <item>Touche 3 <tag> out.action.ttsAction = "Touche 3 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58115"; </tag> </item> <item>Touche 4 <tag> out.action.ttsAction = "Touche 4 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58116"; </tag> </item> <item>Touche 5 <tag> out.action.ttsAction = "Touche 5 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58117"; </tag> </item> <item>Touche 6 <tag> out.action.ttsAction = "Touche 6 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58118"; </tag> </item> <item>Touche 7 <tag> out.action.ttsAction = "Touche 7 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58119"; </tag> </item> <item>Touche 8 <tag> out.action.ttsAction = "Touche 8 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58120"; </tag> </item> <item>Touche 9 <tag> out.action.ttsAction = "Touche 9 envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58121"; </tag> </item> <!-- Navigation --> <item>Touche haut <tag> out.action.ttsAction = "Touche haut, envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57600"; </tag> </item> <item>Touche bas <tag> out.action.ttsAction = "Touche bas, envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57601"; </tag> </item> <item>Touche gauche <tag> out.action.ttsAction = "Touche gauche, envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57602"; </tag> </item> <item>Touche droite <tag> out.action.ttsAction = "Touche droite, envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57603"; </tag> </item> <item>Touche OK <tag> out.action.ttsAction = "Touche OK, envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57345"; </tag> </item> <item>Touche retour <tag> out.action.ttsAction = "Touche retour, envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57346"; </tag> </item> <item>Touche sortie <tag> out.action.ttsAction = "Touche sortie, envoyée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57357"; </tag> </item> <!-- Displays --> <item>Affiche le menu <tag> out.action.ttsAction = "Le menu est affiché"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤61184"; </tag> </item> <item>Affiche le guide <tag> out.action.ttsAction = "Le guide est affiché"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57355"; </tag> </item> <item>Affiche les infos <tag> out.action.ttsAction = "Les infos sont affichées"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤61185"; </tag> </item> <!-- Multimedias--> <item>lis <!-- " + Sur le cube" --> <tag> out.action.ttsAction = "Lecture en cours"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58368"; </tag> </item> <item>Met en pause <tag> out.action.ttsAction = "Le cube est en pause"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58369"; </tag> </item> <item>Avance <tag> out.action.ttsAction = "Avance en cours"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58372"; </tag> </item> <item>Recule <tag> out.action.ttsAction = "Lecture en cours"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤58374"; </tag> </item> <!-- Channels up/down --> <item>Chaine suivante <tag> out.action.ttsAction = "La chaine suivante est sélectionnée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57350"; </tag> </item> <item>Chaine précédente <tag> out.action.ttsAction = "La chaine précédente est sélectionnée"; out.action.CubeUrnL = "Remote-Control:1¤/RemoteControlService/control/"; out.action.CubeAction = "SendKey"; out.action.CubeTag = "key¤57351"; </tag> </item> <!-- SARAH's automatic channels managements --><!-- Automatic Generation § --> <!-- § Automatic Generation --> </one-of><!-- </item> --><!-- Item 2 (Choix du genre)--> <item repeat="0-1"> <one-of> <item>du</item> <item>le</item> <item>sur le</item> <item>de la télécommande du</item> </one-of> </item><!-- Item 3 (Fin de Phrase)--> <item> <item>Cube</item> </item> </item> <!-- Item 4 (facultatif) politesse--> <item repeat="0-1"> <one-of> <item>S'il te plait</item> <item>Si il te plait</item> <item>Merci</item> </one-of> </item> <tag>out.action._attributes.uri="http://127.0.0.1:8080/sarah/CubeRemote";</tag> </rule></grammar>