Author Topic: Winamp Voice Control Integration with Voxcommando.  (Read 10918 times)

0 Members and 1 Guest are viewing this topic.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Winamp Voice Control Integration with Voxcommando.
« on: May 31, 2014, 06:18:03 AM »
Winamp has been integrated into the collective.

http://www.winamp.com/



Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.5.1-->
<command id="859" name="Play Song" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch</cmdType>
    <params>
      <param>F:\Appz\Media_Players\Winamp\Winamp.exe</param>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.SpeakSync</cmdType>
    <params>
      <param>{PF.1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Play Song</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">E:\Appz\Vox\Payloads\music.xml</payloadFromXML>
</command>


You will need to create a payload xml to get the above command working.
http://voxcommando.com/forum/index.php?topic=1577.0

The above method will probably work with many other media players out there.

Enjoy.
« Last Edit: May 31, 2014, 06:21:58 AM by xtermin8r »
Neural Net Based Artificial Intelligence.

Sinbe

  • $upporter
  • Jr. Member
  • *****
  • Posts: 12
  • Karma: 0
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #1 on: May 31, 2014, 12:13:50 PM »
This is quite interesting, but is there any way to create a payload XML file that would work with this but uses the ID3 tags? I have working Media libraries in WMC and MediaPortal, but they both use some other method to launch the files I suppose (MP seems to be using a number ID for each file). If I understood correctly the script you have made reads the filename and changes it so it can be interpreted by Vox. My file names are so random that this is not gonna help. Is there any way to get the file location info to the payload file from the WMC or MP scan for example, but read the Artist and Track name info from the ID3 tag?

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #2 on: June 02, 2014, 10:37:53 AM »
This is quite interesting, but is there any way to create a payload XML file that would work with this but uses the ID3 tags? I have working Media libraries in WMC and MediaPortal, but they both use some other method to launch the files I suppose (MP seems to be using a number ID for each file). If I understood correctly the script you have made reads the filename and changes it so it can be interpreted by Vox. My file names are so random that this is not gonna help. Is there any way to get the file location info to the payload file from the WMC or MP scan for example, but read the Artist and Track name info from the ID3 tag?

yes I think it is possible to create a payload XML file by using  ID3 tag info in python, when and if i ever get extremely bored, I may give it a go, but don't count on it.

I'm not to sure about getting path names from WMC or MP scans, never experimented with them two programs. i think it would be best just to scan the file name paths using current method in the python script and grab Artist and Track name info from the ID3 tag, and then generate a payload xml file.
« Last Edit: June 02, 2014, 11:25:03 AM by xtermin8r »
Neural Net Based Artificial Intelligence.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #3 on: June 02, 2014, 11:19:27 AM »
here's an idea why not simply find a program that renames the file names from the ID3tag, The Godfather http://www.jtclipper.eu/thegodfather/features.html could be a perfect example.
Neural Net Based Artificial Intelligence.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #4 on: June 02, 2014, 11:35:07 AM »
Why not just use MediaMonkey?  I don't get it.

Sinbe

  • $upporter
  • Jr. Member
  • *****
  • Posts: 12
  • Karma: 0
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #5 on: June 02, 2014, 11:53:37 AM »
Cuz Winamp since the nineties, I'm afraid of anything new!

I'll check out MediaMonkey then, maybe it'll do what I need.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #6 on: June 02, 2014, 12:08:44 PM »
I know you are "mostly joking" but if you are afraid of anything new then don't use VoxCommando cause it has only been around for about 4-5 years.  :biglaugh

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #7 on: June 09, 2014, 08:49:32 PM »
Latest news  on the Winamp integration, can now say to vc "play mp3s by artist or band name then generate a playlist file and then get winamp to execute this playlist file.

I will release the python script soon as i iron out some stuff.
Neural Net Based Artificial Intelligence.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #8 on: June 11, 2014, 09:42:16 AM »
Last night i completed another part of the integration, voice control all winamp buttons , play, next, prev, stop etc and  for  "set volume" to a certain percentage using a command line program that works for winamp called CLEveR http://www.etcwiki.org/wiki/Winamp_command_line.
« Last Edit: June 11, 2014, 12:39:45 PM by xtermin8r »
Neural Net Based Artificial Intelligence.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #9 on: June 11, 2014, 10:01:23 AM »
Sending messages to Milkdrop Visualisation.

Neural Net Based Artificial Intelligence.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #10 on: June 15, 2014, 04:40:18 PM »
This is quite interesting, but is there any way to create a payload XML file that would work with this but uses the ID3 tags? I have working Media libraries in WMC and MediaPortal, but they both use some other method to launch the files I suppose (MP seems to be using a number ID for each file). If I understood correctly the script you have made reads the filename and changes it so it can be interpreted by Vox. My file names are so random that this is not gonna help. Is there any way to get the file location info to the payload file from the WMC or MP scan for example, but read the Artist and Track name info from the ID3 tag?

YES, It is now possible to create a payload xml file using id3 tags, can be done using the export feature of TagScanner, which can be downloaded from :
http://www.xdlab.ru/en/index.htm



Features:

    Rename files based on the tag and file information
    Powerful multiple files tag editor
    Import tag information and album art from online databases like freedb or Amazon
    Generate tag information from file/foldernames
    Tag fields formatting and rearrangement
    Words replacement and case conversion from tags and filenames
    Supports MP3, OGG, FLAC, WMA, MPEG-4, Opus, Musepack, Monkey's Audio, AAC, OptimFROG, SPEEX, WavPack, TrueAudio files
    Supports ID3 1.0/1.1/2.2/2.3/2.4 tags, APE v1 and v2 tags, Vorbis Comments, WMA tags and MP4(iTunes) metadata
    Supports for embedded lyrics and cover art
    Resize cover art for portable devices on the fly
    TAGs versions conversions
    Quick playlists creation
    Export information to HTML, XML CSV or any user-defined format
    Full support for Unicode
    Multilanguage interface
    Built-in multiformat player

Tried and tested, working fine.
« Last Edit: June 15, 2014, 04:45:38 PM by xtermin8r »
Neural Net Based Artificial Intelligence.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #11 on: June 16, 2014, 06:42:08 PM »
Are you able to directly export xml in a format that VC can recognize as a valid payloadXML file, or do you need to modify the xml after export?

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #12 on: June 17, 2014, 07:17:08 AM »
Are you able to directly export xml in a format that VC can recognize as a valid payloadXML file, or do you need to modify the xml after export?

I am able to export xml in a format that VC can recognize, without any modifications after export.
Neural Net Based Artificial Intelligence.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #13 on: June 17, 2014, 09:44:35 AM »
That's how I used to do it back in the day, before VoxCommando could talk directly to MediaMonkey.  I used this script to export XML directly from MediaMonkey...

http://www.eventghost.org/forum/viewtopic.php?f=2&t=2063#p11917

Of course that script might not be using the correct format... It has been many years.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Winamp Voice Control Integration with Voxcommando.
« Reply #14 on: June 17, 2014, 02:41:55 PM »
latest news, CLEveR - winamp command line control http://www.etcwiki.org/wiki/Winamp_command_line has been modified  so that I can voice command all of Winamp's WM_COMMAND Messages.

such as, all of these.

Previous track button 40044
Next track button 40048
Play button 40045 control
Pause/Unpause button 40046
Stop button 40047
Fadeout and stop 40147
Stop after current track 40157
Fast-forward 5 seconds 40148
Fast-rewind 5 seconds 40144
Start of playlist 40154
Go to end of playlist 40158
Open file dialog 40029
Open URL dialog 40155
Open file info box 40188
Set time display mode to elapsed 40037
Set time display mode to remaining 40038
Toggle preferences screen 40012
Open visualization options 40190
Open visualization plug-in options 40191
Execute current visualization plug-in 40192
Toggle about box 40041
Toggle title Autoscrolling 40189
Toggle always on top 40019
Toggle Windowshade 40064
Toggle Playlist Windowshade 40266
Toggle doublesize mode 40165
Toggle EQ 40036
Toggle playlist editor 40040
Toggle main window visible 40258
Toggle minibrowser 40298
Toggle easymove 40186
Raise volume by 1% 40058
Lower volume by 1% 40059
Toggle repeat 40022
Toggle shuffle 40023
Open jump to time dialog 40193
Open jump to file dialog 40194
Open skin selector 40219
Configure current visualization plug-in 40221
Reload the current skin 40291
Close Winamp 40001
Moves back 10 tracks in playlist 40197
Show the edit bookmarks 40320
Adds current track as a bookmark 40321
Play audio CD 40323
Load a preset from EQ 40253
Save a preset to EQF 40254
Opens load presets dialog 40172
Opens auto-load presets dialog 40173
Load default preset 40174
Opens save preset dialog 40175
Opens auto-load save preset 40176
Opens delete preset dialog 40178
Opens delete an auto load preset dialog 40180
« Last Edit: June 17, 2014, 02:46:03 PM by xtermin8r »
Neural Net Based Artificial Intelligence.