CNssRecognitionHandler Class Reference
class CNssRecognitionHandler : public CBase
|
Nested Classes and Structures
Public Member Enumerations
|
enum
|
TNssRState
{
EVasIdle
,
EVasWaitingForLoadModelsComplete
,
EVasWaitingForLoadLexiconComplete
,
EVasWaitingForLoadGrammarComplete
,
EVasWaitingForRecognitionReadyRecognitionInit
,
EVasWaitingForRecognize
,
EVasWaitingForRecordStarted
,
EVasWaitingForEouDetected
,
EVasWaitingForRecognitionComplete
,
EVasWaitingForSelectTag
,
EVasWaitingForUnloadRuleComplete
,
EVasWaitingForRecognitionReadyRejectTag
,
EVasDirectAdaptation
,
EVasIdleAdaptation
,
EVasCorrectingPluginDatabase
}
|
Constructor & Destructor Documentation
CNssRecognitionHandler()
CNssRecognitionHandler
|
(
|
)
|
[private]
|
~CNssRecognitionHandler()
~CNssRecognitionHandler
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AdaptL(MNssAdaptationEventHandler *, CSIClientResultSet *, TInt)
AdaptL - called by adaptation item. Adapts the acoustic models.
-
Since
-
2.0
Cancel()
TNssRecognitionResult
|
Cancel
|
(
|
)
|
|
Cleanup()
void
|
Cleanup
|
(
|
)
|
[private]
|
Perform required cleanup to get back to the EIdle state
CleanupRecognizeFailed()
void
|
CleanupRecognizeFailed
|
(
|
)
|
[private]
|
Perform required cleanup to get back to the EIdle state and issue the HandleRecognizeError event with RecognizeFailed error code
CleanupRecognizeInitFailed()
void
|
CleanupRecognizeInitFailed
|
(
|
)
|
[private]
|
Perform required cleanup to get back to the EIdle state and issue the HandleRecognizeInitError event with RecognizeInitFailed error code
CleanupRejectTagFailed()
void
|
CleanupRejectTagFailed
|
(
|
)
|
[private]
|
Perform required cleanup to get back to the EIdle state and issue the HandleRejectTagError event with RejectTagFailed error code
ClearContextList()
void
|
ClearContextList
|
(
|
)
|
[private]
|
Delete context objects from iContextList
ClearContextStatus()
void
|
ClearContextStatus
|
(
|
)
|
[private]
|
Delete entries from iContextStatus
ClearRuleList()
void
|
ClearRuleList
|
(
|
)
|
[private]
|
ClearTagList()
void
|
ClearTagList
|
(
|
)
|
[private]
|
Delete the tag objects from iTagList
CommonRecognizeInitL(MNssRecognizeInitCompleteHandler *, TInt)
Perform those RecognizeInitL tasks, which do not depend on vocabulary.
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
CreateSrfL()
void
|
CreateSrfL
|
(
|
)
|
[private]
|
Create the SRF object, iSrsApi.
DeleteSrf()
void
|
DeleteSrf
|
(
|
)
|
[private]
|
Gracefully terminate and delete the SRF object, iSrsApi.
DoEouDetected()
void
|
DoEouDetected
|
(
|
)
|
[private]
|
Handle EouDetected SRF event
DoLoadGrammarComplete()
void
|
DoLoadGrammarComplete
|
(
|
)
|
[private]
|
Handle LoadGrammarComplete SRF event
DoLoadGrammarFailed()
void
|
DoLoadGrammarFailed
|
(
|
)
|
[private]
|
Handle LoadGrammarFailed SRF event
DoLoadLexiconComplete()
void
|
DoLoadLexiconComplete
|
(
|
)
|
[private]
|
Handle LoadLexiconComplete SRF event
DoLoadLexiconFailed()
void
|
DoLoadLexiconFailed
|
(
|
)
|
[private]
|
Handle LoadLexiconFailed SRF event
DoLoadModelsComplete()
void
|
DoLoadModelsComplete
|
(
|
)
|
[private]
|
Handle LoadModelsComplete SRF event
DoLoadModelsFailed()
void
|
DoLoadModelsFailed
|
(
|
)
|
[private]
|
Handle LoadModelsFailed SRF event
DoPreStartSamplingComplete(TInt)
void
|
DoPreStartSamplingComplete
|
(
|
TInt
|
aError
|
)
|
[private]
|
Handle PreStartSampling SRSF event
DoRecognitionComplete()
void
|
DoRecognitionComplete
|
(
|
)
|
[private]
|
Handle RecognitionComplete SRF event
DoRecognitionFailed()
void
|
DoRecognitionFailed
|
(
|
)
|
[private]
|
Handle RecognitionFailed SRF event
DoRecognitionFailedNoMatch()
void
|
DoRecognitionFailedNoMatch
|
(
|
)
|
[private]
|
Handle RecognitionFailedNoMatch SRF event
DoRecognitionFailedNoSpeech(TInt)
void
|
DoRecognitionFailedNoSpeech
|
(
|
TInt
|
aResult
|
)
|
[private]
|
Handle RecognitionFailedNoSpeech, RecognitionFailedTooEarly, RecognitionFailedTooLong, and RecognitionFailedTooShort SRF events
Parameters
TInt
aResult
|
The Msruo event Result code.
|
DoRecognitionReady()
void
|
DoRecognitionReady
|
(
|
)
|
[private]
|
Handle RecognitionReady SRF event
DoRecordFailed(TInt)
void
|
DoRecordFailed
|
(
|
TInt
|
aResult
|
)
|
[private]
|
Handle RecordFailed SRF event
Parameters
TInt
aResult
|
The Msruo event Result code.
|
DoRecordStarted()
void
|
DoRecordStarted
|
(
|
)
|
[private]
|
Handle RecordStarted SRF event
DoUnloadRuleComplete()
void
|
DoUnloadRuleComplete
|
(
|
)
|
[private]
|
Handle UnloadRuleComplete SRF event
DoUnloadRuleFailed()
void
|
DoUnloadRuleFailed
|
(
|
)
|
[private]
|
Handle UnloadRuleFailed SRF event
GetAdaptationItemL()
From
MNssRecognitionHandler
Interface Get the adaptation item to adapt, when you know whether the result was correct or not.
-
Since
-
2.0
HandleTagCheckL()
void
|
HandleTagCheckL
|
(
|
)
|
[private]
|
Handle Tag Check for contexts
MsruoEvent(TUid, TInt)
void
|
MsruoEvent
|
(
|
TUid
|
aEvent,
|
|
TInt
|
aResult
|
|
)
|
|
From MSpeechRecognitionEvent Interface Handle Speech Recognition Utility event
-
Since
-
2.0
Parameters
TUid
aEvent
|
The event callback to receive Speech Recognition Utility events.
|
TInt
aResult
|
The result value associated with aEvent.
|
PreStartSampling(MNssRecognizeInitCompleteHandler *)
From
MNssRecognitionHandler
Starts sampling already before RecognizeInitL and Recognize calls. This is used to ensure that there is no delay between user notification and sampling start.
Recognize(MNssRecognizeEventHandler *)
RecognizeInitL(MNssRecognizeInitCompleteHandler *, const CArrayPtrFlat< MNssContext > &, TInt)
Perform initialization for the recognize funtion.
-
Since
-
2.0
RecognizeInitL(MNssRecognizeInitCompleteHandler *, TInt)
Perform initialization for the recognize funtion. Automatically loads the commands and the names as recognition vocabulary.
-
Since
-
2.0
RejectTagL(MNssRejectTagCompleteHandler *, CArrayPtrFlat< MNssTag > *)
Request Reject Tag, i.e. blacklisting.
-
Since
-
2.0
RemoveAdaptationItem(CNssAdaptationItem *)
RemoveAdaptationItem - When an adaptation item is destroyed, it signals to its "host" recognition handler. This way, the host knows to remove it from the list of active adaptation items.
SelectTagL(MNssTag *)
TNssRecognitionResult
|
SelectTagL
|
(
|
MNssTag
*
|
aClientTag
|
)
|
|
Parameters
MNssTag
* aClientTag
|
The voice tag which was selected. The tag is owned by the client.
|
SelectTagL(MNssTag *, TBool)
TNssRecognitionResult
|
SelectTagL
|
(
|
MNssTag
*
|
aClientTag,
|
|
TBool
|
aNotifyHandlers
|
|
)
|
|
Parameters
MNssTag
* aClientTag
|
The voice tag which was selected. The tag is owned by the client.
|
TBool
aNotifyHandlers
|
If false, the global context handlers won't be notified.
|
UnexpectedEvent()
void
|
UnexpectedEvent
|
(
|
)
|
[private]
|
Cleanup and determine the correct event handler
Member Enumerations Documentation
Enum TNssRState
Enumerators
EVasIdle
|
|
EVasWaitingForLoadModelsComplete
|
|
EVasWaitingForLoadLexiconComplete
|
|
EVasWaitingForLoadGrammarComplete
|
|
EVasWaitingForRecognitionReadyRecognitionInit
|
|
EVasWaitingForRecognize
|
|
EVasWaitingForRecordStarted
|
|
EVasWaitingForEouDetected
|
|
EVasWaitingForRecognitionComplete
|
|
EVasWaitingForSelectTag
|
|
EVasWaitingForUnloadRuleComplete
|
|
EVasWaitingForRecognitionReadyRejectTag
|
|
EVasDirectAdaptation
|
|
EVasIdleAdaptation
|
|
EVasCorrectingPluginDatabase
|
|
Member Data Documentation
RPointerArray< CNssAdaptationItem > iAdaptItemArray
MNssAdaptationEventHandler * iAdaptationHandler
TInt
iContextCount
TInt
|
iContextCount
|
[private]
|
TInt
iContextCurrentLoopCount
TInt
|
iContextCurrentLoopCount
|
[private]
|
TMNssContextList * iContextList
CNssContextMgr * iContextMgr
CArrayFixFlat< TBool > * iContextStatus
MNssRecognizeEventHandler * iEventHandler
MNssRecognizeInitCompleteHandler * iInitCompleteHandler
TInt
iMaxResults
TInt
|
iMaxResults
|
[private]
|
MNssRejectTagCompleteHandler * iRejectTagCompleteHandler
TInt
iRejectTagCount
TInt
|
iRejectTagCount
|
[private]
|
TInt
iRejectTagCurrentLoopCount
TInt
|
iRejectTagCurrentLoopCount
|
[private]
|
CArrayFixFlat< TRuleEntry > * iRuleList
CSIClientResultSet * iSIClientResultSet
CNssSiUtilityWrapper * iSrsApi
CNssSiUtilityWrapper *
|
iSrsApi
|
[private]
|
TInt
iTagCurrentLoopCount
TInt
|
iTagCurrentLoopCount
|
[private]
|
CArrayPtrFlat< CNssTag > * iTagList
CNssVASDBBuilder * iVasDBBuilder
CActiveSchedulerWait
iWait
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.