MNssTrainVoiceEventHandler Class Reference

class MNssTrainVoiceEventHandler

The MNssTrainVoiceEventHandler class provides the call back methods to handle the events during Train operation.

NssVASApi.lib
Since
2.0

Member Functions Documentation

HandleEouDetected()

voidHandleEouDetected()[pure virtual]
End Of Utterance Event - Recognizer has finished receiving the input speech
Since
2.0

HandleReadyToRecord()

voidHandleReadyToRecord()[pure virtual]
Ready To Record Event - Recognizer is ready to receive the input speech
Since
2.0

HandleRecordStarted()

voidHandleRecordStarted()[pure virtual]
Record Started Event - Recognizer is receiving the input speech
Since
2.0

HandleTrainComplete(TInt)

voidHandleTrainComplete(TIntaErrorCode)[pure virtual]
Train Complete Event - Recognizer has trained the input speech by creating a model.
Since
2.0

Parameters

TInt aErrorCodeKErrNone if training was successfull

Member Enumerations Documentation

Enum TNssTrainResult

TNssTrainResult will have all the enums to represent the result values from HandleTrainFailed method.

NOTE: The HandleTrainFailed() should handle the undefined error for TNssTrainResult.

Enumerators

EVasTrainFailed = 1
EVasRecordFailed
EVasTrainFailedNoSpeech
EVasTrainFailedTooEarly
EVasTrainFailedTooLong
EVasTrainFailedTooShort
EVasTagSpaceUnavailable
EVasTrainNoMemory
EVasTrainAccessDeny
EVasTrainUndefinedError10
EVasTrainUndefinedError9
EVasTrainUndefinedError8
EVasTrainUndefinedError7
EVasTrainUndefinedError6
EVasTrainUndefinedError5
EVasTrainUndefinedError4
EVasTrainUndefinedError3
EVasTrainUndefinedError2
EVasTrainUndefinedError1