Author Topic: version 0.887b  (Read 12788 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
version 0.887b
« on: April 26, 2011, 09:24:16 AM »
Edit: Here is version 0.887b with the language fix discussed below.

Look in options under advanced.  There are number of new settings to help control long phrases.  If a phrase is too long a warning will appear in the history window and the log file listing the offending phrases.

New in this version:  File Actions.  See the link below for details
http://voxcommando.com/mediawiki/index.php?title=Actions#File

Other changes:

the biggest change in this version is that the processing (rebuilding) of grammars is multi-threaded.  One thread is created for each grammar (group).  This way you load times could be reduced to as little as "25%" of the original time if your CPU has 4 cores.

If you have all your heavy commands (play artist, play album, play song) in the same group, you can achieve faster processing by moving the commands into separate groups so that they can be loaded in parallel .  Usually "play songs" is the longest to load so you can just move it to its own group.  

This only affects rebuilding of commands.  If you are simply restarting, without making any changes, it will simply load the cached files which is much faster.  In this case you should see load times that are similar to the version 0.885.
« Last Edit: April 27, 2011, 06:33:25 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: version 0.887
« Reply #1 on: April 26, 2011, 09:27:45 AM »
As you can see in the attached image there are new options on the "Advanced" tab in VoxCommando.

The group "Phrase Processing" tells VC how to deal with long phrases in payloadXML files.

The best way to explain the settings is with an example.  Consider the song: "I Am A Man Of Constant Sorrow Instrumental"

now we look at all the different phrases that we must listen for just for this one song...

Code: [Select]
[too short]  I
[too short]  I Am
[too short]  I Am A
I Am A Man
I Am A Man Of
I Am A Man Of Constant
I Am A Man Of Constant Sorrow
[already added]  I Am A Man Of Constant Sorrow Instrumental
[too short] I
[too short] I Am
[too short] I Am A
[too short] I Am A Man
I Am A Man Of
I Am A Man Of Constant
I Am A Man Of Constant Sorrow
[too long] I Am A Man Of Constant Sorrow Instrumental
[too short] Am
[too short] Am A
[too short] Am A Man
Am A Man Of
Am A Man Of Constant
Am A Man Of Constant Sorrow
[too long] Am A Man Of Constant Sorrow Instrumental
[too short] A
[too short] A Man
[too short] A Man Of
A Man Of Constant
A Man Of Constant Sorrow
[too long] A Man Of Constant Sorrow Instrumental
[too short] Man
[too short] Man Of
Man Of Constant
Man Of Constant Sorrow
Man Of Constant Sorrow Instrumental
[too short] Of
Of Constant
Of Constant Sorrow
Of Constant Sorrow Instrumental
[too short] Constant
Constant Sorrow
Constant Sorrow Instrumental
[too short] Sorrow
Sorrow Instrumental
Instrumental

the total length of the song is 42, so it passes the first test "Maximum phrase length" = 60.  If it were longer than 60 characters then it would either be skipped (not included at all) or truncated (only the first 60 characters kept).

then we always start by adding the entire phrase, all words, no matter what.
then we look at all the sub-phrases and test their length.
in this example the minimum length is 4 characters, but VC will automatically raise this value a little bit if the phrase is very long.
Our maximum sub-phrase length will reject some of the longer subphrases such as "Am A Man Of Constant Sorrow Instrumental", but remember that the whole phrase will always be kept.

by setting these rules we have cut then number of sub-phrases down from 44, to 23.  If you look in your library, you will probably find some very long titles where the number of possible sub-phrases could be VERY high (greater than 100).

If possible you should edit titles such as:

 Take on Me (ft. Carlitta Durand)

since you would probably never request this song using the (ft. Carlitta Durand), by removing the  (ft. Carlitta Durand) the song will have 3 words instead of 6 and then number of subphrases will go down.  It will also be less likely to confuse the song with other songs.  Consider a song with 8 words in the actual title, followed by (featuring Bob Dylan, Joe Jackson, and Peter Tosh).  This will result in many sub-phrases that only cause more strain and use system resources for nothing.  By removing the last 8 words we reduce the sub-phrases significantly.
« Last Edit: April 27, 2011, 06:33:56 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: version 0.887 and iTunes
« Reply #2 on: April 26, 2011, 09:28:12 AM »
Also in the advanced options tab, we now have settings for iTunes special payloads of the form:

"Play Song ABC by XYZ"

the word "by" can be changed in case you are not using English, to something else like "par", "por", "von"

the field "any artist phrase" allows you do request a song when you don't know, or don't care about the artist.  This way you don't need a separate command to request a song by saying "play song ABC".
Creating two separate commands containing ALL your thousands of songs is wasteful)

Using the same command you can say either:
"Play song Fragments of Freedom by Morcheeba"
or
"Play song Fragments of Freedom by anyone"

Note that "play song" is the phrase defined in the command editor so you can change it as well.

to use this feature in iTunes, you must run GenXML using the new version (0.887 or later).  This will create payloadXML file

.\iTunesPayloads\SongByArtist.xml

with phrases that look like this:
Code: [Select]
<payload>
        <value>5C29FA0B2972EEAE</value>
        <phrase>A Space Boy Dream&amp;&amp;Belle and Sebastian</phrase>
        <subsetmatching>true</subsetmatching>
    </payload>

in this case the value is the ID used by iTunes for that exact song.

Looking at the phrase we see that the song title and the artist name are separated by &amp;&amp;  (which is actually: && ) and tells VC where the separation is between title and artist.  && gets replaced by the "by" word that you set in options.

In this case this song can be requested by saying any of the following:

- Play song A Space Boy Dream by Belle and Sebastian
- Play song Space Boy by Belle and
- Play song Dream by Sebastian
- Play song A Space Boy by anyone

you have to say "by anyone" you can't just say "Play song A Space Boy."

the command is attached so that you can import it.
« Last Edit: April 27, 2011, 06:38:57 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: version 0.887
« Reply #3 on: April 26, 2011, 09:28:51 AM »
mediaMonkey patch will be explained here.

In options, on the events tab there is a button to patch mediaMonkey.  Clicking this will add two features to mediaMonkey.

1 - mediaMonkey will generate play/pause events in VoxCommando so you can use this to announce songs.

2 - adds a context menu option to export selected songs to payloadXML files.  This is useful if you don't want VC to use all the songs in your library.  Perhaps you want to exclude all your classical music and audiobooks (just an example) to avoid confusion and to save resources and speed up loading in VC.

select all the songs you want to include, then right-click one song and choose "Export Tracks to VoxCommando PayloadXML".  Then browse to the folder for your payload files ...\VoxCommandoFolder\mmPayloads )
« Last Edit: April 27, 2011, 06:45:58 PM by jitterjames »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: version 0.887
« Reply #4 on: April 26, 2011, 11:01:33 AM »
Here is version 0.887.

Look in options under advanced.  There are number of new settings to help control long phrases.  If a phrase is too long a warning will appear in the history window and the log file listing the offending phrases.

Hi James,

VC starts in 1 or 2 seconds, but he regonized nothing  :'(  (API-Bug?)
The mic-level works, but VC understand nothing.

I have install as update 0.886

Kalle

PS: a full install with MM.zip the same

Take a look in VoxLog
« Last Edit: April 27, 2011, 06:46:29 PM by jitterjames »
***********  get excited and make things  **********

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: version 0.877
« Reply #5 on: April 26, 2011, 11:47:37 AM »
Kalle and James,

Here the new version it´s ok, running perfect, commands recognized well, OS Win7 64 bits, Us-EN language in settings.

Wanilton
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: version 0.877
« Reply #6 on: April 26, 2011, 11:53:19 AM »
Hi James,

VC starts in 1 or 2 seconds, but he regonized nothing  :'(  (API-Bug?)
The mic-level works, but VC understand nothing.

it is a language error.  Please select your recognition language and then rebuild and restart.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: version 0.877
« Reply #7 on: April 26, 2011, 11:55:15 AM »
it is a language error.  Please select your recognition language and then rebuild and restart.
Yes that is right with german language works, thanks.

It works only with german language, i restart my system
« Last Edit: April 26, 2011, 11:57:55 AM by Kalle »
***********  get excited and make things  **********

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: version 0.877
« Reply #8 on: April 26, 2011, 12:13:08 PM »
Yes that is right with german language works, thanks.

It works only with german language, i restart my system

My System-language is german, and when I use german in VC it works perfect.
When I change in VC options - Generaltab - to us-eng, VC understand nothing  ???
I don't no why, after restart my system the same, VC0.886 works perfect with both.

Kalle
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: version 0.877
« Reply #9 on: April 26, 2011, 12:27:02 PM »
all the language files are cached after building so that they can be re-used to make start-up faster.  If you change the language you need to do a rebuild because the cache will be in the wrong language.  I will try to detect this situation and rebuild automatically.  I am not sure what re-starting has to do with it though.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: version 0.877
« Reply #10 on: April 26, 2011, 01:20:00 PM »
all the language files are cached after building so that they can be re-used to make start-up faster.  If you change the language you need to do a rebuild because the cache will be in the wrong language.  I will try to detect this situation and rebuild automatically.  I am not sure what re-starting has to do with it though.
Ok, when I start the version 0.886 and copy then the renamed 0.887 (voxcommando1.exe in the same folder and start it, it works, crazy.
***********  get excited and make things  **********

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: version 0.877
« Reply #11 on: April 26, 2011, 01:33:54 PM »
Kalle, Do you rebuild grammars??? in File Menu, here appears errors (warnings) after rebuilld (name very long), I fix in tags, and now, it´s ok...
« Last Edit: April 26, 2011, 02:04:01 PM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: version 0.877
« Reply #12 on: April 26, 2011, 01:54:52 PM »
Kalle, Do you rebuild grammars??? in File Menu, here appears errors after rebuilld (name very long), I fix in tags, and now, it´s ok...

Note that these are actually "Warnings" not really "Errors". 

even if you get this warning the command should load OK, but the song will be either skipped, or the last part will be cut off.  Also you can changed the maximum length, but I recommend you keep it as short as possible.

Deeper explanation is here:
http://voxcommando.com/forum/index.php?topic=474.msg3449#msg3449

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: version 0.877
« Reply #13 on: April 26, 2011, 05:29:25 PM »
Ok, when I start the version 0.886 and copy then the renamed 0.887 (voxcommando1.exe in the same folder and start it, it works, crazy.
Wanilton, with this solution (copy and past the exe) is ok for me, but i hope James figured out this problem  ;)

Kalle
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: version 0.877
« Reply #14 on: April 26, 2011, 05:35:14 PM »
well, I don't actually know what the problem is, so it is hard to fix it.