test content
What is the Arc Client?
Install Arc

Voice Commands

SystemSystem Member, NoReporting Posts: 178,019 Arc User
I figured out that I can use Vista Speech Recognition and a plugin from Microsoft "Windows Speech recognition macros" to create custom voice commands.
I have 4 spoken commands set so far:
"Red Alert" = Divert Power to weapons
"Shields up" = Divert Power to Shields
"Fly her apart" = Divert Power to Engines
"Needs of the many" = Balance power

The plugin is free and the whole thing was pretty easy to set up.
And I will be using my Xbox PC controller with headset as well. Still mapping it out for max control.:)

If you are looking for my Voice Attack thread try here.
http://forums.startrekonline.com/showthread.php?t=121077
Post edited by Unknown User on
«1345

Comments

  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited January 2010
    Thought I would give a little tutorial on setting up voice commands.

    There are 4 things you will need:
    Windows Vista / Windows 7
    Windows Speech Recognition software (pre-installed on Vista / 7)
    Windows speech Recognition macros. (Download here)
    Standard voice Headset (A boom mic will work, but I am not sure how well)

    A powered mic is said to be the best for speech. I use a Xbox PC controller with the standard plug in headset for it. I think the Xbox mic is considered powered.

    If you have never used WSR go to Start-Programs-Accessories-Ease of Access and Windows Speech Recognition. You need to have your mic ready because you will need to complete a 10-15 minute voice training. If you try and rush through it you will have poor results with you voice commands.

    After completing training you can install the WSRM and two new icons in the system tray.
    http://forums.startrekonline.com/attachment.php?attachmentid=3350&d=1264971784
    The purpose of the WSRM, by the way, is so that you can create custom voice commands. So instead of saying the actual key required to execute the command you can create your on command. Here are a few I have.
    “Red Alert” = Power to weapons
    “Raise Shields” = Power to Shields
    “Engage” = Full Impulse

    Now right click on the WSRM icon in the system tray and choose New speech macro. Click on “Send Keystrokes”. Enter the text you want to say and the keystroke command below. Notice the difference between function keys and alpha-numeric keys as listed in the examples. You should keep you command as short as possible.


    http://forums.startrekonline.com/attachment.php?attachmentid=3351&d=1264972603
    Click Create and you done. With one caveat…..

    http://forums.startrekonline.com/attachment.php?attachmentid=3352&d=1264972612

    If you are speaking Klingon or techno babble you will need to train the WSR to understand the new phrase. (Yes I said if you are speaking Klingon.) To do this Right Click on the WSR icon and choose “Open the speech dictionary” then add new word. Type in the word and click next.
    In the next window make sure to check Record a pronunciation upon finish, click finish and record your word.


    http://forums.startrekonline.com/attachment.php?attachmentid=3353&d=1264972622

    Do this for every command you want to map to voice and free your hands from the keyboard / Controller.

    Kaplah!:cool:

    Sorry about the images not being embeded.:o

    P.S. Almost forgot. You may have to go into windows sound options and make sure the mic you are using is set as the default. You also can adjust the mic sensitivity so that it does not pick up background noise/voices. Otherwise you significant other may lower you shields in the heat of battle.:p

    P.S.S.
    Big caveat if you using voice chat while voice commanding. WSR / WSRM will listen to everything you say and will launch other windows when it thinks it hears the right word or phrase.
    If you do not want to deal with this then check my other thread on another voice app to use that will "listen for" only what you tell it to listen for.

    Check out the Voice Attack thread <here>
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited January 2010
    Very nice!

    Thanks for the Tutorial! I am going to give this a shot.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    FYI:
    If you get an error message saying can't digitally sign. You will need to create a new sig file.
    Right click on WSRM icon in system tray and choose security and create sig. cert.

    Seems it is a little buggy and each time you reboot you have to create a signature cert each time you want to make more macros.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    i will try this...

    although i am not getting my hopes up, the last time i played with voice recognition with office (07?) it didnt work well for me.

    personally i can think of nothing more annoying than trying to say "Shields up" and finding that i am stuck with the attack preset.

    but who knows. maybe it got better since i last tried it.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Testing one two three.

    Voice recognition is great, thanks for recommending this.

    I am writing this using the software right now, it needs a bit getting used to talking slowly but I can get used to this.

    I vote for a sticky!!!
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Cool Post, nice to see less hate and more good stuff like this.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    "Fly her apart"

    LOL that's awesome.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Other popular options are VAC and Shoot!, both free-ish and time tested in sim communities.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    not sure what you meant by VAC and shoot, some link would be nice as google just return a silly amount of hits.

    anyhow.. just spend the last hour or so using this voice macro instead of

    RTrigger+Joypad_Up "ThrottleAdjust 0.20"
    RTrigger+Joypad_Down "ThrottleAdjust -.20"
    RTrigger+Joypad_right "ThrottleAdjust 1.0"
    RTrigger+Joypad_left "ThrottleAdjust -1.0"
    LTrigger+Joypad_up "GenButtonClick PowerLevel_Preset_0"
    LTrigger+Joypad_down "GenButtonClick PowerLevel_Preset_3"
    LTrigger+Joypad_right "GenButtonClick PowerLevel_Preset_2"
    LTrigger+Joypad_left "GenButtonClick PowerLevel_Preset_1"

    and i can tell you, saying "max speed", "stop", "faster", "slower", "attack", "shield", "engine", balanced" is a lot more fun than messing with LTrigger+Joypad_up and etc...

    will need more time to figure out why else i can safely voice macro, although i don't think i feel up to letting it do "emergency power to shield", a bit too many words.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    WEII wrote:
    will need more time to figure out why else i can safely voice macro, although i don't think i feel up to letting it do "emergency power to shield", a bit too many words.


    Just yell KAAAAAAHHHHHHHNNNNNN
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Gax63 wrote: »
    I figured out that I can use Vista Speech Recognition and a plugin from Microsoft "Windows Speech recognition macros" to create custom voice commands.
    I have 4 spoken commands set so far:
    "Red Alert" = Divert Power to weapons
    "Shields up" = Divert Power to Shields
    "Fly her apart" = Divert Power to Engines
    "Needs of the many" = Balance power

    The plugin is free and the whole thing was pretty easy to set up.
    And I will be using my Xbox PC controller with headset as well. Still mapping it out for max control.:)

    What are the commands used for changing power settings in the game? been tryin to get that set up I have even gone so far as to map almost all keyboard short cuts. including map and interaction. I just can't find a way to switch power settings
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Gojirah wrote:
    What are the commands used for changing power settings in the game? been tryin to get that set up I have even gone so far as to map almost all keyboard short cuts. including map and interaction. I just can't find a way to switch power settings


    genbuttonclick powerlevel_preset_0 (power preset Attack)
    genbuttonclick powerlevel_preset_1 (power preset Defense)
    genbuttonclick powerlevel_preset_2 (power preset Speed)
    genbuttonclick powerlevel_preset_3 (power preset Aux.)
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Thanks im going to try this out.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Gax63: Thanks for posting this info it is much appreciated.

    I set up the software and things are working except I can't get any of the combo keys to work, like ALT-1 or CTRL-1

    I used the proper syntax {{CTRL}}1 but when the game executes the resulting keypress it only does a 1, not CTRL-1. Do the combo keys work for you?
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Fangaar wrote:
    Gax63: Thanks for posting this info it is much appreciated.

    I set up the software and things are working except I can't get any of the combo keys to work, like ALT-1 or CTRL-1

    I used the proper syntax {{CTRL}}1 but when the game executes the resulting keypress it only does a 1, not CTRL-1. Do the combo keys work for you?

    I am having the same problem.:( Been working on it since yesterday. I will let you know when I find the solution.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    i can get any button combo to work as well, (ie. ctrl+1).

    nevertheless you still have plenty of button to play with.

    you may as well use the normal qwerty keys, about half of them are not defaulted to anything.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    sweet im seting this up as soon as i get home from work. just dont map it to fire phasers!
    fire phasers
    fire phasers
    fire phasers
    fire phasersfire phasers
    fire phasers
    fire phasers
    fire phasers
    fire phasers
    fire phasers
    lol
    Now all those posts about auto fire and the capting saying it over and over are REALLY ringing true!
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    I also can't seem to get it to send a spacebar. I maped my attack to a secondary key but does anyone know how to get WSR Macros to send the spacebar?

    I tried {spacebar}, {space}, and {u+0020} none of which seem to work in game.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    I know your original post specifically says Windows Vista / 7 required but I still have to ask...

    Has anyone gotten this working in Windows XP?
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    has anyone tried to set macros for the WASD keys ? if so and works how did you do it.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx

    http://code.msdn.microsoft.com/wsrmacros/Wiki/View.aspx?title=Script%20Object%20Models

    all your questions answred.

    Nice little program microsoft has here. Hope Cryptic does not get on us about the full scritping capabilitys.
    However speaking is going to be way slowering than hiting keys. But allot more fun!
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    After playing arround with it for a few hours im bored.

    Here are my macros if anyone is intrested.

    Torpedo

    <?xml version="1.0" encoding="UTF-16"?>
    <speechMacros>
    <command>
    <listenFor>fire torpedo</listenFor>
    <sendKeys>4</sendKeys>
    </command>
    <command>
    <listenFor>full spread</listenFor>
    <sendKeys>5</sendKeys>
    <waitFor seconds="1.5" />
    <sendKeys>4</sendKeys>
    </command>
    </speechMacros>

    Shield

    <?xml version="1.0" encoding="UTF-16"?>
    <speechMacros>
    <command>
    <listenFor>shields fore</listenFor>
    <sendKeys>{up}</sendKeys>
    </command>
    <command>
    <listenFor>shields port</listenFor>
    <sendKeys>{left}</sendKeys>
    </command>
    <command>
    <listenFor>shields starboard</listenFor>
    <sendKeys>{right}</sendKeys>
    </command>
    <command>
    <listenFor>shields aft</listenFor>
    <sendKeys>{down}</sendKeys>
    </command>
    <command>
    <listenFor>rotate shields</listenFor>
    <sendKeys>6</sendKeys>
    </command>
    </speechMacros>


    Movement

    <?xml version="1.0" encoding="UTF-16"?>
    <speechMacros>
    <command>
    <listenFor>full impulse</listenFor>
    <sendKeys>1</sendKeys>
    </command>
    <command>
    <listenFor>standard impulse</listenFor>
    <sendKeys>1</sendKeys>
    </command>
    <command>
    <listenFor>evasive manuvers</listenFor>
    <sendKeys>7</sendKeys>
    </command>
    </speechMacros>

    Phasers

    <?xml version="1.0" encoding="UTF-16"?>
    <speechMacros>
    <command>
    <listenFor>fire phasers</listenFor>
    <sendKeys>.</sendKeys>
    </command>
    </speechMacros>

    It was fun for a little but even with stitches in my left hand I perfer the keys.
    I dont think my stitches do but hell i do!

    Although i know they would apreceate a ground autofire or press and hold fire : )

    Cheers have fun with it!
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    This? This is a LOVELY idea...
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    lol glad you understand it, cuz i sure dont.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    by the way i did try what was recommended at the start of this page , some stuff i got to work with voice, but the wasd keys i cant get to work.those 4 little dang keys is my only problem :(
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    IMO mapping the WASD keys doesn't seem like a good fit for this tool as you need to hold down the WASD keys and you need to hit them in combinations. This tool mimics keypresses, it doesn't mmic holding down keys, which is why the game doesn't register the combo keys like CTRL-1 as it happens too fast.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Voice command software made for video games.

    Say 2 Play
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    for the planetary battle is not a lot of help, but for starships OMG It's amazing, and more with the second tier and after, with a lot of weapons and options :D
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    Fangaar wrote:
    IMO mapping the WASD keys doesn't seem like a good fit for this tool as you need to hold down the WASD keys and you need to hit them in combinations. This tool mimics keypresses, it doesn't mmic holding down keys, which is why the game doesn't register the combo keys like CTRL-1 as it happens too fast.

    There is a way to do coombo key preses if you look threw the microsft documentation. I just dont know it off the top of my head.
  • Archived PostArchived Post Member Posts: 2,264,498 Arc User
    edited February 2010
    There is a way to do coombo key preses if you look threw the microsft documentation. I just dont know it off the top of my head.

    I have read the documentation and spent many hours trying to get it to work in game, it does not work and if read the entire thread you will see that the OP has agreed with me that it does not. If you have actually gotten combo keys to work in game then please share your secret with the rest of us.
This discussion has been closed.