Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kRAyZZed

Pages: [1]
1
Thank you so much!, that was exactly the option I was looking for - feel a bit silly now for not realising to use a custom payload in the command builder lol.

I run a MySQL database for xbmc instead on my setup, so I can just use phpmyadmin to grab the info I need and create the custom payload :)

I will take a look at it when I get home from work tonight :) - (I would do it now but it's 5:50am and I am already on the train to work **sigh** )

2
Managed to find the xml - so far the only 3 additions I have done are the following

1) A script that you can ask for the shortplot of the movie
2) A script that you can ask who directs the movie
3) A script that you ask who plays a specific character (this is the one that I need to have a 'characters' or 'roles' xml for exported from my database so that vox picks up on them better :D


<commandGroup name="XBMC Get Movie Info" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="245" name="Plot short" enabled="true" alwaysOn="False" 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>Plotoutline:(.*)</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <cmdString>{match.1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>what is the plot, movie plot, plot of this film, plot of this movie</phrase>
        </command>
        <command id="261" name="director" enabled="true" alwaysOn="False" 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>Director:(.*)</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <cmdString>This movie is directed by {match.1}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>who directs this, who directed this</phrase>
        </command>
        <command id="258" name="who plays" enabled="true" alwaysOn="False" 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>XBMC.Send</cmdType>
                <cmdString>queryvideodatabase(select idMovie from movie where c00="{match.1}")</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.RegEx</cmdType>
                <cmdString>&lt;field&gt;(.*)&lt;/field&gt;</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>XBMC.Send</cmdType>
                <cmdString>queryvideodatabase(select actors.strActor from actors, actorlinkmovie where actorlinkmovie.idMovie={match.1} and actorlinkmovie.strRole="{1}" and actorlinkmovie.idActor=actors.idActor order by strActor desc)</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <cmdString>{lastresult}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>who plays</phrase>
            <payloadDictation>payloadDictation: don't edit this</payloadDictation>
        </command>
    </commandGroup>

3
Hi all,

I just started using the trial version of voxcommando - and I am very very close to purchasing a license, as it 'almost' does everything I want - however before I did I had a couple of questions / requests that one of you could hopefully help me out with.

I played around with the code builder and wrote a script that would when watching a movie - if I said "who plays Thor" it would query xbmc's database and return the name of the actor who plays him and via TTS say it aloud - my only problem is that the GenXML does not add actorroles table from the databases - just actor names.

Is there a way I can manually add this? I would love to setup a 'trivia' script of sorts based on my movie and tv show library - this would be a nice addition to my home cinema and would give a really neat effect to my media centre :D.

The other quick question I had was, can someone recommend a relatively cheap omnidirectional microphone? At the moment during testing I am using a headset and that works great but it would be nice to have something that I can just rest on top of the tv and be done with it. Would a Kinect do the job?

I am happy to share the script I wrote in the code builder, as soon as someone can tell me how I can export to xml to post :D.

So far the way it works is its gets the movie name from xbmc.send currentlyplaying - then uses that name to query the database and gets the movieid from that, then it runs a query that returns the actor name for the movieid currently playing AND the payload string - which if I can get roles added to the database would be fairly accurate.

It works great at the moment when I test it and type in the payload string - it just does not seem to ever recognise the payload string when I say it - eg Loki, or Thor characters in the movie Thor always comes up with something different - like the number 4.

Thanks for reading this

~kRAyZZed

Pages: [1]