News:

VoxCommando works with Amazon Echo, Domoticz, EventGhost, Google Assistant, IFTTT, iTunes, J.River Media Center, Kodi, MediaMonkey, Nest, Philips Hue, Vera, Wemo, and the list keeps growing!

Main Menu

Featured Movie / Recommended Movie

Started by bp_pbs, March 03, 2012, 05:51:32 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

bp_pbs

So I wanted a command that picks a random movie and TTS the Title and Plot. I was able to put one together but it has a hard time with movies that contain ' symbols. Ex. Ferris Bueller's Day Off.
Do you have any suggestions on how I can get this to work better?

jitterjames

Quote from: bp_pbs on March 03, 2012, 05:51:32 AM
So I wanted a command that picks a random movie and TTS the Title and Plot. I was able to put one together but it has a hard time with movies that contain ' symbols. Ex. Ferris Bueller's Day Off.
Do you have any suggestions on how I can get this to work better?

Clever.  Can you please export a group containing only this command and then attach it to a post here, so I can experiment with it without having to copy every line by hand?

Also, you say "it has a hard time", but maybe you can be more specific about what is happening, or what is not working.

jitterjames

do you want it to start playing the movie right away, or just show it?

bp_pbs

I wanted it just to show it like a recommendation. I have so many movies that some get lost in the bunch.
I see what the query is doing but not sure how to work around it. So with movies like "Man on Fire" it looks like this
queryvideodatabase(select c01 from movie where c00 = 'Man on Fire')

But with movies like "Ferris Bueller's Day Off" it looks like this
queryvideodatabase(select c01 from movie where c00 = 'Ferris Bueller's Day Off')
Its implementing the ' on Bueller's. So it's failing the last SQL statement

jitterjames

why are you using the payloadXML file:

XbmcPayloads\xbmcMovies.xml

in your command?

jitterjames

#5
I think it makes more sense to request the movie title and the synopsis in a single request.

try the attached:

bp_pbs

Whoa...That was way easier than I was trying to make it. I tried something similar to this but the Title and Plot kept running together.

Thanks.

jitterjames

#7
any time.

by the way the XBMC.Filter command doesn't always work that well because of the way XBMC handles SMS filter keys.  You can only filter on a single word.  You'll notice for example if you try to filter on one of the star wars movies it will probably filter to show all the Star Wars movies, instead of just the one you want.

One solution would be to use something like

VC.TellVox       Find movie {match.1}

this will work as long as you have the command "Find Movie X" in your tree, which you should if you installed the standard XBMC configuration and did not remove this command.

This "tellvox" action will emulate the text as a spoken command (as though you said "find movie blah blah blah").  And the find movie command will generate a smart playlist which will return the correct movie, and only the correct movie.

:yay

rablack97

Hello I like this command, was playing around with it a little today.

I was wondering if there was a way to put vox in standby mode until the TTS is done with the plot and then back to on mode when complete.

Vox picks up on the speech during the plot and just start opening up all kinds of stuff.

rablack97

NVM, This works for me...

Dave

I'm not at home at the moment so i can't view the comand group or test anything.
But i guess you can just insert a VC.Standby command before your tts.speaksync and VC.On behind it...

bp_pbs

@jitterjames
Yeah I was using the XBMC.Filter because I was having trouble with the smartlist with ATV2. But I am now using HTPC so I will give it a try again.

@rablack97
I know you got it to work but was just wondering couldn't put VC.Off or VC.Standby before TTS.Stop or TTS.Speak How about, {match.1}.
And then change the TTS.Speak {match.2} to TTS. SpeakSync {match.2} and put a VC.On at the end…Like Dave I'm not home to test this either but just throwing my 2 cents in.
I personally use prefix and unless this command choices “Devil in the Blue Dress”..(my prefix name is Daphne…Lol)….I should be fine.

rablack97

Ah ok....

Took both of your advice....This works really well too.

thesystemera

Have you guys noticed it doesn't allways select the movie but rather the dirback button ".."

Is there any way to make the system go straight to the movie info page...  the one you activate by pressing 'I" on the keyboard...

Cheers all..

thesystemera

Also one more thing, would it be at all possible to include Genre in this...  It would be great if Anika [my four year old] and I could just say....  "Hey Brian, could you recommend us a 'family' movie". 

Neat idea....  I was showing it off earlier to her and it popped up with "Saw 5" oh on that note, can you tell Brian to shut up or something while reading the synopsis LOL...