Voice Attack

Go down

Voice Attack

Post  StiC on Sun Nov 04, 2018 11:10 am

Voice attack is a speech recognition program that converts voice commands to key/button/mouse commands. It's available on Steam and I picked it up on sale last week. It makes flying in VR so much easier.

It took me a while to get Windows set up for speech recognition, but it has worked flawlessly so far. Just type in the the prompt you want recognized and bind it to an action or series of actions. Gear up/down, radio on/off, ground power on/off, push channel # are all controlled by voice now.

Today I started playing with the more advanced stuff. For example, when I say Jetison Tanks, voice attack asks for confirmation using text to speech and waits for voice confirmation. The radio channels work better now by comparing the current channel # to the new channel #. Previously I was brute forcing it by rotating CCW 18 times before rotating CW to the proper channel. Now it rotates directly to the new channel.


_________________
avatar
StiC
Warrant Officer

Posts : 762
Join date : 2012-02-27
Age : 48
Location : Cape Breton Island

View user profile

Back to top Go down

Re: Voice Attack

Post  |450|Squiz on Sun Nov 04, 2018 3:01 pm

Stic, can you show me how to go to the direct radio channel? I use the brute force method (-18 + x) and it takes quite a while to get there.

Squiz
avatar
|450|Squiz

Posts : 200
Join date : 2013-01-12
Age : 81
Location : Gold Coast, Australia

View user profile

Back to top Go down

Re: Voice Attack

Post  StiC on Sun Nov 04, 2018 3:26 pm

Sure Squiz. Capturing the correct channel number is still a bit unreliable. I'll post what I have so far when I get a chance.

_________________
avatar
StiC
Warrant Officer

Posts : 762
Join date : 2012-02-27
Age : 48
Location : Cape Breton Island

View user profile

Back to top Go down

Re: Voice Attack

Post  StiC on Sun Nov 04, 2018 6:19 pm

Hey Squiz. My radio commands have two parts. The first part supplies Voice Attack with the currently selected radio channel. If everything works right, you only need to do this once.

Set Channel
Code:
Wait for spoken response: '0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;'
Convert text [currentchannel] to integer [oldchannelnumber]

The second part gets the new channel, compares it to the last (or set) channel, changes the channel with the default keyboard commands and stores the new channel information.

Push
Code:
Wait for spoken response: '0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;'
Convert text [newchannel] to integer [newchannelnumber]
Begin Integer Compare : [newchannelnumber] Equals [oldchannelnumber]
    Say, 'same'
    Exit Command
Else If Integer Compare : [newchannelnumber] Is Greater Than [oldchannelnumber]
    Set integer [offset] value to the value of [newchannelnumber]
    Set integer [offset] to [offset] minus [oldchannelnumber]
    Start Loop : Repeat [offset] Times
        Press Right Shift+R keys and hold for 0.2 seconds and release
        Say, 'up'
    End Loop
    Set integer [oldchannelnumber] value to the value of [newchannelnumber]
Else If Integer Compare : [newchannelnumber] Is Less Than [oldchannelnumber]
    Set integer [offset] value to the value of [oldchannelnumber]
    Set integer [offset] to [offset] minus [newchannelnumber]
    Start Loop : Repeat [offset] Times
        Press Right Ctrl+R keys and hold for 0.2 seconds and release
        Say, 'down'
    End Loop
    Set integer [oldchannelnumber] value to the value of [newchannelnumber]
End Condition

The "Say, 'same/up/down' " are just for testing outside of DCS and should be removed before playing. The biggest problem I'm having is hitting just the right tone and cadence for consistent results. We might be better off writing a new command for each channel. Push 1, Push 2, ... Push 18. Not nearly as elegant, but probably more functional.

_________________
avatar
StiC
Warrant Officer

Posts : 762
Join date : 2012-02-27
Age : 48
Location : Cape Breton Island

View user profile

Back to top Go down

Re: Voice Attack

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum