Hi Jitterjames and Kalle,
Thanks for your quick replies.
@kalle, that would have been awesome should it work, but like Jitter james pointed out, it would not return the actual movie name.
@jutterjames, thanks for your example but I already knew that, as I checked the "whats song is this", "what album is this" etc ... but it's not really what I want.
I did make a cool command with it though to give me a recap of the movie that is currently playing :
<VoiceCommands version="0.851">
<commandGroup name="XBMC Get Movie Info" enabled="True">
<command name="Get Movie Info" enabled="true" confirm="False" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XBMC.Send</cmdType>
<cmdString>getcurrentlyplaying</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>Title:(.*)</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<cmdString>You are currently watching {match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>What movie is this</phrase>
</command>
<command name="Get Movie Info long" enabled="true" confirm="False" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XBMC.Send</cmdType>
<cmdString>getcurrentlyplaying</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>Title:(.*)</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<cmdString>You are currently watching {match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>Director:(.*)</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<cmdString>directed by {match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>Year:(.*)</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<cmdString>with it's cinema release in {match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>Studio:(.*)</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<cmdString>by {match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>Title:(.*)</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<cmdString>Enjoy {match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>movie info, recap, movie recap</phrase>
</command>
</commandGroup>
</VoiceCommands>
The first one just tells me what movie is currently playing by name and second one tells me in a nice way what the movie name is, directed by, cinema release, etc ...
So yeah it's really fun to play with those commands and to read our results that get returned by XBMC's http api.
But the question still remains, is it possible to get vox to say the name of the movie that is currently selected (perhaps work arrounds with NFO or TXT files that are in the movies parent dir or something ?) I have cheked high and low and AFAIK there is no funtion in the xbmc http api that will return this, so am I right to assume that vox cannot do it ? is the xbmc http api it's only source for data concerning actions in xbmc ?
Again thanks for the quick reply guys !
PS : this is so addictive, I stayed up till 5 in the morning last night, just by delving myself into this and loosing track of time. That hasn't happend to me since the old days when I was scripting eggdrops on linux boxes, aaah good ol' days
THANK YOU FOR THIS !
Kind regards