Results 1 to 7 of 7

Thread: GlovePIE voice commands

  1. #1
    Supporting Member 69th_Damon's Avatar
    Join Date
    Feb 2015
    Location
    Seattle Wa USA
    Posts
    74
    Post Thanks / Like
    Total Downloaded
    21.84 MB

    GlovePIE voice commands

    Am interested in trying Gove PIE to use voice commands instead of keystrokes, like map or gear.

    So if you have a script you are using that you would share it would give me a good start.

    Thanks,
    Damon

  2. #2
    Veteran Combat pilot Topgum's Avatar
    Join Date
    Feb 2014
    Posts
    251
    Post Thanks / Like
    Total Downloaded
    42.93 MB

    Re: GlovePIE voice commands

    Hi Damon,
    try this by replacing the vocal orders (in blue within the brackets in GlovePie) with your own commands. Map the keys to your own use. Make sure that you have trained the speech recognition before (if you are on Win 7), switch it off when GlovePie runs, though. Try in case of trouble the options in the "TroubleShooter" menue: "Vista shared speech regoniser" and "show speech recognition progress"

    Copie the following into a new script from GlovePie and create a new file with it (Original ArmA2 mapping):

    if (!var.init)
    var.rocketamount = 0
    var.rockettype = 0
    var.wait = 0ms
    var.init = true
    endif

    if (said("Besitztümer"))
    Press(Key.R)
    Wait 10ms
    Release(Key.R)
    endif

    if (said("Kommunikation") or said("Kommunikation starten") or said("Kommandokonsole"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    endif

    // Eigenes Schiff
    if (said("Waffengruppe 1") or said("Waffen 1"))
    Press(Key.1)
    Wait 10ms
    Release(Key.1)
    endif

    if (said("Waffengruppe 2") or said("Waffen 2"))
    Press(Key.2)
    Wait 10ms
    Release(Key.2)
    endif

    if (said("Waffengruppe 3") or said("Waffen 3"))
    Press(Key.3)
    Wait 10ms
    Release(Key.3)
    endif

    if (said("Waffengruppe 4") or said("Waffen 4"))
    Press(Key.4)
    Wait 10ms
    Release(Key.4)
    endif

    if (said("Rakete wechseln"))
    Press(Key.M)
    Wait 10ms
    Release(Key.M)
    endif

    if (said("Rakete abfeuern") or said ("1 Rakete abfeuern"))
    Press(Key.L)
    Wait 10ms
    Release(Key.L)
    endif

    if (said("5 leichte Raketen abfeuern"))
    var.rocketamount = 5
    var.rockettype = 0
    endif

    if (said("5 mittlere Raketen abfeuern"))
    var.rocketamount = 5
    var.rockettype = 1
    endif

    if (said("5 schwere Raketen abfeuern"))
    var.rocketamount = 5
    var.rockettype = 2
    endif

    if (said("10 leichte Raketen abfeuern"))
    var.rocketamount = 10
    var.rockettype = 0
    endif

    if (said("10 mittlere Raketen abfeuern"))
    var.rocketamount = 10
    var.rockettype = 1
    endif

    if (said("10 schwere Raketen abfeuern"))
    var.rocketamount = 10
    var.rockettype = 2
    endif

    if (said("20 leichte Raketen abfeuern"))
    var.rocketamount = 20
    var.rockettype = 0
    endif

    if (said("20 mittlere Raketen abfeuern"))
    var.rocketamount = 20
    var.rockettype = 1
    endif

    if (said("20 schwere Raketen abfeuern"))
    var.rocketamount = 20
    var.rockettype = 2
    endif

    if (var.rocketamount > 0)
    debug = var.rocketamount
    if (var.rockettype == 0)
    var.wait = 1s
    else if (var.rockettype == 1)
    var.wait = 2s
    else if (var.rockettype == 2)
    var.wait = 3s
    endif
    Wait var.wait
    Press(Key.L)
    Wait 10ms
    Release(Key.L)
    var.rocketamount--
    endif

    // Wingmen Befehle
    if (said("Wingmen attackiere Ziel"))
    Press(Key.Shift)
    Press(Key.6)
    Wait 10ms
    Release(Key.Shift)
    Release(Key.6)
    endif

    if (said("Wingmen beschütze mich"))
    Press(Key.Shift)
    Press(Key.7)
    Wait 10ms
    Release(Key.Shift)
    Release(Key.7)
    endif

    // Befehle
    if (said("In Bereitschaft"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    Press(Key.1)
    Wait 10ms
    Release(Key.1)
    Press(Key.1)
    Wait 10ms
    Release(Key.1)
    Wait 100ms
    Press(Key.Escape)
    Wait 10ms
    Release(Key.Escape)
    endif

    if (said("Docke an mein Ziel an"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    Press(Key.1)
    Wait 10ms
    Release(Key.1)
    Press(Key.3)
    Wait 10ms
    Release(Key.3)
    Wait 100ms
    Press(Key.Escape)
    Wait 10ms
    Release(Key.Escape)
    endif

    if (said("Folgen") or said("Folge mir"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    Press(Key.1)
    Wait 10ms
    Release(Key.1)
    Press(Key.6)
    Wait 10ms
    Release(Key.6)
    Wait 100ms
    Press(Key.Escape)
    Wait 10ms
    Release(Key.Escape)
    endif

    if (said("Zurück zur Heimatbasis") or said("Kehre zur Heimatbasis zurück"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    Press(Key.1)
    Wait 10ms
    Release(Key.1)
    Press(Key.7)
    Wait 10ms
    Release(Key.7)
    Wait 100ms
    Press(Key.Escape)
    Wait 10ms
    Release(Key.Escape)
    endif

    if (said("Beschütze mich"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    Press(Key.2)
    Wait 10ms
    Release(Key.2)
    Press(Key.3)
    Wait 10ms
    Release(Key.3)
    Wait 100ms
    Press(Key.Escape)
    Wait 10ms
    Release(Key.Escape)
    endif

    if (said("Töte alle Feinde") or said("Greife alle Feinde an") or said("Alle Feinde angreifen") or said("Greife Feinde an"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    Press(Key.2)
    Wait 10ms
    Release(Key.2)
    Press(Key.2)
    Wait 10ms
    Release(Key.2)
    Wait 100ms
    Press(Key.Escape)
    Wait 10ms
    Release(Key.Escape)
    endif

    if (said("Greife mein Ziel an") or said ("Greife Ziel an"))
    Press(Key.C)
    Wait 10ms
    Release(Key.C)
    Press(Key.2)
    Wait 10ms
    Release(Key.2)
    Press(Key.4)
    Wait 10ms
    Release(Key.4)
    Wait 100ms
    Press(Key.Escape)
    Wait 10ms
    Release(Key.Escape)
    endif
    Last edited by Topgum; Jul-24-2016 at 06:54.

  3. #3
    Supporting Member 69th_Damon's Avatar
    Join Date
    Feb 2015
    Location
    Seattle Wa USA
    Posts
    74
    Post Thanks / Like
    Total Downloaded
    21.84 MB

    Re: Working code for GlovePIE voice commands

    I have been working on my GlovePie voice command system and have something that works for me. My joystick is a Logitech 3d Pro. Now I have several unused buttons on my stick and never have to go to the keyboard for a rush command, like bail out.

    The mayor problem was false positives. So the start of the code are 2 buttons on the stick that controls voice active or not. The only thing I would really like is to make this a push to talk button. So if you find a way please give me the code.

    Commands are separated into 2 sections. Things that control the aircraft and can mess things up are only active when voice on is activated. Really don’t want the gear to go down when engaged. The others are active all the time, if radar vectors are displayed when not askes for it is not a real problem. I may in the future move the map to voice on/off, or maybe them all.

    Please use the code below as you like.

    It is said that you need to show care when downloading GlovePie. The link below is provided by my son ( works in IT ) and used by and seems to be clean. Just unzip it and place in the directory of your choice, there is no install.

    http://darleyconsulting.com/temp/GlovePIE.zip

    Always enjoy our flights and contact with others around the world.

    Damon

    /*Code for GlovePie voice controle for Clifts of Dover
    Public Domain, please use as you like. Damon Darley

    turns voice on and off */
    if pressed (Joystick.button11 and var.voice=false) then
    var.voice = true
    say ("voice on")
    end if

    if pressed (Joystick.button12 and var.voice=true) then
    var.voice = false
    say ("voice off")
    end if

    /* the { makes all following work if voice=true
    and not if voice=flase till }
    Sort of an on off switch
    */

    if var.voice = true {

    // Gear toggle
    if said("gear",6)
    Press(Key.g)
    Wait 10ms
    Release(Key.g)
    endif


    //Hatch toggel
    if said("hatch",6)
    Press(Key.o)
    Wait 10ms
    Release(Key.o)
    endif

    //Flaps toggle
    if said("flaps",6)
    Press(Key.f)
    Wait 10ms
    Release(Key.f)
    endif

    // 109 canopy jettison
    if said("canopy",6) or said("jettison",6)
    Press(Key.j)
    Wait 10ms
    Release(Key.j)
    endif

    //Bail Out
    if said("bail",6)
    Press(Key.BackSlash)
    Wait 10ms
    Release(Key.BackSlash)
    endif

    // Fuel toggle shut off fuel before a crash or stop sooner
    if said("fuel",6)
    Press(Key.LeftBracket)
    Wait 10ms
    Release(Key.LeftBracket)
    wait 10ms
    endif

    // Chocks toggle
    if said("chocks",6)
    Press(Key.c)
    Wait 10ms
    Release(Key.c)
    wait 10ms
    endif

    // Start spit or huricane
    //fule, gun sight, and both mags
    if said("start",6)
    Press(Key.c)
    Wait 10ms
    Release(Key.c)
    wait 10ms
    Press(Key.RightBracket)
    Wait 10ms
    Release(Key.RightBracket)
    wait 10ms
    Press(Key.LeftBracket)
    Wait 10ms
    Release(Key.LeftBracket)
    wait 10ms
    Press(Key.equals)
    Wait 10ms
    Release(Key.equals)
    wait 10ms
    Press(Key.minus)
    Wait 10ms
    Release(Key.minus)
    wait 10ms
    Press(Key.i)
    Wait 2000ms
    Release(Key.i)
    wait 10ms
    endif

    }
    // These commands do not effect the aircraft and are active all the time.

    //Call for radar vector to hostile aircraft
    if said("radar",6)
    Press(Key.tab)
    Wait 10ms
    Release(Key.tab)
    wait 500ms
    Press(Key.seven)
    Wait 10ms
    Release(Key.seven)
    wait 20ms
    Press(Key.one)
    Wait 10ms
    Release(Key.one)
    endif

    //Call for vector to home airport
    if said("home",6)
    Press(Key.tab)
    Wait 10ms
    Release(Key.tab)
    wait 500ms
    Press(Key.seven)
    Wait 10ms
    Release(Key.seven)
    wait 200ms
    Press(Key.two)
    Wait 10ms
    Release(Key.two)
    endif

    //Show map on screen
    if said("map",6)
    Press(Key.Apostrophe)
    Wait 10ms
    Release(Key.Apostrophe)
    endif

  4. Likes farley liked this post
  5. #4
    ATAG Member ATAG_Highseas's Avatar
    Join Date
    Feb 2016
    Location
    Peurto del Slade, UK
    Posts
    6,455
    Post Thanks / Like
    Total Downloaded
    571.41 MB

    Re: GlovePIE voice commands

    What about

    If said "kill all humans"?

    He heheheh....!

    - ASUS ROG MAXIMUS Z790 HERO - i9-13900k - ASUS ROG STRIX RTX 4090 OC - 32GB Corsair Dominator Platinum DDR5 5600MHz -
    - CORSAIR 1200w HX Series PSU - Corsair H100x Hydro Series CPU Cooler -
    - Big Screen Beyond -

    - Virpil T50 Mongoos Flight Stick -
    - TM Warthog Throttle -
    - Slaw Device 109 Cam Rudder Pedals -

    Highseas Peripherals
    - Engine Switch Panel - Munitions Switch Panel - Throttle Quadrant Trim Box - Helicopter Collective - Analogue Brake Lever -


    Operated by a 1972 Standard Issue Talking Monkey

  6. #5
    Supporting Member Baffin's Avatar
    Join Date
    Apr 2013
    Location
    Northwestern Virginia, USA
    Posts
    1,980
    Post Thanks / Like
    Total Downloaded
    127.26 MB

    Re: GlovePIE voice commands

    Try Voice Activated Commands - It listens to you and talks back...

    Free 14 day trial. Well worth the 18 US$.

    http://www.dwvac.com/download.html
    Last edited by Baffin; Aug-03-2016 at 15:34.
    Windows 11 Pro, ASUS ROG Maximus Z790 Dark Hero, 2 TB Samsung M.2 SSD 990PRO. Intel Core i9 14900KF using TPUII BIOS feature. Air Cooling with Thermalright Peerless Assassin 120 SE CPU Cooler w/ 2 fans. Crucial 96GB DDR 5 RAM at 5600 MT/s. LG 55" 4K OLEDC7P TV, NVIDIA GeForce RTX 4090 Gaming X Trio 24G. Realtek High Definition Audio, Sony Surround amp w/ optical cable for 5.1 speakers, Ear Buds from Motherboard for Discord/TeamSpeak3. TrackIR5, Buttkicker Gamer 2, Thrustmaster Warthog, 2x Saitek X-52 (Buttons & Gear), Gear-Falcon Trim Box, Thrustmaster TPR Pendular Rudder Pedals. Voice Activated Controls.

  7. #6
    Veteran Combat pilot Topgum's Avatar
    Join Date
    Feb 2014
    Posts
    251
    Post Thanks / Like
    Total Downloaded
    42.93 MB

    Re: GlovePIE voice commands

    Quote Originally Posted by Highseas View Post
    What about

    If said "kill all humans"?

    He heheheh....!
    then
    all aircrafts will remain
    endif


    TG
    The fun is always in the sun

  8. #7
    Veteran Combat pilot Topgum's Avatar
    Join Date
    Feb 2014
    Posts
    251
    Post Thanks / Like
    Total Downloaded
    42.93 MB

    Re: GlovePIE voice commands

    Fellas,
    today I started a new post here:
    http://theairtacticalassaultgroup.co...766#post238766

    I coded a complet radio com toggle there (and more) You'll find the script in the attachment. Give it a try!

    TG
    The fun is always in the sun

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •