VoxCommando

VoxNastics (User Guides and Mods) => Integration Ideas => Topic started by: xtermin8r on May 31, 2014, 06:18:03 AM

Title: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r on May 31, 2014, 06:18:03 AM
Winamp has been integrated into the collective.

http://www.winamp.com/

(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fscreenshots.en.sftcdn.net%2Fen%2Fscrn%2F30000%2F30100%2Fwinamp-27.jpg&hash=ff149010296eba63ac2f013c57b5f0661cae5ecc)

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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: Sinbe 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?
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r 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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r 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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: jitterjames on June 02, 2014, 11:35:07 AM
Why not just use MediaMonkey?  I don't get it.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: Sinbe 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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: jitterjames 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
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r 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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r 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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r on June 11, 2014, 10:01:23 AM
Sending messages to Milkdrop Visualisation.

(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fwm52.inbox.com%2Fthumbs%2F72_10fe33_c3f189_oJ.jpg.thumb&hash=191fb852042a39c0f7eeab742ea97bf74609bf58)
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r 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

(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fwww.xdlab.ru%2Fi%2Fshot5.png&hash=c28932ebf521168baf17b713482ca2a6aa9a5cfa)

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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: jitterjames 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?
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r 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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: jitterjames 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.
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: xtermin8r 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
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: JonPeyton on August 03, 2019, 05:54:18 PM
Thank you so much for this!
I however do not have a compelling reason for not going with MM other than I've been using WinAmp for my whole PC career and it makes me feel good (maybe younger lol  :biglaugh) 
James what you've created with MM is astounding! Ive been using it for voice controlled tunes for years now, and MM is a technically superior program than WinAmp I know...its all just nostalgic with me .. ::)
For the same reason I run Heretic or Hexen sometimes when I'm bored :) which looks hilarious on a 49' Samsung Wltra wide 144 htz!
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: jitterjames on August 03, 2019, 06:14:39 PM
I hear you.

This used to be the best way to get bullets...

Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: JonPeyton on August 04, 2019, 12:38:02 PM
*scrambling through 15 shoeboxes of 3.5" Floppies   ;D
Title: Re: Winamp Voice Control Integration with Voxcommando.
Post by: jitterjames on August 04, 2019, 12:59:22 PM
I would look first in the 5 1/4" boxes.