MNssRecognitionHandler Class Reference

class MNssRecognitionHandler

The MNssRecognitionHandler class performs the recognition function. CNssRecognitionHandler class.

NssVASApi.lib
Since
2.8

Member Functions Documentation

Cancel()

TNssRecognitionResult Cancel()[pure virtual]
Cancel the last recognition function.
Since
2.0

GetAdaptationItemL()

MNssAdaptationItem *GetAdaptationItemL()[pure virtual]
Get adaptation item to allow later adaptation.
Since
2.0

PreStartSampling(MNssRecognizeInitCompleteHandler *)

TNssRecognitionResult PreStartSampling(MNssRecognizeInitCompleteHandler *aInitCompleteHandler)[pure virtual]

Starts sampling already before RecognizeInitL and Recognize calls. This is used to ensure that there is no delay between user notification and sampling start. Asynchronous: MNssRecognizeInitCompleteHandler::HandlePreSamplingStarted will be called when ready.

Since
3.2

Parameters

MNssRecognizeInitCompleteHandler * aInitCompleteHandlerCallback handler

Recognize(MNssRecognizeEventHandler *)

TNssRecognitionResult Recognize(MNssRecognizeEventHandler *aEventHandler)[pure virtual]
Perform the recognize function.
Since
2.0

Parameters

MNssRecognizeEventHandler * aEventHandlerThe event call back to receive recognize events.

RecognizeInitL(MNssRecognizeInitCompleteHandler *, TInt)

TNssRecognitionResult RecognizeInitL(MNssRecognizeInitCompleteHandler *aInitCompleteHandler,
TIntaMaxResults
)[pure virtual]
Perform initialization for the recognize funtion.
Since
2.0

Parameters

MNssRecognizeInitCompleteHandler * aInitCompleteHandlerThe event call back to receive recognize init events.
TInt aMaxResultsThe maximum number of voice tags to be recognized.

RecognizeInitL(MNssRecognizeInitCompleteHandler *, const CArrayPtrFlat< MNssContext > &, TInt)

TNssRecognitionResult RecognizeInitL(MNssRecognizeInitCompleteHandler *aInitCompleteHandler,
const CArrayPtrFlat< MNssContext > &aContextArray,
TIntaMaxResults
)[pure virtual]
Perform initialization for the recognize function.
Since
2.0

Parameters

MNssRecognizeInitCompleteHandler * aInitCompleteHandlerThe event call back to receive recognize init events.
const CArrayPtrFlat< MNssContext > & aContextArrayThe list of contexts to be active in recognition, i.e. recognition vocabulary.
TInt aMaxResultsThe maximum number of voice tags to be recognized.

RejectTagL(MNssRejectTagCompleteHandler *, CArrayPtrFlat< MNssTag > *)

TNssRecognitionResult RejectTagL(MNssRejectTagCompleteHandler *aRejectTagCompleteHandler,
CArrayPtrFlat< MNssTag > *aClientTagList
)[pure virtual]
Request Reject Tag, i.e. blacklisting.
Since
2.0

Parameters

MNssRejectTagCompleteHandler * aRejectTagCompleteHandler
CArrayPtrFlat< MNssTag > * aClientTagListThe list of voice tags which is to be rejected, i.e. blacklisted. The tag list is owned by the client.

SelectTagL(MNssTag *)

TNssRecognitionResult SelectTagL(MNssTag *aClientTag)[pure virtual]
Initiate the Select Tag event.
Since
2.0

Parameters

MNssTag * aClientTagThe voice tag which was selected. The tag is owned by the client.

SelectTagL(MNssTag *, TBool)

TNssRecognitionResult SelectTagL(MNssTag *aClientTag,
TBoolaNotifyHandlers
)[pure virtual]
Initiate the Select Tag event.
Since
2.0

Parameters

MNssTag * aClientTagThe voice tag which was selected. The tag is owned by the client.
TBool aNotifyHandlers

Member Enumerations Documentation

Enum TNssRecognitionResult

Enumerators

EVasErrorNone
EVasRecognitionInitFailed
EVasRecognitionFailed
EVasSelectTagFailed
EVasRejectTagFailed
EVasUnexpectedRequest
EVasInvalidParameter