Hi

I want to make a tool, using Microsoft Speech with VC++6.0 . The
XP ->Contral panel->Speech->SpeechRecognize we can choose the "Microsoft
English Recongizer" or "Microsoft Simplfied Chinese Recongizer" etc...but I
want to make it in my tool. Are there any SAPI functions to choose the
Recongizer?

Thanks in advance

Re: A question of SAPI? by William

William
Sun Jun 20 21:48:35 CDT 2004

"hostran" <lit@hostran.com.cn> wrote in message
news:OP192DzVEHA.2592@TK2MSFTNGP09.phx.gbl...
> I want to make a tool, using Microsoft Speech with VC++6.0 . The
> XP ->Contral panel->Speech->SpeechRecognize we can choose the "Microsoft
> English Recongizer" or "Microsoft Simplfied Chinese Recongizer" etc...but
I
> want to make it in my tool. Are there any SAPI functions to choose the
> Recongizer?

First, I should tell you that this is the wrong group for your question

microsoft.public.speech_tech

or better

microsoft.public.speech_tech.sdk

would have been a better choice.

But second, because we don't want anyone to leave us empty-handed, on your
way over there check the docs for ISpRecognizer interface. It has a method
named SetRecognizer() which you can use to choose the speech recognition
engine.

Note that the method takes a "token" as a parameter. You can enumerate all
of the recognizer tokens on a system by calling SpEnumTokens()using the
category SPCAT_RECOGNIZERS and then use SpGetDescription() to find the one
you like.

Regards,
Will