ISRGramCommon::TrainQuery

HRESULT TrainQuery(DWORD *pdwFlags);

Queries the engine for the kind of training needed for a particular grammar.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
E_OUTOFMEMORY
SRERR_NOTSUPPORTED
SRERR_VALUEOUTOFRANGE

pdwFlags

[out] Address of a variable that receives a value indicating the kind of training to be done. This parameter can be one of these values:

Value

Meaning

SRGRAMQ_DIALOG

The application should call the ISRGramCommon::TrainDlg member function.

SRGRAMQ_GENERALTRAIN

General training should occur for the speaker because he or she hasn't trained before.

SRGRAMQ_PHRASE

Training should occur for certain phrases so that they can be recognized correctly. The application should call the ISRGramCommon::TrainPhrase member function.