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 - SexGecko

Pages: [1]
1
Military time is just a 24 hour clock so that you can omit AM and PM.

So 08:00 would be 8:00AM, whereas 13:00 would be 1:00PM.

So You'd basically just have to use {1}:{2} and then add some conditionals (0<={1}<=12) and (if (0<={1}<=9) then {1} = 0{1}) or what have you (this last one might apply to {2} as well depending on how you say the time)

2
VoxCommando Basics and Core Features / Getting back on this bandwagon
« on: December 22, 2011, 07:58:39 PM »
Ok, I'd had this set up for a while now (just hadn't gotten around to posting) It works great! wakes me up nice and early every morning to a message from my British TTS voice and cuts about halfway into "I've Got You Babe".

So, now I'd like to expand this idea a little more, I'd like to:

1. Make it able to be turned off and on by way of voice (not the music itself, but "Enable alarm for tomorrow" or "Disable alarm" options)

2. Make the time adjustable by voice (i.e. "Set alarm for 6:30 AM")


Here's how I'm going about #1(so that's a start at least!):

my scheduled task is called "AlarmClock"

Disable Alarm Clock command:
Launch.Hidden      SchTasks&&/Change /TN AlarmClock /DISABLE

Enable Alarm Clock command:
Launch.Hidden      SchTasks&&/Change /TN AlarmClock /ENABLE


Now for #2 I'm thinking something along the lines of:

Launch.Hidden      SchTasks&&/Change /TN AlarmClock /ST {1}
(needs to be 00:00 formatting)
Changing the time on a scheduled event requires the username and password etc. I am still looking into that bit of it.
The real issue is getting Vox to interpret the military time correctly (something like {1}:{2}??) tough call.

If I get past the authentication stuff I may try just setting up one command (or batch file) for each time I'd like (6,7,8am etc.) then I can just hardcode the times (this is almost as good)

Let me know if you have any ideas.

Cheers

3
Sorry, I mean "have them stored as actual genres in the XML".

For example if I have 8 tracks in my library, and the genres on ALL of them are "Irish;Celtic" (i.e. I have NO songs with JUST "Irish" or JUST "Celtic" as their genres) then when the XML is generated I will have "Irish;Celtic" available as a genre but not "Irish" or "Celtc" individually since they never existed as standalone text to assimilate in the first place.

Basically all this means is the engine to generate XML for media monkey counts semicolons as actual Genre text and not genre delimiters
(which I suppose could make sense if someone wanted their genre to be "Spell;d L;ke Punk R;ck" or something weird like that, however THIS WOULD NOT FLY in mediamonkey itself, so that argument is irrelevent)

One thing you should note though however is that the select statement you have managed to come up with above (thanks again for that) will not return any results if the genre you're asking for has semicolons in it, which means you'd have to adjust how the "Gen XML" script treats semi colons.

EDIT: I clarified this a bit.

4
Sorry I've been MIA, trying your suggestions and I'll let you know how my tests come up.

EDIT: Good show man! This works perfectly!

You still need at least one song in your library of only one genre (one for each type) to register them as actual genres, but this is a different issue altogether (and one I don't care about at all)

Thanks for all your help, this really is exactly what I was looking for!

 :)

EDIT: Might be worthwhile to throw this out in vanilla from now on? Or if it seems to heavy maybe just a sticky on this part of the forum, again, supreme work!

5
I've tried changing
"Genre Like '{1}'  order by random() limit 200"
to
"Genre Like '{1};%'  order by random() limit 200"
and that works (as well as your original suggestion of %{1}%)

but I can't seem to get it working with the OR operator

for example:

"Genre Like '{1};%' OR Genre Like '%;{1};%' OR Genre Like '%;{1}' order by random() limit 200"

does not work, which would theoretically be a complete and robust solution (just about anyway) Any idea why I cant throw some 'OR's in there?

6
This seems like a pretty good solution for the meantime,
you must have at least one song with ONLY a certain genre though (for example if you don't have any that are just "funk" it will return "funk;soul" or "funk:jazz" or whatever other combinations you might have and only play that combo, no big deal)

The only other issue I can think of is (like you mentioned) the redundancy factor (such as now when I ask for rock, it will play all light and progressive rock tracks I have too. Guess I'll change it to "Standard Rock").

Thanks for your help! prompt as always!

7
I noticed that when asking vox to play a certain genre of music in MM, it would only play songs where the genre EXACTLY matched what was asked for.

This makes sense, however, when selecting genres within media monkey, it allows you to specify multiple genres for a song using semi-colons (i.e. "Jazz;Blues")

I realize that this is an added benefit in MM, but is there a way to utilize this? (besides simplifying all my songs to have only one genre)

TL;DR: When I ask for "Jazz", I won't get any "Jazz;Blues" in my playlist. When I SELECT "Jazz" in media monkey, I get it all.

8
I'm finally getting back into toying around with this and I was wondering how easy it would be to replace text in my variables.

I have something like:

Get weather command
Results.storelast into {weather}
???
TTS. Speak {weather}

But in the "???" I'd like to replace some text
(for example instead of saying "ten degrees see(C)" I'd rather it be "centigrade" or something.
And instead of saying "Wine-d ess double-you (Wind SW), maybe something as ambitious as "A south-westernly wind"(Note said "win'd" not "wine-d"))

I can figure out the logic fine I'm sure, I'm just not sure how to replace text within my variables properly, your help would be much appreciated.

9
This is great stuff! thanks for all your help(s)!

10
You may be interested to note that i was also able to use "({LongTime})Contains(i )" with i=0 through 9 to provide a bit more random personality to my British TTS voice (note the space!)

Like so: http://i.imgur.com/cIVmC.png

Is there an easier way to do this than 10 conditional statements? You haven't got some kind of "give me 10 arguments and i'll choose randomly between them" eh?

EDIT: One more quickly if you have time, I'm trying to tie the weather into my morning alarm clock, i see you have a 'weather' option, but i have yet to have anything returned from it (says it returns text, but to where?) If at all possible i'd like to nest part or all of it into a TTS.Speak so I can have the voice read me the weather report... Is this asking too much? It would certainly go well with the alarm clock idea..

11
Wow, thanks for the great response so late in the evening, it's very helpful and I'm most of the way through your suggestions.

can you clarify the standby thing a bit more? where is the event I'm adding to exactly?

Thanks!

EDIT: nevermind, your instructions are actually great! I'll let you know how the alarm clock turns out(and whether I can cut halfway through "I've got you Babe" in media monkey

12
Hi, I'm not quite sure how to get a statement using your "contains" keyword to work, I'd like to use {Longtime}Contains{7:00am} or something of the like, depending on how that operates and what longtime returns

Think you can give me a quite syntax tutorial on how to rig up one of those statements with the time?

This is so i can wake up to some mediamonkey stuff fyi.

Thanks

EDIT: Maybe this is more complicated than I'm thinking, the event would actually have to fire based on the time, not just "use conditional logic"... let me know if this is even possible

EDIT2: One more quick question, I'm trying to use "prefix only" (as in yellow standby mode) so that my music doesn't set off commands, is it possible to have it "start on windows" directly into yellow mode?

13
Figured it out, It wasn't able to access my .bat for some reason so i just moved it to my documents, thanks for your help.

14
The path is correct, so I'm not really sure, I'm able to "open text files" and do other such things, juts not .bats, do you think it could be some kind of inherent windows safeguard? Maybe I have to "run as administrator for voxcommando? I'm at work now, I'll update with some more details when I get home, thanks for your reply.

15
Windows 7 64bit,
I've tried launch.openfile, launch.openbat and a few others. I can see the command being successfully interpreted and 'executed' but it never actually runs/opens the file.

I'm using the trial version, is there a limitation on running external executables that I am unaware of? I need to make sure this simple functionality is there before I buy it.

Pages: [1]