i used this code to set up the grammer for dictation, this will recognise any word. but i want to load up a list commands and only recognise these commands.
Code:SUCCEEDED(hr = cpRecoCtxt->CreateGrammar(0, &cpGrammar)) && SUCCEEDED(hr = cpGrammar->LoadDictation(NULL, SPLO_STATIC)) && SUCCEEDED(hr = cpGrammar->SetDictationState(SPRS_ACTIVE)))
i am using sapi 5.1