So i've been struggling with this tonight and i finally got it to work and decided to share it here. This is how i setup Voice Attack to play music based on my voice input in 3 different players (VLC, Windows Media Player and Spotify). Please note this is for reference only, and you don't have to use all 3 players if you don't want/need to. Also, remember to change your paths accordingly.
- First, create a playlist in all 3 players with music you want to use. (.m3u for VLC, .wpl for WMP and Spotify in the app). Save them wherever you want, i put mine in the music directory. In order to get the Spotify list, you need to login to https://open.spotify.com and select your list. The last section of the URL will be your list ID, copy it.
- Create a new command according to the screenshot. Note that you will need to change the paths to your lists. Also, if you want to keep this command after updating your voicepack, create a new profile and link it to Singularity in the options.
- In order to open Spotify and play your list you'll need to create a small Visual Basic Script like follows (you can do this in Notepad):
Code:
Set WshShell = WScript.CreateObject("WScript.Shell") Comandline = "C:\Users\[B]your-username[/B]\AppData\Roaming\Spotify\Spotify.exe" WScript.sleep 500 CreateObject("WScript.Shell").Run("spotify:user:[B]your-username-here[/B]:playlist:[B]your-playlist-id-here"[/B]) WScript.sleep 3000 WshShell.SendKeys " "
Ok. Now what?
Open Voice Attack and say:
Play music..... Combat. OR Play some music..... Exploration. OR Play music..... Epic.
You can tweak this to your hearts content according to your own lists.
That's it
I hope you find this useful.
/CMDR Zantiah
o7
EDIT: I forgot to add one thing to the command. Select End Condition at the end and press: Other >> Advanced >> Exit Command. Also atm there is no way to stop/change the music, you have to alt-tab out and close the player. Going to work on that next.