Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Kiloku on November 06, 2015, 03:26:17 pm

Title: Voice Recognition, is the wiki up to date?
Post by: Kiloku on November 06, 2015, 03:26:17 pm
I went poking around for how to use the -voicer flag, and stumbled upon the wiki:
http://www.hard-light.net/wiki/index.php/Voice_Recognition


It talks about relics past such as Windows XP and 2000, and since I also happened to find this thread where essential improvements (http://www.hard-light.net/forums/index.php?topic=89598) are described, I'm wondering if these changes are in the latest nightlies, and if following the wiki's instructions will be enough.
Title: Re: Voice Recognition, is the wiki up to date?
Post by: chief1983 on November 06, 2015, 03:45:13 pm
I think the training your speech recognition can still be helpful, although I've had good luck with it out of the box.  And we improved the integration to the point that it doesn't need to display the voice recognition menu while the game runs, so you don't have to worry about that being popped up in the background anymore.  Other than that, I don't know if the recognized command list is up to date anymore or not.
Title: Re: Voice Recognition, is the wiki up to date?
Post by: AdmiralRalwood on November 06, 2015, 07:28:21 pm
For an up-to-date list of supported commands, you can try reading phrases.xml (https://github.com/scp-fs2open/fs2open.github.com/blob/master/code/sound/phrases.xml) directly from the source repo. I haven't updated the wiki because, firstly, I did not realize that article existed :nervous: and secondly, I want a better way to handle it than an all-encompassing phrases.xml. For example, giving Blue Planet the ability to provide a modular table of some sort that told FSO to insert "Falcata" into the list of known wing names, so you don't need to provide an entire replacement phrases.xml for tiny additions to FSO's recognition capabilities.
Title: Re: Voice Recognition, is the wiki up to date?
Post by: Cobra on November 13, 2015, 01:37:17 am
I've always wondered how this worked. Does it always assume that Alpha is the player's wing and just goes Beta, Delta, Gamma in that order?
Title: Re: Voice Recognition, is the wiki up to date?
Post by: AdmiralRalwood on November 13, 2015, 02:54:29 am
I've always wondered how this worked. Does it always assume that Alpha is the player's wing and just goes Beta, Delta, Gamma in that order?
...No? The voice recognition code has never assumed the player wing is Alpha. It has a list of wing names that it understands as wing names, and as long as every wing you want to give orders to is on that list, it will understand your attempts to give them orders.
Title: Re: Voice Recognition, is the wiki up to date?
Post by: Mongoose on November 13, 2015, 03:57:39 pm
Oh wow, I copied that stuff over to the wiki half an eon ago.  I can't speak for how well it works now, but it was a blast the few times I played with it in the past.  So nice to not have to deal with C->3->Whatever!
Title: Re: Voice Recognition, is the wiki up to date?
Post by: Kiloku on November 13, 2015, 05:58:41 pm
Most (all?) commands still work, but my accent might be too strong, it doesn't understand what I'm trying to say about 80% of the time. Windows is dumb and doesn't allow me to train the voice recognition system because "voice recognition is not available for my language". Except that I want to train it for English.
Title: Re: Voice Recognition, is the wiki up to date?
Post by: AdmiralRalwood on November 13, 2015, 07:13:27 pm
Most (all?) commands still work, but my accent might be too strong, it doesn't understand what I'm trying to say about 80% of the time. Windows is dumb and doesn't allow me to train the voice recognition system because "voice recognition is not available for my language". Except that I want to train it for English.
Can you set your system language to English and see if it lets you train it?

You can also try providing a variant phrases.xml (copy phrases.xml from latest master and pop it into your data directory, then modify it) with phonetic spellings that more closely match your personal speaking style and see if FSO has an easier time understanding you; that's kind of a last-ditch brute-force solution, though (and trying to figure out how Windows expects you to pronounce something would involve a lot of guesswork anyway).
Title: Re: Voice Recognition, is the wiki up to date?
Post by: Kiloku on November 13, 2015, 09:17:37 pm
No, only Windows 10 Pro and above allow switching languages. All "Windows 7 Home Basic" and "Home Premium" were upgraded to "Windows 8 Single Language" and then "Windows 10 Single Language". No idea why they'd do that, though.

I might try editing phrases.xml though.