Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Test Builds => Topic started by: AdmiralRalwood on April 23, 2015, 08:15:40 pm
-
Figured this could use its own topic.
AVX build (http://deviance.duckish.net/downloads/fs2_open_voicetest_AVX.7z)
SSE2 build (http://deviance.duckish.net/downloads/fs2_open_voicetest_SSE2.7z)
Example grammar file (http://deviance.duckish.net/downloads/phrases.xml) (adds "Falcata" to the wing list (give it a try in Her Finest Hour) and the ability to say "GTFO" to jump out, but is otherwise the same as the built-in grammar file)
voicerec.cpp changes (http://pastebin.com/4W4YWsbK) (diff created ignoring whitespace since indentation was normalized to tabs instead of spaces)
So, quick list of things I did to voicerec.cpp:
- Removed hard-coded wing list; wings now provide the string to be searched for through the VALSTR attribute.
- Switched the voice recognition from "shared" to "in-process"; much more user-friendly this way.
- Fixed recognition of "All Fighters/Wings <order>"; was using pNextSibling instead of pFirstChild, so it wasn't seeing the order, making it behave just like saying "All Fighters/Wings".
-
Forgot to post, this was working awesome for me yesterday. Didn't even need to yell, and I don't know which of my three mics it was using (that's right: 3. The Labtec upright, the boom on the headphones, and the Orbit webcam apparently has a mic).