﻿<?xml version="1.0" encoding="utf-8"?>
<VoiceCommands version="0.944">
  <commandGroup name="Random Genre" enabled="True">
    <command id="274" name="Random Genre" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
      <action>
        <cmdType>XBMC.Send</cmdType>
        <cmdString>queryvideodatabase(select c00,c01 from movie where c14='{1}' order by random() Limit 1 )</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <cmdString>{LastResult}</cmdString>
        <cmdRepeat>0</cmdRepeat>
      </action>
      <action>
        <cmdType>Results.RegEx</cmdType>
        <cmdString>&lt;field&gt;(.*?)&lt;/field&gt;</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.Stop</cmdType>
        <cmdString />
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <cmdString>How about,{match.1} .  | Today's feature is: {match.1} . | I would recommend,{match.1} .</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.Pause</cmdType>
        <cmdString>1000</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <cmdString>{match.2}</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.TellVox</cmdType>
        <cmdString>Find Movie {match.1}</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <phrase optional="true">What is,  What is the, What movie , What do you, Could you</phrase>
      <phrase optional="true">recommend, featured, recommended, feature, your recommendation, do you recommend, recommend a, a good</phrase>
      <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone">XbmcPayloads\xbmcVideoGenres.xml</payloadFromXML>
      <phrase optional="true">movie</phrase>
    </command>
  </commandGroup>
</VoiceCommands>