Using Glove Pie for Voice Commands in Games

Published by: Alex on 13th May 2011 | View all blogs by Alex
Image showing Glove Pie interface..jpg

Glove Pie
is a free bit of software that lets you emulate keystrokes and mouse buttons using various different input devices. Such devices include microphone (voice input) keyboard, mouse, and even specialised controllers such as Wiimote and PS3 controllers, and many others.

With it you're able to do virtually any kind of "script" or command using your chosen input device. A simple example of this is being able to "shoot" in a football game whenever you say the word "shoot" through your microphone.

The program is separated into two different methods for creating your commands. The simplest, albeit slightly restricted, way of doing it is using the GUI and selecting what you want to do from the drop-down menus. After doing so it is then turned into a proper script which you are able to see and edit if you so wish. Once you gain sufficient knowledge of how the scripts and commands are written, you can start writing them from scratch.

Please add and share your own scripts in the comments section below.

Download at
: http://glovepie.org/glovepie_download.php



Comments

7 Comments

  • Alex
    by Alex 1 year ago
    Powersoccer command set:

    Mouse.RightButton = KeepDown(Microphone.Said("shoot one"), 0.35)
    Mouse.RightButton = KeepDown(Microphone.Said("shoot two"), 0.5)
    Mouse.LeftButton = KeepDown(Microphone.Said("lob one"), 0.45)
    Mouse.LeftButton = KeepDown(Microphone.Said("lob two"), 0.6)
    Mouse.LeftButton = KeepDown(Microphone.Said("lob three"), 0.75)
    Mouse.LeftButton = Pressed(Microphone.Said("pass"))
    Keyboard.A = (Microphone.Said("tackle"))

    http://www.powersoccer.com/
  • Bill (R&D, SpecialEffect)
    Unreal Tournament 3 Command Set:

    if said("forwards") then
    Keyboard.Up = true
    endif

    if said("block") then
    Keyboard.Up = false
    endif

    if said("jump") then
    Keyboard.Space = True
    Keyboard.Space = false
    endif

    if said("crouch") then
    Keyboard.C = True
    endif

    if said("stand") then
    Keyboard.C = False
    endif

    Based on a script by Alex (Mr VM) Kostov
  • Alex
    by Alex 1 year ago
    Track Mania Nations Command Set:

    if said("left") then
    Keyboard.Right = false
    Key.Left = true
    wait 0.45
    Keyboard.Left = false
    endif

    if said("right") then
    Key.Left = false
    Keyboard.Right = true
    wait 0.45
    Keyboard.Right = false
    endif

    if said("stop") then
    Keyboard.Left = false
    Keyboard.Right = false
    Keyboard.Down = false
    endif

    if said("reverse") then
    Keyboard.Down = true
    Keyboard.Up = false
    endif

    if said("accelerate") then
    Keyboard.Up = true
    Keyboard.Down = false
    endif

    if said("block") then
    Keyboard.Up = false
    endif
  • Still Shakey
    by Still Shakey 1 year ago
    Hi Alex,

    Glove Pie looks interesting - I've previously come across AutoHotKey (http://www.autohotkey.com/) which is a similar scripting tool for controlling key presses and clicks, but it's cool that you can do the same thing with voice!

    Thanks for giving Alt Controller a try, I'll try to fix the screen resolution issues you had.

    Cheerio!
  • Alex
    by Alex 1 year ago
    Hello Mr Shakey,

    AutoHotKey is what I've been using for quite a while now, but unfortunately it's very difficult to activate with voice commands. Anything else it's brilliant (I've only really used it for remapping keys/mouse buttons & text macros). GP's got the added bonus of having voice-activated control, so it's got my vote overall :)

    Thanks very much! :)
  • Still Shakey
    by Still Shakey 1 year ago
    Ah good, I'm glad u discovered AHK. It would be fun to try connecting up a speech API (e.g. Microsoft SAPI) to AutoHotKey scripts. I'll put it on my wishlist of crazy experiments to try. Maybe speech isn't even necessary - perhaps you could just hum different notes for different commands :) I wonder if anyone has tried that?!
  • Alex
    by Alex 1 year ago
    I have no clue about that, but it would definitely be something fantastic. :)
Please login or sign up to post on this network.
Click here to sign up now.