VoxCommando

Help and Support (Using VoxCommando) => XBMC (Old board see 'KODI' above) => Topic started by: Auri on January 30, 2011, 08:39:05 AM

Title: Speak/say selecteed movie name
Post by: Auri on January 30, 2011, 08:39:05 AM
Hi everyone,

I've searched high and low to get voxcommando to say the selected movie name so that when I say "play movie X", voxcommando can say something like "Enjoy movie X"
I checked the HTTP commando's that are availble in xbmc on their wiki, but can't find a getfuntion that could return it.

Also is there a way to change voxcommando's TTS voice with a command and then let vox auto restart for it to go active ?
 
Kind regards
Title: Re: Speak/say selecteed movie name
Post by: Kalle on January 30, 2011, 09:07:19 AM
Hi everyone,

I've searched high and low to get voxcommando to say the selected movie name so that when I say "play movie X", voxcommando can say something like "Enjoy movie X"
I checked the HTTP commando's that are availble in xbmc on their wiki, but can't find a getfuntion that could return it.

Also is there a way to change voxcommando's TTS voice with a command and then let vox auto restart for it to go active ?
 
Kind regards

Hi Auri,

welcome to Voxcommando-Forum. Yes, there is  a way to do that. For begin, which version of VC do you have? When you have the version for xbmc you must edit the "play movie" command with Commmandtree-Editor. You can put a TTS.speak command with parameter - enjoy movie {lastresult} - when i have a little bit more time later, i will give you an example. I hope it is not so urgent ;)

Greetings Kalle
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on January 30, 2011, 09:35:26 AM
Actually the XBMC action PlayFile() will only return "OK" so lastResult will not work in this case.

Normally you would be able to use {1}.  For example if you say play artist The Beatles, then {1} will equal "The Beatles".  But in this case the movie name gets mapped to a filename and path, which you don't want to use with TTS!

I have attached a command that will tell you what is now playing in xbmc.  You can experiment with this command to get some fun results.  For example you can get the tagline instead of the title.  It is almost exactly the same as the "what song is this" command.

If you call this immediately after asking for the movie, it might not work.  You have to give xbmc a chance to queue it up and start playing.  We will soon be able to receive events from xbmc so it might be possible to trigger the TTS whenever a new file starts playing, but that might get tedious if it did it for every song.  We shall see.

0.872 (paid version) introduces events, and part of that will probably be a command to set a timer that will trigger then event when it goes off.
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 30, 2011, 01:36:32 PM
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 :

Code: [Select]
<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
Title: Re: Speak/say selecteed movie name
Post by: Kalle on January 30, 2011, 01:51:32 PM
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 :

Code: [Select]
<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

nice one command  8)
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 30, 2011, 02:20:13 PM
Thanks,

If anyone would wonder why  I did
Code: [Select]
<cmdType>Results.RegEx</cmdType>
 <cmdString>Title:(.*)</cmdString>

Every time and return {match.1} is because when I did
Code: [Select]
<cmdType>Results.RegEx</cmdType>
 <cmdString>:(.*)</cmdString>
and return {match.1}, {match.2}, {match.3}, etc ... it would not always match what I wanted vox to say cause sometimes {match.5} would be director and in other time it would be studio or genre or rating .... depending on the outcome from xbmc's http api.

Anyways just wanted to share that also.

BTW : as stated in my original post -> "Also is there a way to change voxcommando's TTS voice with a command and then let vox auto restart for it to go active ?" I found the answer myself using TTS.SetVoiceName had a small brain fart while I was typing that question ;)


Silently hoping jitterjames will reply with something awesome that would fix my problem of saying the selected movie name ;)
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on January 30, 2011, 03:44:08 PM
I don't know what you want.  What do you mean when you say "selected movie" or how it is different from the movie that you are requesting in your voice command.

In your original post you wrote
Quote
when I say "play movie X", voxcommando can say something like "Enjoy movie X"

and I answered that. You just need to add the attached xml example that I sent [which uses the regex expression Title:(.*) ]  to your command after the part that actually plays the movie.  As I said, you may need to get it to pause first to give xbmc time to actually start playing the movie.

I'm obviously not understanding what you want to do though, so maybe you can try to explain it to me in a different way.
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 30, 2011, 04:01:15 PM
Hi Jitterjames

I'll explain myself abit better and tell you the whole story.  I'm sorry that I sounded like I didn't read your reply because I did, it's just not what I want (and I should explain bettery sorry :D)

Here is the script that I want :

I use XBMC with an addon called "Cinema Experience".
It's an awesome addon should you be intrested you cand get it here : http://forum.xbmc.org/showthread.php?t=87563 (http://forum.xbmc.org/showthread.php?t=87563)

Now, What I did was map the keyboard keys CTRL+D once I'm in the movie information so that when I press CTRL+D the addon Cinema Experience will start and will do all kinds of awesome stuff before my film starts (like THX intro's, Double digital intro's, play trailers from apple etc) just like in a real cinema basicly.

I then made a command in VC that would sendkey ^D so that it would emulate the CTRL+D to start the script and thus start all the fancy eyecandy before the actual movie begins.

now what I really want is when I say my command "play cinema" and VC executes the sendkey ^D I would like to have a TTS.Speak that would say "ENJOY <Movie name that is going to start after the Cinema Experience script>"

So although your reply was correct, and you didn't know the whole story, how would one go about getting this scenario done ?

I hope I explained it clear enough now, if not I apologise and try will again ;)
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on January 30, 2011, 04:19:56 PM
ok, yes, lol you might have left a few key bits of information out of your original post!  :bonk

You originally said that you were asking for the movie by name, but I'm guessing that in fact you are browsing movies by various means.

This will probably depend almost entirely on the cinema experience plugin.  Most likely it is not possible.  I am not aware of any method to know what is currently on the screen, or what item is highlighted through the http interface to xbmc.  Most likely the only way this would be possible would be to modify the plugin.  Maybe you can talk to the makers of Cinema experience and ask them what might be possible, in terms of either generating a udp broadcast or possibly saving a small text file somewhere that vox could read.  Or maybe they'll have a whole other idea that would work better.

If you can get them on board, I'll be happy to make whatever code changes I can to read the files or whatever, if it is a reasonable amount of work.

If I get a chance I'll install that plugin and play around with it a bit, but I'm a bit swamped with other stuff right now.
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 30, 2011, 04:23:58 PM
Cool James ;)

I'll see if I can get a hold of the people at "Cinema Experience"

Keep up the good work.

Regards
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 31, 2011, 11:11:14 AM
Hey James,

I send a PM to one of the coders of Cinema Experience on the XBMC forums asking him for some help or insight into getting the results I want.

While I'm waiting for his answer I was thinking about the XBMC log files.

Could vox commando read/parse the XBMC log for specific strings of text ? Or would that be to complex or not maintainable ?

Regards
Auri
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on January 31, 2011, 11:25:50 AM
it doesn't sound terribly practical but it might work.  First step would be to take a look at your log files and see if there is even any userful information being deposited there when you initiate the cinema experience.  (i.e. what goes into the log just prior to the point in time when you would like to hear TTS).  Personally I think this particular idea is a lot of work to achieve something not-so critical.  On the other hand, exploring ideas like this can often lead to solutions that are more useful elsewhere so I'm willing to entertain it.
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 31, 2011, 11:54:24 AM
I'm currently at work, but when I'm home I'll check my XBMC log to see if anything remotely comes close to some log entries we can use.
Also I'm still awaiting the reply from one of the addon coders.

I asked him if they could dump the info in an XML or TXT upon execution of the addon, if they can do that (or perhaps have somewhere in place already that is unknown to me) it would make life really easy :D

Also thanks for keeping an open mind for things like this !
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on January 31, 2011, 12:38:53 PM
xbmc generates some events via UDP already and VoxCommando will be tapping into this very soon.  An example of an event would be, when you start playing a new movie etc. it will send out an event with the title of the movie.  If they could somehow use that system that would be far, far better than writing to a file.  I would 100% support that method.  the file thing is a hack that will only work for some users, and it's really not ideal.
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 31, 2011, 01:18:39 PM
Agreed.

Any idea when VoxCommando will start using those events ?

Is it http://forum.xbmc.org/showthread.php?t=68263 (JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC ) ? Or is that something totally different ? (think I read somewhere you were gonna drop the HTTP api and go for the JSON-RPC, might have misinterpet that though)
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on January 31, 2011, 01:34:22 PM
probably will be part of the release after next.: 0.874

not it's not the JSON.  the JSON is still a request based interface (tcp) that works essentially the same way as the http interface in terms of functionality.  Also, I have yet to discover anything that it can do that the http interface cannot (actually it does less), but over time it will get to a point where I want / need to switch to it.  That time is not now, since the JSON seems to be going through a lot of growing pains still and it will be a fair amount of work to switch over.  So I wait... tapping my fingertips together a la Burns.

I'm talking about a udp broadcast that you can subscribe to that XBMC then sends out on its own without being poked.  The actual work involved in getting that going shouldn't be too bad.  The basic event framework is in place  and working in the current VC version 0.872.  Which is to say, it is set up to act on events, I just need to add new event generation and the XBMC events are just part of that.
Title: Re: Speak/say selecteed movie name
Post by: Auri on January 31, 2011, 01:46:51 PM
probably will be part of the release after next.: 0.874

not it's not the JSON.  the JSON is still a request based interface (tcp) that works essentially the same way as the http interface in terms of functionality.  Also, I have yet to discover anything that it can do that the http interface cannot (actually it does less), but over time it will get to a point where I want / need to switch to it.  That time is not now, since the JSON seems to be going through a lot of growing pains still and it will be a fair amount of work to switch over.  So I wait... tapping my fingertips together a la Burns.

I'm talking about a udp broadcast that you can subscribe to that XBMC then sends out on its own without being poked.  The actual work involved in getting that going shouldn't be too bad.  The basic event framework is in place  and working in the current VC version 0.872.  Which is to say, it is set up to act on events, I just need to add new event generation and the XBMC events are just part of that.

I see.  You lost me abit in the last paragraph though.  Did I understand correctly that the UDP broadcasts are already in place from XBMC's end but that vox is not yet ready to use them ? or is it still in development at XBMC ? (confused  ??? )
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on January 31, 2011, 02:55:09 PM
xbmc already sends this info.  I was suggesting that the cinema plugin could possibly use the existing function and send info the same way.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 02, 2011, 06:06:05 AM
Hey James,

I got a message back from "Giftie" one of the coders of the Addon "Cinema Experience".
I explained the situation to him and like you he is VERY OPEN to new features and willing to fill in specific requests like I have with the "movie name" therefor he asked if you could PM him on the XMBC forums so that you can talk coder to coder to see what is needed from both your ends to make this work.

His qoute (nickname = Giftie ) from XBMC forum PM :

"The script uses internal XBMC commands for queuing of movies.
If jitterjames could message me, maybe we can work out what he would need the script to do to make it work.. "

I feel priviledged you both would make time to accomodate such a small request from someone who uses your programs. So thank you in advance already for the trouble.

Would you be so kind as to PM him and see what the Cinema Experience script can do to make Vox tell me the MOVIE NAME as soon as I press the "Cinema" button that launches the Cinema script in XBMC ?

Best regards
Auri
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 02, 2011, 11:06:42 AM
I sent a message to Giftie and am waiting for a response.  I finally got Cinema Experience installed and working and it's pretty cool!  Now I'm looking for some cheasy old pre-movie clips from the 50s-70s, do you have any good sources for me?

I also love the random trailer concept.  The only problem with that is that I'm seeing stuff that is just coming out and I am not in the habit of going to theatres!
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 02, 2011, 11:49:06 AM
Here's an example of what I'm looking for...

&NR=1
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 02, 2011, 12:09:59 PM
HAHA I got exactly that clip from the simpsons and hundreds more.

When I'm home from work I'll post some links with tons of this stuff, you're gonna have a field day as there is tons of this kind or reto stuff on the net.

Most of the sources I found on the XBMC forums, but i'll share then once I'm home.

I'll be home late tonight though as I have icehockey practice till roughly 22:00

Laters
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 02, 2011, 12:28:29 PM
Cool, I look forward to it.  I started grabbing a few key  coming attractions intros off of youtube, but it would be great to get some packs.  It's funny that this should come up now, because I finally got around to watching "Grindhouse" just a couple weeks ago.

I'm thinking it would also be great if you could flag trailers as you are watching them so that you can add them to a list of things to look out for when they are released on Bluray.  I will probably suggest such a feature to the folks at CE if it doesn't already exist, but it should also be possible to do in VC within the next few versions.  I am planning on creating some file writing functions to be able to create xml lists, and since the what is now playing command actually returns the name of the movie when watching a trailer this would allow us to create a voiice command "add this trailer to favourites".

Do you know if there is a command to go directly to Cinema Experience?  Or do I have to first go to the "info" screen (i or ctrl-d) and then click the CE button?  Even if there isn't, it may still be possible to find a way to launch it directly.  I guess I should look on their forum since this has probably been asked already.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 02, 2011, 12:33:22 PM
Dang it.  Now i"m going to be singing "Markos is a cute Doggy" all day in my head.

(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Flh6.ggpht.com%2F_zKd8pwBwZGg%2FStsY_fiFokI%2FAAAAAAAAEZc%2FmJMeLo0n1zE%2Fs912%2FIMG_3018.JPG&hash=ddbe220cec4e6d52775c5941af98c5971bab38c6)
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 02, 2011, 01:20:41 PM
Cool, I look forward to it.  I started grabbing a few key  coming attractions intros off of youtube, but it would be great to get some packs.  It's funny that this should come up now, because I finally got around to watching "Grindhouse" just a couple weeks ago.

I'm thinking it would also be great if you could flag trailers as you are watching them so that you can add them to a list of things to look out for when they are released on Bluray.  I will probably suggest such a feature to the folks at CE if it doesn't already exist, but it should also be possible to do in VC within the next few versions.  I am planning on creating some file writing functions to be able to create xml lists, and since the what is now playing command actually returns the name of the movie when watching a trailer this would allow us to create a voiice command "add this trailer to favourites".

Do you know if there is a command to go directly to Cinema Experience?  Or do I have to first go to the "info" screen (i or ctrl-d) and then click the CE button?  Even if there isn't, it may still be possible to find a way to launch it directly.  I guess I should look on their forum since this has probably been asked already.

As far as I know, there is no direct way to call the addon. (would be nice though, perhaps something you could ask Giftie of Cinema Experience ?)

What I have done is I mapped the ctrl+d key away from the info screen in the mappings xml of XBMC I then mapped it to the Cinema addon and I then made a command in Vox when I say "Play Cinema" vox will execute sendkeys ^d.  In XBMC I would go : Find movie avatar -> Show info -> Play Cinema.

About the trailers to favorites would be nice and a good idea of you to make some kind of bluray whishlist for future use based on that, and adding to that I'm sure there is some website or opensource app that will check bluray releases/dates and you might be able to match it/sync it every X time and let vox tell you bluray X has been released based on your favorites XML ... just thinking ahead and out loud already but they are nice ideas.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 02, 2011, 01:57:41 PM
Hey! I figured out how to modify the CE addon to send VC the info that is needed.  8) I still need to work on the events in VC though and you'll need to upgrade to the latest version of VoxCommando 0.873 once I release it.  (one strategically placed line of code! haha)

I will try to get the modification added to the official release of the CE addon, but if not I'll send you the file to replace.  The problem with this approach is that every time they release a new version we would need to re-patch it.

In the process of looking at the addon code I am getting a bit more familiar with xbmc scripting so hopefully something else good will eventually come from this. ;D
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 02, 2011, 02:10:16 PM
Nice to hear that, and isn't that to point ? To have fun and keep leearning ?

Kudos to you james.

On the topic of having fun : I'm still at work and one of our exchange servers don't want to reboot MEH :(
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 02, 2011, 04:22:46 PM
News from ADD ON Cinema Experience...

"The next version of the script Cinema Experience will be out later this week. The biggest change is that it allows Multiple Features, with Intermission Videos and Audio Format Videos(that match the next movie). It's also more or less a single button press to select the movie and can be run from the Home Window. This feature will make the script feel truly as a part of XBMC.

Right now I am the only one able to enjoy this script this way as the skin needs to be slightly modified to add a button. But it can be run directly from the Addons list as well."

Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 02, 2011, 04:35:12 PM
Always braggin Wanilton!  ;)

if you run it from the home window, how does it know what movie to play?
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 02, 2011, 04:45:06 PM
Good question, i don´t know....
 ???

Yesterday while talking with Marcos, that was our question, the news was given by the developers of the script, I have no details of how it works.

The new version skin AEONMQ 2.6.1 almost done, and comes with many features, wait...
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 02, 2011, 04:52:24 PM
I'm running AEONMQ 2.6 currently, awesome skin, imo the best !

On the subject of sharing the stuff you asked James, I'm still at work fixing on of our Virtual Machine exchange servers so I had to skip hockey practise, meh, not home yet and when I do I'll prolly go straight to bed, so I'll share it with you tomorrow if thats ok.

Laters
Auri
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 02, 2011, 06:21:10 PM
no rush whatsoever.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 03, 2011, 04:54:25 PM
no rush whatsoever.

Hey James,

Sorry it took a few days but been very busy at work ... so here goes :

Most of the stuff I gathered so far (rougly 6GB of intermission, commercials, THX, Dolby, IMAX, etc ... movies/cutscenes/intro's/outro's, .... etc) I found on this page on the XBMC forums : http://forum.xbmc.org/showpost.php?p=664141&postcount=2

Basicly it's the 2nd post in the main RELEASE thread of Cinema Experience and can be found under
XBMC Community Forum > Help and Support > Plugin/Script (Python) Addons Help and Support -> http://forum.xbmc.org/showthread.php?t=87563

Be sure to also check :

http://www.demo-world.eu/logos/
http://www.demo-world.eu/trailers/
http://www.demo-world.eu/trailers/high-definition-trailers.php

Basicly check the entire http://www.demo-world.eu site just amazing stuff there, also good info about setting up your own home cinema etc ...

Then you got Gigabytes on cool stuff in here http://forum.xbmc.org/showthread.php?t=69270 (your simpson video is in here somewhere :D )

basicly it all comes from the very first URL I linked in this post, all comes from the RELEASE thread of cinema experience on the xbmc forums.

Hope this gets you started. I'm still busy looking at all of it, and I'll try and throw away the stuff I don't want, reorganise it abit and search for even more stuff once I've settled abit with this content :p

PS : Any news yet from Giftie ? on the xbmc forums ?
PPS : Using Chrome now, works like a charm :D
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 03, 2011, 05:45:51 PM
Auri,

I Created this command for plugin cinema experience, it´s OK??
You can check if built correctly?


thanks

Wanilton
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 03, 2011, 05:50:11 PM
Auri,

VC 0.872 running on windows7 ultimate x64

I Created this file cinema.xml, and put in
C:\Users\Wanilton\AppData\Roaming\XBMC\userdata\keymaps
with
<keymap>
  <global>
    <keyboard>
      <key id="0x30">XBMC.RunScript(special://home/addons/script.cinema.experience/addon.py)</key>
      <key id="0x31">Info</key>
    </keyboard>
  </global>
</keymap>

However, I can not run the addon using ^D by sendkeys

Even using the keyboard with Ctrl D work, so I think it could be something related to the location where you installed the addon, or something.

C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py

Wanilton
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 03, 2011, 06:04:30 PM
Auri,

I Created this command for plugin cinema experience, it´s OK??
You can check if built correctly?


thanks

Wanilton

Looks OK to me, though try with "^d" instead of capital D :
Code: [Select]
            <action>
                <cmdType>SendKeys</cmdType>
                <cmdString>^d</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>

Let me know if it works!
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 03, 2011, 06:26:00 PM
Auri,

VC 0.872 running on windows7 ultimate x64

I Created this file cinema.xml, and put in
C:\Users\Wanilton\AppData\Roaming\XBMC\userdata\keymaps
with
<keymap>
  <global>
    <keyboard>
      <key id="0x30">XBMC.RunScript(special://home/addons/script.cinema.experience/addon.py)</key>
      <key id="0x31">Info</key>
    </keyboard>
  </global>
</keymap>

However, I can not run the addon using ^D by sendkeys

Even using the keyboard with Ctrl D work, so I think it could be something related to the location where you installed the addon, or something.

C:\Users\Wanilton\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py

Wanilton

Hey Wanilton,

Forget about that keymapping there.
What I told you, when I answered your PM is in fact wrong and was something I tried before I got mine working, so forget the keymappings as I explained you.

I will tell you exactly what todo now to make it work.

1. The VC part you have correct except make it "^d" instead of "^D" dunno if XBMC is case-sensative in that aspect.
2. Go to "C:\Program Files (x86)\XBMC\system\keymaps" and open the default XML for your controller, in my case keyboard.xml
3. Search for "<MovieInformation>"
4. replace this line "      <d mod="ctrl">XBMC.RunScript(special://home/addons/script.cinema.experience/addon.py)</d>" (originally it will also say "info" or "close" but just replace it with what I posted here)
5. It should now look like this :
Code: [Select]
  <MovieInformation>
    <keyboard>
      <backspace>Close</backspace>
      <i>Close</i>
      <d mod="ctrl">XBMC.RunScript(special://home/addons/script.cinema.experience/addon.py)</d>
      <key id='65446'>Close</key>
    </keyboard>

Now I would advice you to restart XBMC (perhaps not needed, but do it anyways)
VC will now send a CTRL+d on your command and while you have XBMC focused and you are in the Movie Information Screen it should now execute the script "XBMC.RunScript(special://home/addons/script.cinema.experience/addon.py" which will in fact start your Cinema Experience ;)

I hope it works, and sorry for the confusing in my PM reply to you, I was at work and was thinking about something else.

best of luck
Auri
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 03, 2011, 06:30:41 PM
BTW if you are intrested in manipulating default keybindings or making your own and overwrite the defaults, this is a very good source to find all the codes and modifiers needed :

http://wiki.xbmc.org/?title=Keymap.xml

It will explain keynames, keyids and keyname mods

Good luck.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 03, 2011, 06:56:10 PM
it´s ok now
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 03, 2011, 07:03:49 PM
Ok forget VC for a second, if you are in the movie information windows of a certain movie, and you press CTRL+d what happends then ?
Does Cinema Experience launch ?
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 03, 2011, 07:36:08 PM
the problem was the configuration of the plugin, it´s ok now.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 03, 2011, 07:44:47 PM
the problem was the configuration of the plugin, it´s ok now.


Enjoy  8)
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 04, 2011, 06:33:24 AM
Wanilton,
Concerning the keybinding one last time, James told me a few posts ago here that he might be able to go directly to the cinema script without going to the Movie Info screen.
I don't know if he will do it or not, but it'll be nice if he could find a way.

Regards
Auri
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 04, 2011, 07:45:46 AM
I think it's possible, but only with a change in the addon that should happen soon, now it only works on screen info. The limitation is the addon, because the skin aeonMQ is easy to create a shortcut to this addon, both in the main menu as a submenu for movies. Not to mention that calling addon on the vox, it is also easy.
 
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 04, 2011, 09:35:33 AM
the only way to go directly to the CE from the Movie Browsing window would be with a macro that first opens the info window and then starts the addon.  You might also need to put a pause in to give xbmc enough time to open the info window.

For the record, I don't think I ever said anything about being able to do this.  Wanilton said that it would be possible in the new version of the addon which was coming out soon.  Note that it is also possible to open CE from the info window without having to remap keys, by using xbmc.execbuiltint command from VC to call the addon script.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 04, 2011, 12:11:16 PM
...

Do you know if there is a command to go directly to Cinema Experience?  Or do I have to first go to the "info" screen (i or ctrl-d) and then click the CE button?  Even if there isn't, it may still be possible to find a way to launch it directly.  I guess I should look on their forum since this has probably been asked already.

I must have misunderstood this line then, but nice to know I can let vox call it through the xbmc.execbuiltint command.
Did you start downloading video content yet for the CE addon from the links I posted ? :D
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 04, 2011, 12:16:40 PM
I was just proclaiming my ignorance at that point.  I was kind of hoping that you would tell me if there was a way... lol.  At that point I had just installed the addon and was playing with it for the first time.  But the 2 step macro should work fine.  There will probably be a flash of the info screen first, but no big deal.  In any case I guess we should wait for the updated version of CE before we worry about it too much because they may have changed this.

btw, Giftie has still not responded to my PM on xbmc forums.  I just checked my spam folder too and there is nothing there.

Maybe after the new version comes out, I'll post my code update to the CE forum and ask them to incorporate it.  Then you and Wanilton can chime in with a "me too" on the forum (whilst simultaneously telling them how fantastic VoxCommando is  :D)
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 04, 2011, 12:23:56 PM
I was just proclaiming my ignorance at that point.  I was kind of hoping that you would tell me if there was a way... lol.  At that point I had just installed the addon and was playing with it for the first time.  But the 2 step macro should work fine.  There will probably be a flash of the info screen first, but no big deal.  In any case I guess we should wait for the updated version of CE before we worry about it too much because they may have changed this.

btw, Giftie has still not responded to my PM on xbmc forums.  I just checked my spam folder too and there is nothing there.

Maybe after the new version comes out, I'll post my code update to the CE forum and ask them to incorporate it.  Then you and Wanilton can chime in with a "me too" on the forum (whilst simultaneously telling them how fantastic VoxCommando is  :D)

Haha sure no problem ;)
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 04, 2011, 12:55:47 PM
Como falamos por aqui, pagando bem, mal não tem...

Tirando a piada, claro que daremos os devidos elogios ao vox.

translate

As we speak here, paying good, no problem....
Taking the joke, of course we give all good references for the voxcommando software.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 04, 2011, 04:44:57 PM
Hey this is an English board!  ;)

I just figured it would be more likely to get done if other users backed me up, and at the same time (seriously) a chance to expose some new xbmc users to VC.  Many XBMC users have still not noticed VC!  I suspect that there are many that will want it when they see it, but I don't like to go posting in other forums without good reason, because people will get mad at me!
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 04, 2011, 05:01:21 PM
Relax, the voxcommando is excellent, and you know you'll do whatever it takes to help others become aware and can also use your program. Sorry for the post in Portuguese ... it was just a joke. And honestly I do not see a problem as you disclose the same in other forums like XBMC Forum.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 04, 2011, 05:34:07 PM
I was just kidding around too.  I don't mind if you post in Portuguese.  You know that!  :D
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 04, 2011, 05:40:32 PM
Hey this is an English board!  ;)

I just figured it would be more likely to get done if other users backed me up, and at the same time (seriously) a chance to expose some new xbmc users to VC.  Many XBMC users have still not noticed VC!  I suspect that there are many that will want it when they see it, but I don't like to go posting in other forums without good reason, because people will get mad at me!

^^ i'll support you on the xbmc for sure, just post here or PM me with the link on the xbmc forum when you do.
From a marketing point of view, I think (and I know you're busy doing that) you need to know 2-3 good microphones that work well with VC.
1 open air, one headset and Amulet :D and then you can package that, not that you're gonna sell mics but what good is Voice software if there is no good microphone at a normal cost for people to use it in imo 3 important scenario's

1. Open air as mentioned before, enter a room and command
2. Personal, descrete use like with a headset
3. where you are in your sofa watching XBMC and want to just say stuff, but everyone has gone to bed and you don't want to talk much, aka the amulet remote

If you could somehow pre-researched this and just say here is VOX and ooh btw these are well tested mics for a reasonable price that work nicely with vox then people might not see this as a startrek gadget but as an actual all-round out of the box solution, granted they still have to buy a mic but you would have helped them search for one then already in a way.  Maybe it's just me but in general consumers are LAZY, they want to buy stuff that works and not buy 50% and have to search themselves for the other 50 if you catch my drift.

Dunno if I explained what I wanted to tell you right, but I hope you catch the idea and by no means should you takes this any other way as my personal opinion.

PS : tend to go offtopic and still it feels on topic, meh :p
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 04, 2011, 06:14:16 PM
99% of this forum is off topic.  what can you do?

I'll consider your advice.  I think that the spirit of what you are saying is spot on.  I will see how I can incorporate that into my master plan!
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fmedia.247sports.com%2FUploads%2FAvatars%2F54%2F1_30559.jpg&hash=bda7a5b26daf99c8a7127dea64c63dcf73826908)
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 04, 2011, 06:15:32 PM
Eehhhhhxcelent  >:D
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 15, 2011, 10:17:39 PM
I don't know what happened with that new version of cinema experience that was supposed to be coming out, but the mod for the current one is as follows:

The file ...\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\xbmcscript_player.py

can be modified as follows:

line 173 is currently:

Code: [Select]
movie_title = self.playlist[ 0 ].getdescription()
we just need to add directly after this new line:

Code: [Select]
xbmc.executehttpapi( "Broadcast(<b>CElaunch<li>"+ movie_title +"</b>;33000)" )
Then as of version 0.874 (coming soon  :)) we will get an event containing the movie name, which we can use to announce the movie using TTS or whatever.

Also, we can run cinema experience directly from the movie browsing screen (no need to open the info window) with this VC action:

Quote
XBMC.ExecBuiltin         RunScript(script.cinema.experience)

Actually you can probably run it from anywhere, but if you aren't on the movie browsing screen it won't know what movie to play, so it will probably just play the intro stuff and then stop.  It doesn't make much sense, but you can use it with TV shows too if you want.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 16, 2011, 04:38:25 AM
James,

Thanks for this, here is the file xbmcscript_player.py already patched properly as instructed by the James, just overwrite the current file in
...\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\xbmcscript_player.py.

 Now waiting for the new version 0, 874. for us to use this feature more.

PS: I tested here with version 0.873, with the attached files and crash in ADDON, not running the script. In movie browsing if I remove the line, it passes/focus to the first movie to the right of selection and runs the script normally, I think we need something else version 0.874 maybe., or did not understand how James came to work properly. I believe that the error is being caused by the lack of the name of the movie, I'm not going to the script.
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2Fvoxcomanndo-xbmc-Brazil%2Ferro.jpg&hash=e88cf849d9e363ec17b0981c39aed2ee089536c9)
image above skin aeonMQ 2 version 2.7.0 (the official release date for new version 2.7.0 - 02/20/2011)

Sunday 20/02

Which was announced a new version of the script, but so far not released yet.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 16, 2011, 06:47:37 AM
Nice work James, I'll set it up like that as soon as you release the vox version that works with this.

Wanilton, Thats AWESOME news, I've been using this skin for quite some time now and I love it ... it's funny that someone so close to the skin dev is on this forum also  ::) Are the "Blueray, DVD, HD, etc ... DVD-cases" also standard in the new version of MQ2 or is it another addon ?

Keep up the good work, both of you ^^
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 16, 2011, 06:52:15 AM
Auri

New cases are standart in new version...

Wanilton
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 16, 2011, 09:35:05 AM
getting back on topic...  :P

Wanilton, your modification to the cinema experience python script was correct, except for one mistake.  Python is very sensitive to indentation.  You used 3 tabs, but in fact you needed to use 12 spaces!

I modified your post and replaced the attachment  xbmcscript_player.py with the corrected version

people can now download from your post and it should work. :)
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 16, 2011, 09:59:55 AM
Hello James,

Good work, it´s ok now...

Play my custom intro, and my coming attraction and the movie file I choosed, but for some reason skipped Trailer, I have a set in the plugin for run 1 trailer too. The amendment must have something to do with it I believe.

Import file attached for your configuration in vox..

In XBMC, browse movies, focus in specific movie, start using the command in attached file...

Wanilton
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 16, 2011, 10:13:40 AM
I don't know trailers work fine for me.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 16, 2011, 11:34:43 AM
I reinstalled the addon, I put the file modified by James, and now this perfect, trailers running ok too, thanks.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 16, 2011, 11:37:56 AM
I think it will skip the trailers if no movie is selected.  If you are browsing movies, but no item is selected (bigger cover) then it will not work properly.  For example if you are in showcase and browsing movies, but then you click "down" there will no longer be a movie selected.  Maybe that's why you didn't get your trailers.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 18, 2011, 10:29:02 AM
The plugin Cinema Experience was update today, I attached file with the mod code of James, now for this new version 1.0.10 addon cinema experience , tested for me and ok for use.

File xbmcscript_player.py already patched properly as instructed by the James, just overwrite the current file in
...\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\xbmcscript_player.py

Update with this fiile, after your get the plugin Cinema Experience version 1.0.10.

I Upload today pack addons for new version skin AeonMQ 2 versiion 2.7.0, for reflecting this change too, download here:
http://github.com/downloads/Wanilton/VoxCommando/addons.zip
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 19, 2011, 09:26:34 AM
  Re: Cinema

--------------------------------------------------------------------------------

Quote:
Originally Posted by Wanilton
Hello Giftie

I Test this mod by James, from voxcommando and work great with cinema experience and xbmc, without problem in run in videoinfo too.

Look this and feedback for me, please.

I Hope this help you too..

I don't know what happened with that new version of cinema experience that was supposed to be coming out, but the mod for the current one is as follows:
The file...\AppData\Roaming\XBMC\addons\script.cinema. experience\resources\lib\xbmcscript_player.py

can be modified as follows:

line 173 is currently:

Code:
movie_title = self.playlist[ 0 ].getdescription()
we just need to add directly after this new line:
Code:
xbmc.executehttpapi( "Broadcast(CElaunch<li>"+ movie_title +";33000)" )

Then as of version 0.874 (coming soon) we will get an event containing the movie name, which we can use to announce the movie using TTS or whatever.

Also, we can run cinema experience directly from the movie browsing screen (no need to open the info window) with this VC action:

Quote
XBMC.ExecBuiltin RunScript(script.cinema.experience)

Actually you can probably run it from anywhere, but if you aren't on the movie browsing screen it won't know what movie to play, so it will probably just play the intro stuff and then stop. It doesn't make much sense, but you can use it with TV shows too if you want

Answear Giftie

/b]
Starting the script that way with a version below 1.0.11(yes the only version available from the repo is 1.0.10) it wouldn't queue a video to play. Though if you have a movie in focus, it would queue that movie.

The latest version is still in testing.. Quite a few changes have been made. A lot of enhancements. The script will allow for multiple features, so I added this 'announcement' to occur as the Movie starts.
 
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 19, 2011, 09:29:57 AM

Answear Giftie

/b]
Starting the script that way with a version below 1.0.11(yes the only version available from the repo is 1.0.10) it wouldn't queue a video to play. Though if you have a movie in focus, it would queue that movie.

The latest version is still in testing.. Quite a few changes have been made. A lot of enhancements. The script will allow for multiple features, so I added this 'announcement' to occur as the Movie starts.
 
XBMC already generates an announcement when the movie starts, so this is useless.  The whole point was to generate an event with the movie name when you first launch the cinema experience.  Where is Gifite writing this?  On a forum, or in a PM ?
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 19, 2011, 09:35:43 AM
James, he´s writing in PM Forum XBMC..one question, in version 0.874, it´s possible using event run cinema experience + name of movie? how?
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 19, 2011, 11:00:36 AM
it works EXACTLY the same way as this one: http://voxcommando.com/forum/index.php?topic=98.msg2564#msg2564

just uses a different event name.  when you launch cinema experience the event name will show up in the VC history window and you can copy paste it.  In this event {1} will have the name of the movie, if one was selected when you called cinema experience.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 20, 2011, 08:43:58 AM
The plugin Cinema Experience was update today, I attached file with the mod code of James, now for this new version 1.0.10 addon cinema experience , tested for me and ok for use.

File xbmcscript_player.py already patched properly as instructed by the James, just overwrite the current file in
...\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\xbmcscript_player.py

Update with this fiile, after your get the plugin Cinema Experience version 1.0.10.

I Upload today pack addons for new version skin AeonMQ 2 versiion 2.7.0, for reflecting this change too, download here:
http://github.com/downloads/Wanilton/VoxCommando/addons.zip


Sorry for the late response on this one, but was giftie not putting the mod from james in the new version ?
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 20, 2011, 09:16:36 AM
James,

Could you list here how all of the above works now ?
I kind of lost it all in this big thread and I'm having difficulties re-reading it all and understand it again :D

What works now and how ? (I have the latest CE version, the latest patched VC version and the CE player python script hack posted here in this thread by you)

Regards
Auri
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 20, 2011, 09:17:54 AM
Auri, it´s go in next version Cinema Experience. 1.0.11. but dowload this pack of addons, this ok now for use with vox.
http://github.com/downloads/Wanilton/VoxCommando/addons.zip

All addons necessary for new version skin aeon65MQ Version 2.7.0, include mod of cinema experience...it´s ok for me.

Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 20, 2011, 09:22:30 AM
Import this for you command tree in VOX, run XBMC, browse movie, focus one movie, start with command in the file..done
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 20, 2011, 09:51:44 AM
It's not working in VC's history panel I see "XBMC.ExecBuiltin:RunScript(script.cinema.experience)" is called upon my voice command but nothing happends in XBMC.

In XBMC I got the movie highlighted and current focus is in XBMC.
When I use the CE button in the movie info windows it works, but not with voice command.

Anything I overlooked ?
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 20, 2011, 10:37:47 AM
I don't think so, it should work.  I can't imagine why it doesn't.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 22, 2011, 06:09:48 AM
James and friends, look the content for new version of script cinema experience:

1.0.21
- Fixed Notification error
- Enhancement - Added detection for Dolby TrueHD and DTSHD-MA Audio Codecs(plays proper Audio Format Video)

1.0.20 - Enhancement - Added Broadcast to VoxCommando - turn on in settings -> Miscellaneous ;D ;D My MP for developer script, had effect and pleased that you have built your mod to the official plugin

(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2FVoxCommando%2Fconfiguration.jpg&hash=6980b30bc92aabe4dbcb18e6ff933db74aa60a13)

The movies are queued now, then run plugin it´s necessary press Q or 0 for run after command triggered this script, i try built an macro after running script but it´s not ok, I used XBMC.Btn.KB q, any
suggestion?? in the link bellow, are instructions for skinners, but help you to understand changes.
http://forum.xbmc.org/showthread.php?p=731710#post731710

I Upload addons again today, which are all necessary plugins in the new version of the skin AeonMQ 2 version 2.7.0, after unzipping the file, configure them properly as needed.
unzip here:
..:\Users\YourNameHere\AppData\Roaming\XBMC\addons

One possibility is to unzip this addon.zip elsewhere, and put only what you have not installed as not to compromise settings already made.

All scripts and addons are updated, includes recentlyadded and cinema experience and weather plus. Link for download http://github.com/downloads/Wanilton/VoxCommando/addons.zip

For use Zero (0) by remot control look this
ou will need to add the following to your keyboard.xml file(found in userdata/keymaps/) and then restart XBMC for the changes to take affect.

<zero>Queue</zero> in the <MyVideoLibrary> section.

it´s ok in attached file, put this file here:
C:\Program Files (x86)\XBMC\system\keymaps

TIP: for use weather plus, change in setttings:
Weather and select the Weather setting - change it to Weather.com+
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 22, 2011, 08:10:56 AM
looks interesting.  Let me play with it a bit and I'll get back to you.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 22, 2011, 08:22:54 AM
I separated the commands to trigger a script to send zero, not the best solution but it works.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 22, 2011, 09:22:05 AM
you are better to send a 'q' so you don't have to modify your keymaps

I don't know what he's doing, the new changes to the cinema experience plugin all suck.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 22, 2011, 09:23:09 AM
I looked at the code for the new version of Cinema Experience.  They added a setting, but that's it.   There is no actual code to send a broadcast.

In other words the setting isn't used.

Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 22, 2011, 10:12:07 AM
you are better to send a 'q' so you don't have to modify your keymaps

I don't know what he's doing, the new changes to the cinema experience plugin all suck.

It´s necessary change keymaps for use with remot control...but it´s ok for me..
and yes the new change in script all suck..the file attached above it´s ok.. i tested
keyboard.xml...no problem, using the two now - Q or 0 (zero)
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 22, 2011, 10:17:01 AM
I just recommend using Q in any vox actions so that it is more portable to other users.  (in case you are sharing xml configurations for VoxCommando)
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 22, 2011, 11:12:19 AM
Ok I understand.. :P, I changed for Q
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 23, 2011, 09:33:29 AM
Giftie is talking to me now  :D

The current version of CE (1.0.24) works correctly without modification.

I'm discussing with giftie the possibility of calling the addon from anywhere by sending a movie name.  He says that he thinks it is possible.  I think so too, so maybe in the next couple of versions of CE this will be a new feature.  ;D
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 24, 2011, 06:35:37 AM
Giftie is talking to me now  :D

The current version of CE (1.0.24) works correctly without modification.

I'm discussing with giftie the possibility of calling the addon from anywhere by sending a movie name.  He says that he thinks it is possible.  I think so too, so maybe in the next couple of versions of CE this will be a new feature.  ;D

Sweet,

I just got back from Berlin, so I'll also do some testing of the new RC tonight @ home.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 26, 2011, 09:41:15 AM
James,

Look new version cinema experience 1.0.27, goos news for us...
Enhancement - Added system arguments to script
                    - Allows a single call to queue a specific movie
                        ie: XBMC.RunScript(script.cinema.experience,command&movie_title=Avatar) will Queue Avatar and start the script
                            to use as a web commnand replace the '&' with <li>
                            XBMC.RunScript(script.cinema.experience,command<li>movie_title=Avatar)
                    - Added a single call to queue multiple movies(no limit except XBMC's playlist limit)
                        ie: XBMC.RunScript(script.cinema.experience,command&movie_title=Avatar;Hitch;Hellboy) will Queue Avatar, Hitch and Hellboy then start the script
                            to use as a web commnand replace the '&' with <li>
                            XBMC.RunScript(script.cinema.experience,command<li>movie_title=Avatar;Hitch;Hellboy)
- Fixed - Added code to try to capture if a user has stopped the movie(or videos) and then restart the script(keeps new playlist intact)

James, the best way for create a new command for vox in this case, is using smartplaylist or other way??? i love you create news commands for this, please.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 26, 2011, 09:43:38 AM
Please wait.  I am working with Giftie to get it right, then I will post a sample command.  I have already asked him to change the syntax and I'm waiting to see what the next version of the script is like.

There is no need for a smart playlist though...
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 27, 2011, 12:33:17 PM
OK.  We are finally all set.  Make sure you get the latest version of Cinema Experience (...30 I think)

then try the double feature command!
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 27, 2011, 12:56:55 PM
Woo Hoo, fancy schmancy...

Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 27, 2011, 01:55:49 PM
Fantastic James, very well done.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 27, 2011, 02:05:15 PM
90 replies further, over 800 views and all I wanted was vox to tell me what movie was about to play while using Cinema Experience.

Thanks James for all the effort ! and be sure to thank Giftie also next time you talk to him.
Title: Re: Speak/say selecteed movie name
Post by: Kalle on February 27, 2011, 02:20:18 PM
great job!

Ups, i see "giftie" (XBMC-CE) is a our new member  ;D   WELCOME
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 27, 2011, 03:05:48 PM
90 replies further, over 800 views and all I wanted was vox to tell me what movie was about to play while using Cinema Experience.

Thanks James for all the effort ! and be sure to thank Giftie also next time you talk to him.

Well, I think it was worth it!  This is how cool stuff happens.  The evolution of ideas, and cooperation.  Just like on Sesame Street!  You can thank Giftie yourself, since he is a member of the forum here now.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 27, 2011, 03:06:46 PM
great job!

Ups, i see "giftie" (XBMC-CE) is a our new member  ;D   WELCOME
Hey Wanilton.  Did you test the double feature command yet?  Works well?
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 27, 2011, 03:59:29 PM
Yes, James I test the doube feature, work very welll.. ;D

Title: Re: Speak/say selecteed movie name
Post by: Wanilton on February 27, 2011, 04:20:01 PM
James and friends, its command Cinema Plus, it´s ok for run a one single movie using cinema experience,
trigger with
Cinema Plus + "name of the movie"

Can be run from anywhere, even from home

Have fun file attached...
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 27, 2011, 04:37:35 PM
is there any point in making a triple feature command?

Actually I think it might be nice if we could have a command to just set up X number of random movies with intros and intermission...  like party mode.  Or possibly with some kind of criteria like genre, so we could have a command like "entertain the kids for 8 hours" and have it go into Cinema Experience with random movies from the "Family" genre.

lol.  Maybe 8 hours is too much... but we could make them do exercises during intermission!
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 27, 2011, 04:53:22 PM
is there any point in making a triple feature command?

Actually I think it might be nice if we could have a command to just set up X number of random movies with intros and intermission...  like party mode.  Or possibly with some kind of criteria like genre, so we could have a command like "entertain the kids for 8 hours" and have it go into Cinema Experience with random movies from the "Family" genre.

lol.  Maybe 8 hours is too much... but we could make them do exercises during intermission!

Hey anything that keep my kids quiet for more then one hour is always welcome :D
I say bring it on ;)
Title: Re: Speak/say selecteed movie name
Post by: Kalle on February 28, 2011, 02:06:13 AM
Hey giftie,

big thanks  :hugs for this perfect plugin  :D

Kalle
Title: Re: Speak/say selecteed movie name
Post by: giftie on February 28, 2011, 02:06:56 AM
is there any point in making a triple feature command?

Actually I think it might be nice if we could have a command to just set up X number of random movies with intros and intermission...  like party mode.  Or possibly with some kind of criteria like genre, so we could have a command like "entertain the kids for 8 hours" and have it go into Cinema Experience with random movies from the "Family" genre.

lol.  Maybe 8 hours is too much... but we could make them do exercises during intermission!

Always can be added..  Features for VoxCommando and other HTTP API apps are fairly easy to add, just need to get the syntax right... And HTTP API will still be around for at least another year, probably longer.

Random movies, Rating limits, by Year, by genre, by set.....   If it's in the database, it can be matched..

and I don't have to make GUI... :)  


Sorry Auri for taking so long to get your request done..  

Title: Re: Speak/say selecteed movie name
Post by: giftie on February 28, 2011, 02:10:34 AM
Hey giftie,

big thanks  :hugs for this perfect plugin  :D

Kalle

It's not perfect yet....  :)  Probably never will be...   

I felt like I needed to make it up to those that use VoxCommando, I got the feeling that I stepped on your toes the most with the update last Tuesday.... 


Title: Re: Speak/say selecteed movie name
Post by: Auri on February 28, 2011, 03:56:24 AM
...
Sorry Auri for taking so long to get your request done..  

By far no problem man.  I greatly appreciate the effort both you and James have done to fill in my request and add to it to make it even better ;)

Welcome to the board !

Regards
Auri
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 28, 2011, 08:26:10 AM
Random movies, Rating limits, by Year, by genre, by set.....   If it's in the database, it can be matched..

and I don't have to make GUI... :)  

Actuallly if it's possible, maybe we should just create an sql option in the CE plugin so we can construct our own queries.  Would that be relatively easy on your end?
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 28, 2011, 09:12:12 AM
Actuallly if it's possible, maybe we should just create an sql option in the CE plugin so we can construct our own queries.  Would that be relatively easy on your end?

Stupid question perhaps but since we have the payloads and the GenXML's in Vox, why would we need an SQL db on the XBMC and it's addons'es end ?
Surely XBMC has it's native DB with all the lib content no ?

Just trying to understand where you're going to James.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 28, 2011, 09:32:26 AM
Sure, XBMC has it's own DB obviously and we have the ability to scan it into payloadXML files and then request stuff by name.  But maybe we don't always want to specify a movie by name.

Currently when we use the double feature command we are passing the names of the two movies we want to watch and then the CE plugin is creating its own SQL query to find and queue those movies.

I'm suggesting that we leave it more open and flexible so that we can send the actual SQL request that we want to use.  This way we could ask it to Queue up 4 movies from 1972, or 3 movies from the "Family" genre, etc.

It makes more sense to use free SQL because then we can go crazy making any types of requests we want, and we won't need to bother Giftie every time we want to create something new.

If you don't know how to use SQL that's no problem because we can simply share our commands the way we normally do and eventually you'll get the hang of making your own.

If you look at how music is requested with mediaMonkey actions in VC this is exactly how it is done.  We construct sql queries and then mediaMonkey loads the matching songs.
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 28, 2011, 10:16:23 AM
Sure, XBMC has it's own DB obviously and we have the ability to scan it into payloadXML files and then request stuff by name.  But maybe we don't always want to specify a movie by name.

Currently when we use the double feature command we are passing the names of the two movies we want to watch and then the CE plugin is creating its own SQL query to find and queue those movies.

I'm suggesting that we leave it more open and flexible so that we can send the actual SQL request that we want to use.  This way we could ask it to Queue up 4 movies from 1972, or 3 movies from the "Family" genre, etc.

It makes more sense to use free SQL because then we can go crazy making any types of requests we want, and we won't need to bother Giftie every time we want to create something new.

If you don't know how to use SQL that's no problem because we can simply share our commands the way we normally do and eventually you'll get the hang of making your own.

If you look at how music is requested with mediaMonkey actions in VC this is exactly how it is done.  We construct sql queries and then mediaMonkey loads the matching songs.


I see where you are going now, ok that makes sence.

And I know how to use SQL, I'm a system admin ... I maintain MS SQL servers on a daily basis :D
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 28, 2011, 10:23:32 AM
I'm sure you'll come in handy then...

 :yay
Title: Re: Speak/say selecteed movie name
Post by: Auri on February 28, 2011, 10:51:26 AM
I'm sure you'll come in handy then... :yay

DOH !! I said to much already :D
I already have problems leave "my work" @ work, don't make me bring it to my leisure time also :p

I'll help where I can though  :)
Title: Re: Speak/say selecteed movie name
Post by: giftie on February 28, 2011, 09:25:48 PM
As long as you SQL queries would would return movie titles it should be simple to add. 
For instance:

"SELECT movieview.c00 FROM movieview JOIN genrelinkmovie ON genrelinkmovie.idMovie=movieview.idMovie JOIN genre ON genrelinkmovie.idGenre=genre.idGenre WHERE strGenre="Action" ORDER BY RANDOM() LIMIT 10"

returns 10 random movie titles that match the Genre of Action.

I know this works with SQLite(XBMC's native Database), a MySQL query probably would be quite similar.   
I'm glad I went with putting 'command' before the movietitle option...  Some how I knew more would come up... 
I don't see a problem putting 'command<li>sqlquery' in... 



30mins since this posted I already have working code(well it works with the query above) 

Supply me with some queries to test...
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on February 28, 2011, 11:13:52 PM
Cool Giftie,

I'm excited to try this out when I get up tomorrow.  I just got home from a night out and it's time for bed. :P
Title: temp split
Post by: jitterjames on March 01, 2011, 09:03:21 AM
Hi Giftie.  I am experimenting with this right now and so far so good.  Just one question.  Would it not be safer if our sql queries generated movie ids instead of titles?  Or would that be a lot of work to modify the plugin?
Title: temp split
Post by: jitterjames on March 01, 2011, 10:55:57 AM
It's good to have a reference for how to do a bunch of joins in XBMC, but I find your sql a bit long.  I prefer to use this:

RunScript(script.cinema.experience,command<li>sqlquery<li>SELECT movieview.c00 FROM movieview WHERE c14 LIKE '%%comedy%%' ORDER BY RANDOM() LIMIT 5)

It's important to note that we need to use %% instead of % in our like.  I don't know why that is.  I just tried it because I felt like I had seen it done that way before and it worked.

Once we get the CE script nailed down for this, I think I'll add a new command XBMC.CE.SQL and then we will only need to enter the SQL portion, to make it easier to edit.  So the param would be:
Code: [Select]
SELECT movieview.c00 FROM movieview WHERE c14 LIKE '%%comedy%%' ORDER BY RANDOM() LIMIT 5
in Vox if we wanted to use a payload for Genre then it would be

Code: [Select]
SELECT movieview.c00 FROM movieview WHERE c14 LIKE '%%{1}%%' ORDER BY RANDOM() LIMIT 5
if you wanted to see movies from France you could do:
Code: [Select]
SELECT movieview.c00 FROM movieview WHERE c21 LIKE '%%France%%' ORDER BY RANDOM() LIMIT 5
or movies by  director 'Frank Capra'
Code: [Select]
SELECT movieview.c00 FROM movieview WHERE c15 LIKE 'Frank Capra' ORDER BY RANDOM() LIMIT 5
you may notice that I used %% for Genre and not for Director.  The reason is that the movieview table in xbmc stores multiple genres in a single text field like this: Crime / Drama / Action, but does not seem to do this with Director.  Better not to use the %% wildcards if we don't need it because if we had a director whos name was a subset of another directors name then we would have problems.  We still use LIKE instead of equal because it ignores case.
Title: temp split
Post by: jitterjames on March 01, 2011, 11:04:24 AM
I would like to see someone come up with a join to let us queue random movies by Actor name...  ;D
Title: Re: temp split
Post by: Auri on March 01, 2011, 01:21:55 PM
I would like to see someone come up with a join to let us queue random movies by Actor name...  ;D

I have not yet seen the XBMC DB at all, but as you random c14, c21, etc ... you can't random c## the actors are in ?

Like
Code: [Select]
SELECT actors FROM movieview ORDER BY RANDOM() LIMIT 5 this is just out of my head with no idea how the XBMC db is made out.

If you need advance SQL help let me know, but your question should be done easily I reckon.

I'll have a look at the XBMC Db structure this weekend so I don't need to do stupid guesses like the above and can give actual examples.
Title: Re: temp split
Post by: giftie on March 01, 2011, 02:16:46 PM
I would like to see someone come up with a join to let us queue random movies by Actor name...  ;D

In my long winded, round about way, here you go...
SELECT movieview.c00 FROM movieview JOIN actorlinkmovie ON actorlinkmovie.idMovie=movieview.idMovie JOIN actors ON actorlinkmovie.idActor=actors.idActor WHERE strActor="Adam Sandler" ORDER BY RANDOM() LIMIT 10


For those who haven't figured out the movieviewView:

c00 = Movie Title
c01 = Movie Plot
c02 = Plot Outline
c03 = Tag Line
c04 = # of Voters(IMDb)
c05 = Vote Rating(IMDb)
c06 = Writer
c07 = Year
c08 = thumbnail url
c09 = IMDb #
c10 = ? not sure ? -
c11 = Runtime
c12 = MPAA Rating
c13 = IMDb Top 250 placement
c14 = Genre
c15 = Director
c16 = Original Title - I think
c17 = ? Not Sure ? - Empty in my Db
c18 = Studio

Title: Re: Speak/say selecteed movie name
Post by: jitterjames on March 01, 2011, 02:21:59 PM
Thanks Giftie,

I think in this case, that's about as short as you can make it!  Haven't tested it but it looks good.
So are you going to keep it like this and publish it, or do you want to use movie ids instead of titles?

Auri: the actors are in a separate table from the movieview, and the link between actors and movies is in yet another table, hence the joins.  When you have time check out google for "xbmc database" or better yet, grab an sqLite viewer and check out the actual data in your library.  Also note that we need to return movies as the end result, not actors.
Title: Re: temp split
Post by: giftie on March 01, 2011, 02:40:42 PM
Hi Giftie.  I am experimenting with this right now and so far so good.  Just one question.  Would it not be safer if our sql queries generated movie ids instead of titles?  Or would that be a lot of work to modify the plugin?

Not a lot of work.  Though I can't see it being any safer.  I would need to add another SQL query internally to change idMovie to Movie Title...  - I see in my own Db, I have two movies that don't seem to have Movie Titles(I know the script will skip these by default) 

quick link to XBMC's wiki page - http://wiki.xbmc.org/index.php?title=The_XBMC_Database#view

Title: Re: Speak/say selecteed movie name
Post by: jitterjames on March 01, 2011, 02:47:28 PM
Maybe it wouldn't be any better then.  I'll leave it to your judgement.
Title: Re: Speak/say selecteed movie name
Post by: Wanilton on March 03, 2011, 03:01:15 PM
James,
Now script is done with SQL command, in this new Cinema Experience Addon for XBMC - version 1.0.31

- Enhancement - Added sqlquery command
- use:
RunScript(script.cinema.experience,command<li>sqlq uery<li> .. your query ..)

test your queries out before trying them with the script(SQLiteSpy is a great tool for XBMC's default database)

example:
HTTP API -> RunScript(script.cinema.experience,command<li>sqlq uery<li>SELECT movieview.c00 FROM movieview WHERE c14 LIKE '%%action%%' ORDER BY RANDOM() LIMIT 10)
Skin -> RunScript(script.cinema.experience,command;sqlquer y;SELECT movieview.c00 FROM movieview WHERE c14 LIKE '%%action%%' ORDER BY RANDOM() LIMIT 10)

A couple of SQL Queries:

5 Random Movies from the Genre Comedy
SELECT movieview.c00 FROM movieview WHERE c14 LIKE '%%comedy%%' ORDER BY RANDOM() LIMIT 5
5 Random Movies Based on actor Adam Sandler:
SELECT movieview.c00 FROM movieview JOIN actorlinkmovie ON actorlinkmovie.idMovie=movieview.idMovie JOIN actors ON actorlinkmovie.idActor=actors.idActor WHERE strActor="Adam Sandler" ORDER BY RANDOM() LIMIT 5

As you can, make some commands are built to be able to enjoy these new opportunities via voxcommando.

Thanks giftie and James, this is much more powerfull now.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on March 03, 2011, 10:36:03 PM
Thanks for the heads up W.  After a quick test of version 31 everything seems to be working well.

I will post an xml group with a few different commands when I get a chance.  This leads me to my next possible challenge: wildcards events.

In other words, being able to handle an event like XBMC.CElaunch.2, or XBMC.CElaunch.3

of course we can currently drag both events into a command, but it would be nicer if we could use XBMC.CElaunch.*
Title: Re: Speak/say selecteed movie name
Post by: lja on August 01, 2014, 10:56:51 PM
OK.  We are finally all set.  Make sure you get the latest version of Cinema Experience (...30 I think)

then try the double feature command!

Can this be used with the current version of cinema experience? I have tried it but get the error "unknown base action:XBMC"
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on August 01, 2014, 11:23:55 PM
Since I posted that at the beginning of 2011 I think it's a safe bet that it was for Eden.  So, no, it won't work with Frodo or later versions of XBMC.
Title: Re: Speak/say selecteed movie name
Post by: lja on August 01, 2014, 11:26:38 PM
Since I posted that at the beginning of 2011 I think it's a safe bet that it was for Eden.  So, no, it won't work with Frodo or later versions of XBMC.

Thanks.
Title: Re: Speak/say selecteed movie name
Post by: jitterjames on August 01, 2014, 11:29:24 PM
Here's an updated version:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.0.0.5-->
<command id="430" name="double feature {1} and {2}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>TTS.Speak</cmdType>
    <params>
      <param>Enjoy watching: {PF.1}, followed by {PF.2}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>XJson.Raw</cmdType>
    <params>
      <param>Addons.ExecuteAddon</param>
      <param> "wait": false, "addonid": "script.cinema.experience", "params": [ "movieid={1};{2}" ]</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>double feature</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovieIDs.xml</payloadFromXML>
  <phrase>and</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovieIDs.xml</payloadFromXML>
</command>
Title: Re: Speak/say selecteed movie name
Post by: nime5ter on August 01, 2014, 11:42:13 PM
http://voxcommando.com/forum/index.php?topic=1489.0
Title: Re: Speak/say selecteed movie name
Post by: lja on August 02, 2014, 01:19:11 AM
Thanks @jitterjames

I had been able to get the "take me out to watch xml to work and had started trying to understand that to see how I could adapt it. I notice that the revised version uses a similar approach. Thanks very much for your help.