CSpeechRecognitionUtility::CBody Class Reference

class CSpeechRecognitionUtility::CBody : public CBase

Inherits from

  • CSpeechRecognitionUtility::CBody
Public Member Functions
~CBody()
TInt AddPronunciation(TLexiconID, TModelBankID, TModelID, TPronunciationID &)
TInt AddRule(TGrammarID, TLexiconID, TPronunciationID, TRuleID &)
voidCancel()
TInt CommitChanges()
TInt CreateGrammar(TGrammarID &)
TInt CreateLexicon(TLexiconID &)
TInt CreateModelBank(TModelBankID &)
TInt EndRecSession()
TInt GetAllClientGrammarIDs(RArray< TGrammarID > &)
TInt GetAllClientLexiconIDs(RArray< TLexiconID > &)
TInt GetAllClientModelBankIDs(RArray< TModelBankID > &)
TInt GetAllGrammarIDs(RArray< TGrammarID > &)
TInt GetAllLexiconIDs(RArray< TLexiconID > &)
TInt GetAllModelBankIDs(RArray< TModelBankID > &)
TInt GetAllModelIDs(TModelBankID, RArray< TModelID > &)
TInt GetAllPronunciationIDs(TLexiconID, RArray< TPronunciationID > &)
TInt GetAllRuleIDs(TGrammarID, RArray< TRuleID > &)
TInt GetAvailableStorage(TInt &)
TInt GetEngineProperties(const RArray< TInt > &, RArray< TInt > &)
TInt GetModelCount(TModelBankID, TInt &)
TInt GetRuleValidity(TGrammarID, TRuleID, TBool &)
TInt GetUtteranceDuration(TModelBankID, TModelID, TTimeIntervalMicroSeconds32 &)
voidHandleEvent(const TMMFEvent &)
TInt LoadEngineParameters(const RArray< TInt > &, const RArray< TInt > &)
TInt LoadGrammar(TGrammarID)
TInt LoadLexicon(TLexiconID)
TInt LoadModels(TModelBankID)
CSpeechRecognitionUtility::CBody *NewL(TUid, MSpeechRecognitionUtilityObserver &)
CSpeechRecognitionUtility::CBody *NewLC(TUid, MSpeechRecognitionUtilityObserver &)
TInt PlayUtterance(TModelBankID, TModelID)
TInt Recognize(CSDClientResultSet &)
TInt Record(TTimeIntervalMicroSeconds32)
TInt RemoveGrammar(TGrammarID)
TInt RemoveLexicon(TLexiconID)
TInt RemoveModel(TModelBankID, TModelID)
TInt RemoveModelBank(TModelBankID)
TInt RemovePronunciation(TLexiconID, TPronunciationID)
TInt RemoveRule(TGrammarID, TRuleID)
TInt SetAudioPriority(TInt, TInt, TInt, TInt)
voidSetEventHandler(MSpeechRecognitionUtilityObserver *)
TInt StartRecSession(TRecognitionMode)
TInt Train(TModelBankID, TModelID &)
TInt UnloadRule(TGrammarID, TRuleID)
Private Member Functions
CBody(TUid, MSpeechRecognitionUtilityObserver &)
voidConstructL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
TBool iAsyncCallBusy
TInt iAudioPriority
TUid iClientUid
CMMFControllerEventMonitor *iControllerEventMonitor
RArray< TGrammarID > *iGrammarIDs
RArray< TLexiconID > *iLexiconIDs
RMMFController iMMFController
RArray< TModelBankID > *iModelBankIDs
RArray< TModelID > *iModelIDs
TMdaPriorityPreference iPlaybackPreference
TMMFPrioritySettings iPrioritySettings
RArray< TPronunciationID > *iPronunciationIDs
TMdaPriorityPreference iRecognitionPreference
CSDClientResultSet *iResultSet
RArray< TRuleID > *iRuleIDs
MSpeechRecognitionUtilityObserver *iSpeechRecognitionUtilityObserver
RSpeechRecognitionCustomCommands iSrCustomCommands
TMdaPriorityPreference iTrainPreference

Constructor & Destructor Documentation

CBody(TUid, MSpeechRecognitionUtilityObserver &)

CBody(TUidaClientUid,
MSpeechRecognitionUtilityObserver &aSpeechRecognitionUtilityObserver
)[private]

Parameters

TUid aClientUid
MSpeechRecognitionUtilityObserver & aSpeechRecognitionUtilityObserver

~CBody()

~CBody()

Member Functions Documentation

AddPronunciation(TLexiconID, TModelBankID, TModelID, TPronunciationID &)

TInt AddPronunciation(TLexiconIDaLexiconID,
TModelBankIDaModelBankID,
TModelIDaModelID,
TPronunciationID &aPronunciationID
)

Parameters

TLexiconID aLexiconID
TModelBankID aModelBankID
TModelID aModelID
TPronunciationID & aPronunciationID

AddRule(TGrammarID, TLexiconID, TPronunciationID, TRuleID &)

TInt AddRule(TGrammarIDaGrammarID,
TLexiconIDaLexiconID,
TPronunciationIDaPronunciationID,
TRuleID &aRuleID
)

Parameters

TGrammarID aGrammarID
TLexiconID aLexiconID
TPronunciationID aPronunciationID
TRuleID & aRuleID

Cancel()

voidCancel()

CommitChanges()

TInt CommitChanges()

ConstructL()

voidConstructL()[private]

CreateGrammar(TGrammarID &)

TInt CreateGrammar(TGrammarID &aGrammarID)

Parameters

TGrammarID & aGrammarID

CreateLexicon(TLexiconID &)

TInt CreateLexicon(TLexiconID &aLexiconID)

Parameters

TLexiconID & aLexiconID

CreateModelBank(TModelBankID &)

TInt CreateModelBank(TModelBankID &aModelBankID)

Parameters

TModelBankID & aModelBankID

EndRecSession()

TInt EndRecSession()

GetAllClientGrammarIDs(RArray< TGrammarID > &)

TInt GetAllClientGrammarIDs(RArray< TGrammarID > &aRuleIDs)

Parameters

RArray< TGrammarID > & aRuleIDs

GetAllClientLexiconIDs(RArray< TLexiconID > &)

TInt GetAllClientLexiconIDs(RArray< TLexiconID > &aPronunciationIDs)

Parameters

RArray< TLexiconID > & aPronunciationIDs

GetAllClientModelBankIDs(RArray< TModelBankID > &)

TInt GetAllClientModelBankIDs(RArray< TModelBankID > &aModelIDs)

Parameters

RArray< TModelBankID > & aModelIDs

GetAllGrammarIDs(RArray< TGrammarID > &)

TInt GetAllGrammarIDs(RArray< TGrammarID > &aRuleIDs)

Parameters

RArray< TGrammarID > & aRuleIDs

GetAllLexiconIDs(RArray< TLexiconID > &)

TInt GetAllLexiconIDs(RArray< TLexiconID > &aPronunciationIDs)

Parameters

RArray< TLexiconID > & aPronunciationIDs

GetAllModelBankIDs(RArray< TModelBankID > &)

TInt GetAllModelBankIDs(RArray< TModelBankID > &aModelIDs)

Parameters

RArray< TModelBankID > & aModelIDs

GetAllModelIDs(TModelBankID, RArray< TModelID > &)

TInt GetAllModelIDs(TModelBankIDaModelBankID,
RArray< TModelID > &aModelIDs
)

Parameters

TModelBankID aModelBankID
RArray< TModelID > & aModelIDs

GetAllPronunciationIDs(TLexiconID, RArray< TPronunciationID > &)

TInt GetAllPronunciationIDs(TLexiconIDaLexiconID,
RArray< TPronunciationID > &aPronunciationIDs
)

Parameters

TLexiconID aLexiconID
RArray< TPronunciationID > & aPronunciationIDs

GetAllRuleIDs(TGrammarID, RArray< TRuleID > &)

TInt GetAllRuleIDs(TGrammarIDaGrammarID,
RArray< TRuleID > &aRuleIDs
)

Parameters

TGrammarID aGrammarID
RArray< TRuleID > & aRuleIDs

GetAvailableStorage(TInt &)

TInt GetAvailableStorage(TInt &aAvailableStorage)

Parameters

TInt & aAvailableStorage

GetEngineProperties(const RArray< TInt > &, RArray< TInt > &)

TInt GetEngineProperties(const RArray< TInt > &aPropertyId,
RArray< TInt > &aPropertyValue
)

Parameters

const RArray< TInt > & aPropertyId
RArray< TInt > & aPropertyValue

GetModelCount(TModelBankID, TInt &)

TInt GetModelCount(TModelBankIDaModelBankID,
TInt &aModelCount
)

Parameters

TModelBankID aModelBankID
TInt & aModelCount

GetRuleValidity(TGrammarID, TRuleID, TBool &)

TInt GetRuleValidity(TGrammarIDaGrammarID,
TRuleIDaRuleID,
TBool &aValid
)

Parameters

TGrammarID aGrammarID
TRuleID aRuleID
TBool & aValid

GetUtteranceDuration(TModelBankID, TModelID, TTimeIntervalMicroSeconds32 &)

TInt GetUtteranceDuration(TModelBankIDaModelBankID,
TModelIDaModelID,
TTimeIntervalMicroSeconds32 &aDuration
)

Parameters

TModelBankID aModelBankID
TModelID aModelID
TTimeIntervalMicroSeconds32 & aDuration

HandleEvent(const TMMFEvent &)

voidHandleEvent(const TMMFEvent &aEvent)

Parameters

const TMMFEvent & aEvent

LoadEngineParameters(const RArray< TInt > &, const RArray< TInt > &)

TInt LoadEngineParameters(const RArray< TInt > &aParameterId,
const RArray< TInt > &aParameterValue
)

Parameters

const RArray< TInt > & aParameterId
const RArray< TInt > & aParameterValue

LoadGrammar(TGrammarID)

TInt LoadGrammar(TGrammarIDaGrammarID)

Parameters

TGrammarID aGrammarID

LoadLexicon(TLexiconID)

TInt LoadLexicon(TLexiconIDaLexiconID)

Parameters

TLexiconID aLexiconID

LoadModels(TModelBankID)

TInt LoadModels(TModelBankIDaModelBankID)

Parameters

TModelBankID aModelBankID

NewL(TUid, MSpeechRecognitionUtilityObserver &)

CSpeechRecognitionUtility::CBody *NewL(TUidaClientUid,
MSpeechRecognitionUtilityObserver &aSpeechRecognitionUtilityObserver
)[static]

Parameters

TUid aClientUid
MSpeechRecognitionUtilityObserver & aSpeechRecognitionUtilityObserver

NewLC(TUid, MSpeechRecognitionUtilityObserver &)

CSpeechRecognitionUtility::CBody *NewLC(TUidaClientUid,
MSpeechRecognitionUtilityObserver &aSpeechRecognitionUtilityObserver
)[static]

Parameters

TUid aClientUid
MSpeechRecognitionUtilityObserver & aSpeechRecognitionUtilityObserver

PlayUtterance(TModelBankID, TModelID)

TInt PlayUtterance(TModelBankIDaModelBankID,
TModelIDaModelID
)

Parameters

TModelBankID aModelBankID
TModelID aModelID

Recognize(CSDClientResultSet &)

TInt Recognize(CSDClientResultSet &aResultSet)

Parameters

CSDClientResultSet & aResultSet

Record(TTimeIntervalMicroSeconds32)

TInt Record(TTimeIntervalMicroSeconds32aRecordTime)

Parameters

TTimeIntervalMicroSeconds32 aRecordTime

RemoveGrammar(TGrammarID)

TInt RemoveGrammar(TGrammarIDaGrammarID)

Parameters

TGrammarID aGrammarID

RemoveLexicon(TLexiconID)

TInt RemoveLexicon(TLexiconIDaLexiconID)

Parameters

TLexiconID aLexiconID

RemoveModel(TModelBankID, TModelID)

TInt RemoveModel(TModelBankIDaModelBankID,
TModelIDaModelID
)

Parameters

TModelBankID aModelBankID
TModelID aModelID

RemoveModelBank(TModelBankID)

TInt RemoveModelBank(TModelBankIDaModelBankID)

Parameters

TModelBankID aModelBankID

RemovePronunciation(TLexiconID, TPronunciationID)

TInt RemovePronunciation(TLexiconIDaLexiconID,
TPronunciationIDaPronunciationID
)

Parameters

TLexiconID aLexiconID
TPronunciationID aPronunciationID

RemoveRule(TGrammarID, TRuleID)

TInt RemoveRule(TGrammarIDaGrammarID,
TRuleIDaRuleID
)

Parameters

TGrammarID aGrammarID
TRuleID aRuleID

SetAudioPriority(TInt, TInt, TInt, TInt)

TInt SetAudioPriority(TIntaPriority,
TIntaTrainPreference,
TIntaPlaybackPreference,
TIntaRecognitionPreference
)

Parameters

TInt aPriority
TInt aTrainPreference
TInt aPlaybackPreference
TInt aRecognitionPreference

SetEventHandler(MSpeechRecognitionUtilityObserver *)

voidSetEventHandler(MSpeechRecognitionUtilityObserver *aSpeechRecognitionUtilityObserver)

Parameters

MSpeechRecognitionUtilityObserver * aSpeechRecognitionUtilityObserver

StartRecSession(TRecognitionMode)

TInt StartRecSession(TRecognitionModeaMode)

Parameters

TRecognitionMode aMode

Train(TModelBankID, TModelID &)

TInt Train(TModelBankIDaModelBankID,
TModelID &aModelID
)

Parameters

TModelBankID aModelBankID
TModelID & aModelID

UnloadRule(TGrammarID, TRuleID)

TInt UnloadRule(TGrammarIDaGrammarID,
TRuleIDaRuleID
)

Parameters

TGrammarID aGrammarID
TRuleID aRuleID

Member Data Documentation

TBool iAsyncCallBusy

TBool iAsyncCallBusy[private]

TInt iAudioPriority

TInt iAudioPriority[private]

TUid iClientUid

TUid iClientUid[private]

CMMFControllerEventMonitor * iControllerEventMonitor

CMMFControllerEventMonitor *iControllerEventMonitor[private]

RArray< TGrammarID > * iGrammarIDs

RArray< TGrammarID > *iGrammarIDs[private]

RArray< TLexiconID > * iLexiconIDs

RArray< TLexiconID > *iLexiconIDs[private]

RMMFController iMMFController

RMMFController iMMFController[private]

RArray< TModelBankID > * iModelBankIDs

RArray< TModelBankID > *iModelBankIDs[private]

RArray< TModelID > * iModelIDs

RArray< TModelID > *iModelIDs[private]

TMdaPriorityPreference iPlaybackPreference

TMdaPriorityPreference iPlaybackPreference[private]

TMMFPrioritySettings iPrioritySettings

TMMFPrioritySettings iPrioritySettings[private]

RArray< TPronunciationID > * iPronunciationIDs

RArray< TPronunciationID > *iPronunciationIDs[private]

TMdaPriorityPreference iRecognitionPreference

TMdaPriorityPreference iRecognitionPreference[private]

CSDClientResultSet * iResultSet

CSDClientResultSet *iResultSet[private]

RArray< TRuleID > * iRuleIDs

RArray< TRuleID > *iRuleIDs[private]

MSpeechRecognitionUtilityObserver * iSpeechRecognitionUtilityObserver

MSpeechRecognitionUtilityObserver *iSpeechRecognitionUtilityObserver[private]

RSpeechRecognitionCustomCommands iSrCustomCommands

RSpeechRecognitionCustomCommands iSrCustomCommands[private]

TMdaPriorityPreference iTrainPreference

TMdaPriorityPreference iTrainPreference[private]