【发布时间】:2010-03-19 06:31:42
【问题描述】:
我可以使用听写资源工具包或here 给出的指示来创建替代听写语法。我无法使用 C++ 加载新的听写主题。我正在尝试修改随 sapi5.1 sdk 提供的 simpledict 示例。以下不起作用。
std::wstring stemp = s2ws("grammar:dictation#Genre");
LPCWSTR mygrammar = stemp.c_str();
hr = m_cpDictationGrammar->LoadDictation(mygrammar, SPLO_STATIC);
【问题讨论】: