[PROGRAM] YS Voice Recognition System

Note that alterations to the YSFlight .EXE is forbidden
Post Reply
User avatar
Senior Veteran
Senior Veteran
Posts: 1540
Joined: Thu Feb 10, 2011 5:30 am
Favorite Aircraft: Super Hornet
Location: Chicago, Illinois
Has thanked: 60 times
Been thanked: 166 times

[PROGRAM] YS Voice Recognition System

Post by Eric » Wed Jul 27, 2011 7:06 am

mr j wrote: YSVRCS.zip
YS Voice Control Recognition System. Requires GlovePIE. Server mode chat fixed. For stable version!
(13.56 KiB) Downloaded -- times

I apologize to the five early adopters, but it was brought to my attention that the script would still talk while you were using the chat function in server mode. This update should fix that.

Here is the little surprise I promised with the release of YS wiimote control. This is the Voice Recognition System for YSFlight. This script using GlovePIE, doesn't attempt to actually fly the plane with voice control, but rather supplements your favorite joystick. Most all of the controls on the keyboard are mapped to voice commands. For example saying "gear up" presses the G button and tells you that the gear has been raised. It does this by taking advantage of your computer's Text to Speech engine, and either Microsoft Sam (in windows XP) or Microsoft Anna (in Vista) will talk to you. It can also tell you that your gear is already up, for example. This can also automate complicated multi-button commands such as saying "Radio Wingman One to Break and Attack" presses Enter then One then One again to make the wingman break and attack. This is faster than trying to press all those buttons in succession.

Don't worry, if you find your computer talking to you too annoying, just say shutup sam or shutup anna, and they won't bother you anymore.

A list of controls can be accessed by saying "Sam, what can I say" if using windows xp, or "anna what can I say" in Vista. The script will assume you have the default mapping for keyboard in ys. If you do not, the script will cause undesired behavior. For example, if you had flaps set to Keyboard button G from the options is YS, you would get flaps instead of gear when saying gear down while using my script.

These scripts require GlovePIE 0.29, a microphone, and Speech Recognition to be installed. Speech recognition is included in Microsoft Office. http://support.microsoft.com/kb/306537


To use the script, simply run the script in GlovePIE, start YS, and talk away.

The folders in the zip are arranged in this way. . .
Windows XP folders contain scripts set up for Microsoft Sam.
Windows Vista folders contain scripts set up for Microsoft Anna.
Male folders contain scripts that address you as sir.
Female folders contain scripts that address you as madam.

Any feedback is greatly appreciated.
Coming soon: Voice control scripts integrated with wiimote control.

Credits: Coding, my sweet self. Inspiration for features came from Dart (yes he is alive), and testing was done by Csana and Dart.

NOTE: If you experience any lag with the script, set GlovePIE to a higher priority in task manager. GlovePIE will probably never use more than 5% of your processor, but running YS can kind of drown it out. Setting it to a higher priority will ensure this doesn't happen.

These scripts hopefully fix that little bug with the exiting of flight in the new test version. I don't see a way to implement refueling or restocking with your voice without a lot of unnecessary coding, unnecessary questions, and would result in a script too large to manage.

To use the new feature, after saying "exit flight" you can either say "replay" or "continue" to start the flight over. Saying "terminate" will end the flight completely, reset the variables, and start Sam or Anna talking again.

Thank you for your support.

YS Voice Control System with support for test version flight ending. For test version!
(13.87 KiB) Downloaded -- times
repost from http://yspilots.com/yspf/viewtopic.php?f=7&t=1412
I make this website.

Posts: 53
Joined: Mon May 30, 2011 7:37 pm
Favorite Aircraft: Airbus A380
Location: Bristol, UK
Has thanked: 4 times
Been thanked: 1 time

Re: YS Voice Recognition System

Post by hedzup456 » Wed Jul 27, 2011 7:37 pm

Nice Idea.. Mr j...
I am downloading now! :geek:
I have a secret to tell you...
[spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler][spoiler]Hi. Look at the mess you've made, clear up all these spoilers![/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler][/spoiler]

User avatar
Honorary Contributor
Honorary Contributor
Posts: 2609
Joined: Wed Jun 22, 2011 4:22 pm
Favorite Aircraft: F-16
Has thanked: 273 times
Been thanked: 130 times

Re: YS Voice Recognition System

Post by Crazypilot » Thu Aug 11, 2011 7:42 pm

Flying made easier.
Is Launching a missile possible?
E.g2:Switch to weapon and say fire.

User avatar
Honey Badger
57th Polyvalent Sq
57th Polyvalent Sq
Posts: 1843
Joined: Thu Jun 30, 2011 8:17 pm
Favorite Aircraft: Anything that gets off the ground
Location: From Louisiana, stationed in Alabama
Has thanked: 226 times
Been thanked: 69 times

Re: YS Voice Recognition System

Post by Honey Badger » Sat Aug 27, 2011 12:35 pm

Stupid question alert! Does this work on Windows 7? I have a feeling it won't, but I just want to be sure.
USAF Computer Systems Programmer (3D0X4)
"Powerpoint Ranger"

User avatar
Posts: 202
Joined: Wed Feb 02, 2011 7:31 pm
Favorite Aircraft: virtual ones
Location: Toulouse, France
Has thanked: 1 time
Been thanked: 25 times

Re: YS Voice Recognition System

Post by vincent » Sat Aug 27, 2011 1:27 pm

I made it work on Vista in the past.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests