VoxCommando Forum

Help and Support (Using VoxCommando) => MediaMonkey => Topic started by: Kalle on April 28, 2011, 06:23:26 AM

Title: how create special payloads
Post by: Kalle on April 28, 2011, 06:23:26 AM
Hi James,

I need help.

How should the command look for MM "play Song abc by Artist xyz" for use with the special payload in option menue?
Can you give me a example? Thanks a lot  :hugs

Kalle
Title: Re: how create special payloads
Post by: Wanilton on April 28, 2011, 06:47:16 AM
Hello Kalle,

This is "only" for use with iTunes, look this post where James explain about play Song abc by Artist xyz :
http://voxcommando.com/forum/index.php?topic=474.msg3450#msg3450

Wanilton
Title: Re: how create special payloads
Post by: Kalle on April 28, 2011, 07:00:52 AM
Quote from: Wanilton on April 28, 2011, 06:47:16 AM
Hello Kalle,

This is "only" for use with iTunes, look this post where James explain about play Song abc by Artist xyz :
http://voxcommando.com/forum/index.php?topic=474.msg3450#msg3450

Wanilton
Thanks for information, I hope there is a possibility for MM
Title: Re: how create special payloads
Post by: Wanilton on April 28, 2011, 07:03:54 AM
I agree, for XBMC too...
Title: Re: how create special payloads
Post by: Kalle on April 28, 2011, 07:10:05 AM
Quote from: Wanilton on April 28, 2011, 07:03:54 AM
I agree, for XBMC too...
something like it might be, but knows not how
Title: Re: how create special payloads
Post by: jitterjames on April 28, 2011, 08:12:06 AM
You take one kid to the zoo, and then all the kids want to go to the zoo!

I am actually a bit surprised that people really want this feature.  You need to really know your library well to use it.  For me, just asking for the song name is sufficient, but I mostly request music using artist, or playlist names.

Kalle, you could do something like what you have shown in your image but it would be matching every song with every artist.

so you could say "play song yellow submarine by pink floyd" and the computer would understand, but there would be no song (I don't think they ever did a cover of this Beatles song  :)).  For it to really work well it needs to know in advance which artist is associated with each song, otherwise it is likely to make a mistake.

For now I can create a command similar to what you have shown here that should technically "work", so you can try it.

to create the real solution I will have to rewrite the genXML for both MM and XBMC to generate new special payloadXML files that look like this

    <payload>
        <value>D2EF2B89ABA0947B</value>
        <phrase>That Girl From Brownsville Texas&amp;&amp;Jim White</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>
    <payload>
        <value>CC5AE1F4E13E2C73</value>
        <phrase>All The Way From America&amp;&amp;Joan Armatrading</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>


as you can see the songtitle is paired with the correct artist, and the value is the exact ID of the song.

so, which one do I do first?? MM or XBMC?  ;)
Title: Re: how create special payloads
Post by: Kalle on April 28, 2011, 08:32:04 AM
Quote from: jitterjames on April 28, 2011, 08:12:06 AM
You take one kid to the zoo, and then all the kids want to go to the zoo!

I am actually a bit surprised that people really want this feature.  You need to really know your library well to use it.  For me, just asking for the song name is sufficient, but I mostly request music using artist, or playlist names.

Kalle, you could do something like what you have shown in your image but it would be matching every song with every artist.

so you could say "play song yellow submarine by pink floyd" and the computer would understand, but there would be no song (I don't think they ever did a cover of this Beatles song  :)).  For it to really work well it needs to know in advance which artist is associated with each song, otherwise it is likely to make a mistake.

For now I can create a command similar to what you have shown here that should technically "work", so you can try it.

to create the real solution I will have to rewrite the genXML for both MM and XBMC to generate new special payloadXML files that look like this

   <payload>
       <value>D2EF2B89ABA0947B</value>
       <phrase>That Girl From Brownsville Texas&amp;&amp;Jim White</phrase>
       <subsetmatching>true</subsetmatching>
   </payload>
   <payload>
       <value>CC5AE1F4E13E2C73</value>
       <phrase>All The Way From America&amp;&amp;Joan Armatrading</phrase>
       <subsetmatching>true</subsetmatching>
   </payload>


as you can see the songtitle is paired with the correct artist, and the value is the exact ID of the song.

so, which one do I do first?? MM or XBMC?  ;)

Hi James, I want to give you any additional work, but it would be a nice feature.  :D  (I go later in the zoo, I did everything for myself, haha  ;D  )
Give Wanilton for  XBMC precedence, I have time and it's not really important  ;)

Thanks Kalle
Title: Re: how create special payloads
Post by: jitterjames on April 28, 2011, 08:38:31 AM
here is the command.  try it and you will see what I mean.  If you speak carefully it will work... but it can easily get the wrong artist for the song.
Title: Re: how create special payloads
Post by: Kalle on April 28, 2011, 08:42:31 AM
Quote from: jitterjames on April 28, 2011, 08:38:31 AM
here is the command.  try it and you will see what I mean.  If you speak carefully it will work... but it can easily get the wrong artist for the song.

PERFECT, it works fine   :clap
Title: Re: how create special payloads
Post by: mclough6 on April 28, 2011, 09:42:44 PM
I want to go to the zoo too!  :D  I agree that it is hard enough to remember a particular song, let alone the song and who it is by.  Having said that, the command play song X on album Y would at least be as useful.  For example I have two versions of Mark Knopfler's Speedway at Nazareth on two different albums.  When I ask for the song, it is always the version I do not prefer.  So it would be nice to be able to get to the song version I want.  But that is a minor issue at best.
Title: Re: how create special payloads
Post by: Wanilton on April 28, 2011, 09:52:01 PM
I don´t go to zoo (this is a Joke), but i want this feature ok for use  in XBMC (this is a cool feature) IMO.

Wanilton
Title: Re: how create special payloads
Post by: jitterjames on April 28, 2011, 10:04:13 PM
Quote from: mclough6 on April 28, 2011, 09:42:44 PM
I want to go to the zoo too!  :D  I agree that it is hard enough to remember a particular song, let alone the song and who it is by.  Having said that, the command play song X on album Y would at least be as useful.  For example I have two versions of Mark Knopfler's Speedway at Nazareth on two different albums.  When I ask for the song, it is always the version I do not prefer.  So it would be nice to be able to get to the song version I want.  But that is a minor issue at best.
one quick solution for this particular problem would be to change your play song command to sort songs with higher rated songs first.  If you don't rate your songs, you could probably do the same thing by having songs with a higher play count play first.

If you are interested in this I can help to adjust the command.  I wouldn't use it for album or artist requests because then you would aways hear the same songs, but for play song ABC I think it makes a lot of sense!  :bignod
Title: Re: how create special payloads
Post by: jitterjames on April 28, 2011, 10:05:29 PM
Quote from: Wanilton on April 28, 2011, 09:52:01 PM
I don´t go to zoo (this is a Joke), but i want this feature ok for use  in XBMC (this is a cool feature) IMO.

Wanilton

I will definitely look into it!
Title: Re: how create special payloads
Post by: Wanilton on April 28, 2011, 10:14:34 PM
Quote from: jitterjames on April 28, 2011, 10:05:29 PM
I will definitely look into it!

Thanks James, do you receive your Onkyo??
Title: Re: how create special payloads
Post by: jitterjames on April 28, 2011, 10:53:46 PM
NO!  I think it is being shipped from Japan by Donkey.
Title: Re: how create special payloads
Post by: mclough6 on April 29, 2011, 02:20:30 PM
The rating solution seems to make the most sense for me.  I only have a few songs that are duplicated across multiple albums so the fix would be easy.  If you would be willing to modify the command structure to allow a rating filter but still allow songs to be selected regardless of rating, that would be very helpful.
Regards,
Title: Re: how create special payloads
Post by: jitterjames on April 29, 2011, 02:44:58 PM
It could not be much easier.  Just modify your play song command so that the command MM.LoadBySQL has the following parameter:

SongTitle Like '{1}'  order by Rating Desc

that's it!

the other way (if you don't rate songs) would be

SongTitle Like '{1}'  order by PlayCounter Desc
Title: Re: how create special payloads
Post by: mclough6 on April 29, 2011, 11:00:08 PM
Apparently not simple enough for me.  I double clicked on the play command which put me into the command editor.  I found the command you referenced and changed it to read "SongTitle Like '{1}'  order by Rating Desc"  I then saved and exited and restarted Vox.  What I got was a WARNING errors during build and now I have no media monkey commands at all in the command tree. 



Title: Re: how create special payloads
Post by: Kalle on April 30, 2011, 04:28:53 AM
Quote from: mclough6 on April 29, 2011, 11:00:08 PM
Apparently not simple enough for me.  I double clicked on the play command which put me into the command editor.  I found the command you referenced and changed it to read "SongTitle Like '{1}'  order by Rating Desc"  I then saved and exited and restarted Vox.  What I got was a WARNING errors during build and now I have no media monkey commands at all in the command tree. 




take the command in a own group and test one more. Make sure that you have not ever used the phrase in a other command.

Kalle
Title: Re: how create special payloads
Post by: jitterjames on April 30, 2011, 09:05:35 AM
Quote from: mclough6 on April 29, 2011, 11:00:08 PM
Apparently not simple enough for me.  I double clicked on the play command which put me into the command editor.  I found the command you referenced and changed it to read "SongTitle Like '{1}'  order by Rating Desc"  I then saved and exited and restarted Vox.  What I got was a WARNING errors during build and now I have no media monkey commands at all in the command tree. 

sorry this post is not making much sense to me.  First of all you click "Edit" to go into the command editor.  I don't know what you mean by double click play.

saying "I found the command you referenced" leaves too much room for error.  Maybe I referenced the wrong command, maybe you misunderstood and actually editing something else.  What command did you edit?  It sounds like you edited the "play" command, but that doesn't make sense to me.

saying that you "got errors" doesn't help much.  what error, where? what was the error?

When you say "no media monkey commands at all in the command tree", is that what you actually mean?  If you click "edit" to go to the command tree, are all your groups there, except all the mediamonkey groups?  This seems very close to impossible to me.

Is VC accepting and performing other voice commands?

what version of VC are you using?

do you have a backup you can restore?

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

probably the only way I can maybe figure out what is going on is if you send me a zip of your whole VC folder.
Title: Re: how create special payloads
Post by: mclough6 on April 30, 2011, 12:08:32 PM
Obviously I am not well versed in altering the program.  I am including a zip because it would be impossible (for me anyway) to remember every step I took and every command I inserted.  I have started several attempts of explaination but I figure the best thing is to give the file.  There is actually no problem because i have not altered this version at all previously and I can simply download it again.  Although you might be interested in how some dumba** can screw up your program.  :bonk
Title: Re: how create special payloads
Post by: mclough6 on April 30, 2011, 02:21:19 PM
I followed the link you gave me.  I don't think your program has a bug, I just used the incorrect keying sequence. 
Title: Re: how create special payloads
Post by: jitterjames on April 30, 2011, 02:38:31 PM
The voicecommands.xml file seems to have been truncated.  The second 1/2 of the file is missing.

I have never seen that and I can't imagine what would have caused it.

I'm not sure why it is so hard for you to describe what you did.  It is only a few steps.
Title: Re: how create special payloads
Post by: mclough6 on April 30, 2011, 03:05:18 PM
Ok I tried to modify the play command again with the same result.  I will try and recreate my actions as best I can.

Opened Vox Commando
Don't know if it made a difference, but Media Monkey was open as well.
Clilcked on Edit
opened "MM Music by Name"
Highlighted "Play Song"
clicked Modify at top of screen, nothing happened
clicked modify at top of screen, after highlighting the payload under play song, nothing happened.
I then double clicked the command play song and the command builder came up
I highlighted MMloadbySQL, clicked on the command "Song title like...."
and changed order by random() limit 200
to order by rating desc.
clicked ok and save and execute
and then I got the error message "WARNING errors during build"
When I clicked on the edit button, nothing was on the right hand side of the screen.

I hope that is detailed enough.
Title: Re: how create special payloads
Post by: mclough6 on April 30, 2011, 03:16:53 PM
sorry, I meant to say nothing was on the left hand side of the screen
Title: Re: how create special payloads
Post by: jitterjames on April 30, 2011, 04:43:27 PM
weird-o-rama.  Thank-you for the detailed report.  You should be able to restore by deleting the file "voicecommands.xml" and then renaming the one called "voicecommands.bak" to "voicecommands.xml"

what happens if you just open the editor and then click "Save all and close"

it seems to be having trouble saving for some reason, but I don't know why and I'm wondering if it's related to the command you are editing or if it just happens no matter what when you save.

also what version of VoxCommando are you using?  0.887b?

are you running windows in "English US" display language?

by the way the word "modify" is just a label, not a button.  I guess it needs a colon after it... :-[

Title: Re: how create special payloads
Post by: mclough6 on April 30, 2011, 05:04:18 PM
I am using the English version and 887b.  Were you able to recreate the problem?
Title: Re: how create special payloads
Post by: jitterjames on April 30, 2011, 05:29:20 PM
no, I have no idea what is going on.

also your steps

-clicked ok and save and execute
-and then I got the error message "WARNING errors during build"

are not possible.

if you click OK then the command builder should disappear immediately and then you cannot click "save and execute".

I would imagine that you meant

- clicked OK (window closes)
- clicked "Save all and close"

then you would still not get the error message until you either closed the program and then ran it again, or clicked one of the restart options on the file menu.

so I'm still trying to imagine what you did, even if I know exactly what you did, I'm not sure if I can recreate it.

I can send you the updated voicecommands.xml file, but next time you want to edit something you'll still have the problem.
Title: Re: how create special payloads
Post by: mclough6 on April 30, 2011, 07:28:28 PM
You are correct the error message did not happen until I restarted.
Title: Re: how create special payloads
Post by: Kalle on May 01, 2011, 02:13:32 AM
Quote from: mclough6 on April 30, 2011, 07:28:28 PM
You are correct the error message did not happen until I restarted.

Hi mclough6,

take a look in this manual ((from Page14)  http://voxcommando.com/forum/index.php?topic=353.msg1843#msg1843 ), it is in german, but useful pictures to figured out something.

Greetings Kalle
Title: Re: how create special payloads
Post by: jitterjames on May 01, 2011, 08:54:30 AM
Hi Kalle,

I'm pretty sure that mclough6 is experiencing some kind of bug.  The problem is that I don't know what is causing it, and it seems like only he has it. (so far).

mclough6: would you be willing to share your desktop with me via teamviewer so that I can try a few things to try to narrow it down?  It is too difficult to do it through messages alone.

If you want to tray something, do the exact same procedure using version 0.885 and tell me if you have the same problem.

thanks
Title: Re: how create special payloads
Post by: mclough6 on May 01, 2011, 08:56:22 AM
Yes I would be willing to do so.  I am online now (Sunday morning) if you want to try.  Do I need special software to do so?
Title: Re: how create special payloads
Post by: jitterjames on May 01, 2011, 09:06:55 AM
just teamviewer which is free.

http://www.teamviewer.com/en/index.aspx

I am also turning on skype.  I am jitterjames on skype.  If you have skype this will allow us to talk too and will allow you to send me your TeamViewer id and password privately.  Actually teamviewer has voice chat built in but sometimes it gets confusing.
Title: Re: how create special payloads
Post by: mclough6 on May 01, 2011, 09:54:47 AM
James, I completely lost internet and had to reboot router.  It is working now if you need to try anything else.
Title: Re: how create special payloads
Post by: jitterjames on May 01, 2011, 10:30:09 AM
for the record, it's working now, but we never figured out what was wrong!  :bonk
Title: Re: how create special payloads
Post by: mclough6 on May 01, 2011, 03:40:21 PM
Kalle,
The manual you created for Vox looks superb.   :D  Have you made any progress on the English version? 
Title: Re: how create special payloads
Post by: jitterjames on May 01, 2011, 03:50:38 PM
It's incomplete and out of date but I think all we have in English is the wiki.  Still it's not too bad:

http://voxcommando.com/mediawiki/index.php?title=How_to_use_VoxCommando
Title: Re: how create special payloads
Post by: Kalle on May 01, 2011, 03:59:01 PM
Quote from: mclough6 on May 01, 2011, 03:40:21 PM
Kalle,
The manual you created for Vox looks superb.   :D  Have you made any progress on the English version? 
Thanks, no only in german, but will write one in english and one in german. I want to wait until higher version 0.90, unless James tells me that at the command builder not a lot of changes, then I'll begin. In the Wiki help you find also a lot of material, a manual requires time, as I try out everything that is written there.

Kalle