(SUCCEEDED(hr)) { // Load the general dictation topic. hr = cpRecoGrammar->LoadDictation(NULL, SPLO_STATIC); } if (SUCCEEDED(hr)) { // Activate the dictation topic to receive recognitions. hr = cpRecoGrammar->SetDictationState(SPRS_ACTIVE); } if (SUCCEEDED(hr)) { // Do stuff ...
(SUCCEEDED(hr)) { // Load the general dictation topic. hr = cpRecoGrammar->LoadDictation(NULL, SPLO_STATIC); } if (SUCCEEDED(hr)) { // Activate the dictation topic to receive recognitions. hr = cpRecoGrammar->SetDictationState(SPRS_ACTIVE); } if (SUCCEEDED(hr)) { // Do stuff ...
context) hr = cpRecoContext->GetVoice(&cpVoice;); } if (SUCCEEDED(hr)) { // Tell the associated Voice to stop speaking when // the SR Engine hears a recognizable sound. hr = cpRecoContext->SetVoicePurgeEvent(SPFEI(SPEI_SOUND_START)); } if (SUCCEEDED(hr)) { // Do stuff here....