Jump to content
  • Advertisement
Sign in to follow this  
Basic

OpenGL SAPI with OpenGL in RealTime

This topic is 2785 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I am currently trying to make use of the SAPI program for a lip sync animation on a human head. At the moment, I am able to animate the figure by using different blend shapes for the mouth, so the easy part is down.

However, I have not been able to figure out how to use the SAPI API in realtime in graphical applications.

Currently I have this in my main glut loop to test the speech interface

hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);
hr = pVoice->Speak(L"Microsoft Speech A P I Initiated", SPF_ASYNC, NULL);
hr = pVoice->Release();
pVoice = NULL;


What kind of properties should I be looking at with the Speech API in order to do some work with real time lip sync? The accuracy of the lips are not so important right now(visemes, phonemes, etc.), it's more important that when a line of text is read I can interact with my characters geometry in realtime during the speech. Any good examples out there?

Thanks for your help.

Share this post


Link to post
Share on other sites
Advertisement
[Solution]

Correct! The solution was to just run SAPI function in a new thread. I'm not positive this is the best implementation, but it worked well enough for a small Demo.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!