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 &)
void Cancel ()
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 &)
void HandleEvent (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 )
void SetEventHandler ( MSpeechRecognitionUtilityObserver *)
TInt StartRecSession ( TRecognitionMode )
TInt Train ( TModelBankID , TModelID &)
TInt UnloadRule ( TGrammarID , TRuleID )
Private Member Functions
CBody ( TUid , MSpeechRecognitionUtilityObserver &)
void ConstructL ()
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 ( TUid aClientUid,
MSpeechRecognitionUtilityObserver & aSpeechRecognitionUtilityObserver
) [private]

Parameters

TUid aClientUid
MSpeechRecognitionUtilityObserver & aSpeechRecognitionUtilityObserver

~CBody()

~CBody ( )

Member Functions Documentation

AddPronunciation(TLexiconID, TModelBankID, TModelID, TPronunciationID &)

TInt AddPronunciation ( TLexiconID aLexiconID,
TModelBankID aModelBankID,
TModelID aModelID,
TPronunciationID & aPronunciationID
)

Parameters

TLexiconID aLexiconID
TModelBankID aModelBankID
TModelID aModelID
TPronunciationID & aPronunciationID

AddRule(TGrammarID, TLexiconID, TPronunciationID, TRuleID &)

TInt AddRule ( TGrammarID aGrammarID,
TLexiconID aLexiconID,
TPronunciationID aPronunciationID,
TRuleID & aRuleID
)

Parameters

TGrammarID aGrammarID
TLexiconID aLexiconID
TPronunciationID aPronunciationID
TRuleID & aRuleID

Cancel()

void Cancel ( )

CommitChanges()

TInt CommitChanges ( )

ConstructL()

void ConstructL ( ) [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 ( TModelBankID aModelBankID,
RArray < TModelID > & aModelIDs
)

Parameters

TModelBankID aModelBankID
RArray < TModelID > & aModelIDs

GetAllPronunciationIDs(TLexiconID, RArray< TPronunciationID > &)

TInt GetAllPronunciationIDs ( TLexiconID aLexiconID,
RArray < TPronunciationID > & aPronunciationIDs
)

Parameters

TLexiconID aLexiconID
RArray < TPronunciationID > & aPronunciationIDs

GetAllRuleIDs(TGrammarID, RArray< TRuleID > &)

TInt GetAllRuleIDs ( TGrammarID aGrammarID,
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 ( TModelBankID aModelBankID,
TInt & aModelCount
)

Parameters

TModelBankID aModelBankID
TInt & aModelCount

GetRuleValidity(TGrammarID, TRuleID, TBool &)

TInt GetRuleValidity ( TGrammarID aGrammarID,
TRuleID aRuleID,
TBool & aValid
)

Parameters

TGrammarID aGrammarID
TRuleID aRuleID
TBool & aValid

GetUtteranceDuration(TModelBankID, TModelID, TTimeIntervalMicroSeconds32 &)

TInt GetUtteranceDuration ( TModelBankID aModelBankID,
TModelID aModelID,
TTimeIntervalMicroSeconds32 & aDuration
)

Parameters

TModelBankID aModelBankID
TModelID aModelID
TTimeIntervalMicroSeconds32 & aDuration

HandleEvent(const TMMFEvent &)

void HandleEvent ( 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 ( TGrammarID aGrammarID )

Parameters

TGrammarID aGrammarID

LoadLexicon(TLexiconID)

TInt LoadLexicon ( TLexiconID aLexiconID )

Parameters

TLexiconID aLexiconID

LoadModels(TModelBankID)

TInt LoadModels ( TModelBankID aModelBankID )

Parameters

TModelBankID aModelBankID

NewL(TUid, MSpeechRecognitionUtilityObserver &)

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

Parameters

TUid aClientUid
MSpeechRecognitionUtilityObserver & aSpeechRecognitionUtilityObserver

NewLC(TUid, MSpeechRecognitionUtilityObserver &)

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

Parameters

TUid aClientUid
MSpeechRecognitionUtilityObserver & aSpeechRecognitionUtilityObserver

PlayUtterance(TModelBankID, TModelID)

TInt PlayUtterance ( TModelBankID aModelBankID,
TModelID aModelID
)

Parameters

TModelBankID aModelBankID
TModelID aModelID

Recognize(CSDClientResultSet &)

TInt Recognize ( CSDClientResultSet & aResultSet )

Parameters

CSDClientResultSet & aResultSet

Record(TTimeIntervalMicroSeconds32)

TInt Record ( TTimeIntervalMicroSeconds32 aRecordTime )

Parameters

TTimeIntervalMicroSeconds32 aRecordTime

RemoveGrammar(TGrammarID)

TInt RemoveGrammar ( TGrammarID aGrammarID )

Parameters

TGrammarID aGrammarID

RemoveLexicon(TLexiconID)

TInt RemoveLexicon ( TLexiconID aLexiconID )

Parameters

TLexiconID aLexiconID

RemoveModel(TModelBankID, TModelID)

TInt RemoveModel ( TModelBankID aModelBankID,
TModelID aModelID
)

Parameters

TModelBankID aModelBankID
TModelID aModelID

RemoveModelBank(TModelBankID)

TInt RemoveModelBank ( TModelBankID aModelBankID )

Parameters

TModelBankID aModelBankID

RemovePronunciation(TLexiconID, TPronunciationID)

TInt RemovePronunciation ( TLexiconID aLexiconID,
TPronunciationID aPronunciationID
)

Parameters

TLexiconID aLexiconID
TPronunciationID aPronunciationID

RemoveRule(TGrammarID, TRuleID)

TInt RemoveRule ( TGrammarID aGrammarID,
TRuleID aRuleID
)

Parameters

TGrammarID aGrammarID
TRuleID aRuleID

SetAudioPriority(TInt, TInt, TInt, TInt)

TInt SetAudioPriority ( TInt aPriority,
TInt aTrainPreference,
TInt aPlaybackPreference,
TInt aRecognitionPreference
)

Parameters

TInt aPriority
TInt aTrainPreference
TInt aPlaybackPreference
TInt aRecognitionPreference

SetEventHandler(MSpeechRecognitionUtilityObserver *)

void SetEventHandler ( MSpeechRecognitionUtilityObserver * aSpeechRecognitionUtilityObserver )

Parameters

MSpeechRecognitionUtilityObserver * aSpeechRecognitionUtilityObserver

StartRecSession(TRecognitionMode)

TInt StartRecSession ( TRecognitionMode aMode )

Parameters

TRecognitionMode aMode

Train(TModelBankID, TModelID &)

TInt Train ( TModelBankID aModelBankID,
TModelID & aModelID
)

Parameters

TModelBankID aModelBankID
TModelID & aModelID

UnloadRule(TGrammarID, TRuleID)

TInt UnloadRule ( TGrammarID aGrammarID,
TRuleID aRuleID
)

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]