News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

Winamp Voice Control Integration with Voxcommando.

Started by xtermin8r, May 31, 2014, 06:18:03 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

xtermin8r

Winamp has been integrated into the collective.

http://www.winamp.com/



<?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.
Neural Net Based Artificial Intelligence.

Sinbe

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

#2
Quote from: 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?

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.
Neural Net Based Artificial Intelligence.

xtermin8r

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

Why not just use MediaMonkey?  I don't get it.

Sinbe

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

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

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

#8
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.
Neural Net Based Artificial Intelligence.

xtermin8r

Neural Net Based Artificial Intelligence.

xtermin8r

#10
Quote from: 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?

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.
Neural Net Based Artificial Intelligence.

jitterjames

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

Quote from: 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?

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

jitterjames

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

#14
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
Neural Net Based Artificial Intelligence.