LoadDictation with SAPI

Posted by Naveen on Stack Overflow See other posts from Stack Overflow or by Naveen
Published on 2010-03-19T06:31:42Z Indexed on 2010/03/22 21:51 UTC
Read the original article Hit count: 635

Filed under:
|

I am able to create alternate dictation grammars using the dictation resource kit or directions given here. I am not able to load the new dictation topic with c++. I am trying to modify the simpledict sample provided with the sapi5.1 sdk. The following doesn't work.

 std::wstring stemp = s2ws("grammar:dictation#Genre");  
    LPCWSTR mygrammar = stemp.c_str();
    hr = m_cpDictationGrammar->LoadDictation(mygrammar, SPLO_STATIC);

© Stack Overflow or respective owner

Related posts about speech-recognition

Related posts about SAPI