Author Topic: 3.6.9rc7dot9 Voice Recognition broken?  (Read 3697 times)

0 Members and 1 Guest are viewing this topic.

Offline miskat

  • 27
3.6.9rc7dot9 Voice Recognition broken?
I've just enabled -voicer to try to get it working (using the same built-in OfficeXP recognition software, all trained up and working alright) but for some reason, the game does not respond to commands given.  I try things like "All fighters disable my target" and get no response.

Wordpad and MSWord dictation works alright, but nothing in game.  Is it broken in 3.6.9rc7dot9 or did I do something wrong/miss an install step somewhere along the way?

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
*sighs*  I just read that it isn't IN the 3.6.9rc builds...  Darn... just got everything working all spiffy too, now I have to switch builds and find one that does it all.  =(

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: 3.6.9rc7dot9 Voice Recognition broken?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
This is 3.6.9 with Voice recognition?  CVS?

I must say, I've always been pretty confused about what the difference was between CVS builds and official builds was.  =(  And honestly, I have no idea where this came from.  >.<  *sighs and feels ignorant*  I probably missed something somewhere.

At any rate, thank's a ton, Kara.

PS. The date stamped on it... 12/13/2k6?  That's today... did you just build this?  O.O

PSS. Damn... voice recognition doesn't work in the build that's in your link.  I get two error messages at startup "failed to create windows message" and "failed to init voice recognition"  I get neither error and voice recognition works fine in the build that madprof posted toward the end of the voice recognition thread in the recent build forum.
« Last Edit: December 13, 2006, 02:05:44 pm by miskat »

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: 3.6.9rc7dot9 Voice Recognition broken?
I never use voice so it's possible I didn't set the options correct. I'll take a look.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
Alrighty.  I remember people mentioning the problem when the first voice recognition build was released, but I never saw a solution, it just magically went away or something.  lol

I really appreciate the help.  I don't use wingmen otherwise... can't think+move my hands fast enough, I guess.  =(  But with voice, it's easy, and really really fun!  =D

 

Offline asyikarea51

  • 210
  • -__-||
Re: 3.6.9rc7dot9 Voice Recognition broken?
Me appreciates the build as well. It should help me get my techroom entries right... :lol:

:nervous:
Inferno plz
The Power of Nightmares
TheHound: "Nice idea, but I have a thing against announcing campaigns before having them already finished."
G5K: "The flipside of that is that if you don't announce your campaign, yet take too long to finish it, other people may independently come up with some of the same ideas."

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: 3.6.9rc7dot9 Voice Recognition broken?
Nope. Looks like I built it right. I guess the bug is back.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
Grarg.  XD  Alrighty, time to go diving.  I WILL find out why this is happening if it's the last thing I do!

XD

Thanks for all your help, Kara.

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
Kara... I really feel bad asking for this, but could you point me to a place where I could download the copy of voicerec.cpp you used to compile your build?  I would love to compare it to the copy that MadProf uploaded along with his build.  Hopefully I wil lbe able to spot something.  ^^;;;

Then again... that might be very presumptuous of me.  BUT... I think I found the problem (or at least what could be causing it... and that MAY not be code-based at all, but the code is helping me understand it which means I might be able to fix it... anyway.)

If not, then no problem.  ^.^

Thanks again!

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: 3.6.9rc7dot9 Voice Recognition broken?
You can grab the entire codebase by following the advice here.

Or you can compare the differences between two versions of the code here
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
Kara, you're a god.

I haven't found EXACTLY what's causing the problem yet, but I know the problem is that, for some reason, the SR won't identify Freespace2 as a target window for events.

The code looks the same between the working build and the broken build when I looked at the chunk that handles initilization of the SR engine, so it must be an anomaly on the user end of things, but what could cause the SR engine to fail like that is beyond me.  The only thing I could think of is that the SR engine was being initilized before Freespace2 had wormed it's way into windows accepting it as a valid window (after all, when I get the error messages, there isn't actually a window yet.)

This is when I wish I knew more about how graphical C++ programing in Windows really worked.  lol

Thanks again for all your help, Kara, it's been mightily appreciated.  And now I can get the codebase and really pour over this!  I might learn something!  XD

Thanks again!

 

Offline Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
Re: 3.6.9rc7dot9 Voice Recognition broken?
Ugh.  The last time this happened was because somebody messed with the project file.  I hope that didn't happen again.

Actually, I hope it did, because that would make the bug easy to find. :)

Is this in Mantis?

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
No I have not mantis'd it.  I'm still not 100% sure this isn't an error on my end, Windows being picky or something.  If I should Mantis it, I will, though.  Just figured I'd try to really be sure first.  XD

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: 3.6.9rc7dot9 Voice Recognition broken?
I get it too. Stick it in Mantis.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
It's been Mantis'd.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: 3.6.9rc7dot9 Voice Recognition broken?
I added my theory to the Mantis bug, so see if that helps it at all.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline miskat

  • 27
Re: 3.6.9rc7dot9 Voice Recognition broken?
Your new build does indeed work, Kara.  Thanks, I owe you.  ...I owe all of you, actually.  lol

Just seems to be missing the improvements that MadProf made (not requireing a pause, and added commands) but I'm going to see if I can't deal with those myself.  XD  Gotta figure out how all this works.  =P

Is the phrase.xml file a madular extension of the code, so that the available commands can be changed on the fly, or is it a file that is used when compiling in order to work that phrase list into the resulting .exe?

A modular phrase list would be downright awesome, but lord knows we'd all find a way to screw that up!  XD

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: 3.6.9rc7dot9 Voice Recognition broken?
Not my work. Taylors. I just happened to have a copy of MSVC open when I noticed his comment and realised it would take about a minute to check if he was right about the cause.

Mad Prof's stuff is missing because the build is a 3.6.9 branch build and his stuff is in the HEAD branch. I'll commit this to CVS after a little bit more testing and then you can simply grab one of RedMenace's CVS builds to use it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]