Click to Rate and Give Feedback
MSDN
MSDN Library
Speech Technologies
Windows
ISpRecognizer2
 ISpRecognizer2::SetTrainingState (S...
ISpRecognizer2::SetTrainingState (SAPI 5.3)
Microsoft Speech API 5.3

ISpRecognizer2::SetTrainingState

ISpRecognizer2::SetTrainingState puts the recognizer into training mode to do acoustic adaptation. This is what is happening in the background when you are using the training wizard from the control panel.

When in training mode, the recognizer assumes that what the user said is definitely correct and that it should definitely be used for adaptation. The assumption is that the user is reading from a script and there are no forks in the script.


HRESULT SetTrainingState(
   BOOL    fDoingTraining,
   BOOL    fAdaptFromTrainingData
);

Parameters

fDoingTraining
True to switch training on, false to switch it off.
fAdaptFromTrainingData
Tells the engine whether to actually use the data or discard it. This is only really useful at the end of training (that is, when fDoingTraining is set to false).

Return values

ValueDescription
S_OKFunction completed successfully.
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker