MSpeechRecognitionCustomCommandImplementor Class Reference
#include
<mmf/common/speechrecognitioncustomcommandimplementor.h>
| class MSpeechRecognitionCustomCommandImplementor |
| Public Member Functions |
|---|
| pure virtual void | MSrAddPronunciationL(TLexiconID, TModelBankID, TModelID, TPronunciationID &) |
| pure virtual void | MSrAddRuleL(TGrammarID, TLexiconID, TPronunciationID, TRuleID &) |
| pure virtual void | MSrCancel() |
| pure virtual void | MSrCommitChangesL() |
| pure virtual void | MSrCreateGrammarL(TGrammarID &) |
| pure virtual void | MSrCreateLexiconL(TLexiconID &) |
| pure virtual void | MSrCreateModelBankL(TModelBankID &) |
| pure virtual void | MSrEndRecSessionL() |
| pure virtual void | MSrGetAllClientGrammarIDsL(RArray< TGrammarID > &) |
| pure virtual void | MSrGetAllClientLexiconIDsL(RArray< TLexiconID > &) |
| pure virtual void | MSrGetAllClientModelBankIDsL(RArray< TModelBankID > &) |
| pure virtual void | MSrGetAllGrammarIDsL(RArray< TGrammarID > &) |
| pure virtual void | MSrGetAllLexiconIDsL(RArray< TLexiconID > &) |
| pure virtual void | MSrGetAllModelBankIDsL(RArray< TModelBankID > &) |
| pure virtual void | MSrGetAllModelIDsL(TModelBankID, RArray< TModelID > &) |
| pure virtual void | MSrGetAllPronunciationIDsL(TLexiconID, RArray< TPronunciationID > &) |
| pure virtual void | MSrGetAllRuleIDsL(TGrammarID, RArray< TRuleID > &) |
| pure virtual void | MSrGetAvailableStorageL(TInt &) |
| pure virtual void | MSrGetEnginePropertiesL(const RArray< TInt > &, RArray< TInt > &) |
| pure virtual void | MSrGetModelCountL(TModelBankID, TInt &) |
| pure virtual void | MSrGetRuleValidityL(TGrammarID, TRuleID, TBool &) |
| pure virtual void | MSrGetUtteranceDurationL(TModelBankID, TModelID, TTimeIntervalMicroSeconds32 &) |
| pure virtual void | MSrLoadEngineParametersL(const RArray< TInt > &, const RArray< TInt > &) |
| pure virtual void | MSrLoadGrammarL(TGrammarID) |
| pure virtual void | MSrLoadLexiconL(TLexiconID) |
| pure virtual void | MSrLoadModelsL(TModelBankID) |
| pure virtual void | MSrPlayUtteranceL(TModelBankID, TModelID) |
| pure virtual void | MSrRecognizeL(CSDClientResultSet &) |
| pure virtual void | MSrRecordL(TTimeIntervalMicroSeconds32) |
| pure virtual void | MSrRemoveGrammarL(TGrammarID) |
| pure virtual void | MSrRemoveLexiconL(TLexiconID) |
| pure virtual void | MSrRemoveModelBankL(TModelBankID) |
| pure virtual void | MSrRemoveModelL(TModelBankID, TModelID) |
| pure virtual void | MSrRemovePronunciationL(TLexiconID, TPronunciationID) |
| pure virtual void | MSrRemoveRuleL(TGrammarID, TRuleID) |
| pure virtual void | MSrSetClientUid(TUid) |
| pure virtual void | MSrStartRecSessionL(TRecognitionMode) |
| pure virtual void | MSrTrainL(TModelBankID, TModelID &) |
| pure virtual void | MSrUnloadRuleL(TGrammarID, TRuleID) |
Detailed Description
This is the main class of Speech Recognition Custom Commands Implementor.
Member Function Documentation
MSrAddPronunciationL ( TLexiconID, TModelBankID, TModelID, TPronunciationID & )
Adds a new pronunciation for the given model into the specified lexicon.
| Parameter | Description | | aLexiconID | The lexicon ID to where the new pronunciation is added. |
| aModelBankID | The model bank ID. |
| aModelID | The model ID. |
| aPronunciationID | A reference to where a new pronunciation ID is assigned. |
MSrAddRuleL ( TGrammarID, TLexiconID, TPronunciationID, TRuleID & )
Adds a new rule for the given pronunciation into the specified grammar.
| Parameter | Description | | aGrammarID | The grammar ID, where the new rule is added to |
| aLexiconID | The lexicon ID. |
| aPronunciationID | The pronunciation ID. |
| aRuleID | A reference where a new rule ID is assigned to. |
MSrCancel ( )
| void | MSrCancel | ( | ) | [pure virtual] |
Cancels the current operation.
MSrCommitChangesL ( )
| void | MSrCommitChangesL | ( | ) | [pure virtual] |
Commit uncommited changes to the database.
MSrCreateGrammarL ( TGrammarID & )
| void | MSrCreateGrammarL | ( | TGrammarID & | aGrammarID | ) | [pure virtual] |
| Parameter | Description | | aGrammarID | A reference where the grammar ID is stored. |
MSrCreateLexiconL ( TLexiconID & )
| void | MSrCreateLexiconL | ( | TLexiconID & | aLexiconID | ) | [pure virtual] |
| Parameter | Description | | aLexiconID | A reference where the lexicon ID is stored. |
MSrCreateModelBankL ( TModelBankID & )
| void | MSrCreateModelBankL | ( | TModelBankID & | aModelBankID | ) | [pure virtual] |
Creates a new model bank.
| Parameter | Description | | aModelBankID | A reference to where a new model bank ID is assigned. |
MSrEndRecSessionL ( )
| void | MSrEndRecSessionL | ( | ) | [pure virtual] |
Ends the current recognition session. Resources allocated for recognition are freed.
MSrGetAllClientGrammarIDsL ( RArray< TGrammarID > & )
Returns all grammar IDs that are owned by the client.
| Parameter | Description | | aGrammarIDs | A reference where grammar IDs are stored. |
MSrGetAllClientLexiconIDsL ( RArray< TLexiconID > & )
Returns all lexicon IDs that are owned by the client.
| Parameter | Description | | aLexiconIDs | A reference where the lexicon IDs are stored. |
MSrGetAllClientModelBankIDsL ( RArray< TModelBankID > & )
Returns all modelbank IDs that are owned by the client.
| Parameter | Description | | aModelBankIDs | A reference where model bank IDs are stored. |
MSrGetAllGrammarIDsL ( RArray< TGrammarID > & )
| Parameter | Description | | aGrammarIDs | A reference where grammar IDs are stored. |
MSrGetAllLexiconIDsL ( RArray< TLexiconID > & )
| Parameter | Description | | aLexiconIDs | A reference where lexicon IDs are stored. |
MSrGetAllModelBankIDsL ( RArray< TModelBankID > & )
Returns all modelbank IDs.
| Parameter | Description | | aModelBankIDs | A reference where the model bank IDs are stored. |
MSrGetAllModelIDsL ( TModelBankID, RArray< TModelID > & )
Returns all model IDs that exist in the specified model bank.
| Parameter | Description | | aModelBankID | The model bank ID. |
| aModelIDs | A reference where model IDs are stored. |
MSrGetAllPronunciationIDsL ( TLexiconID, RArray< TPronunciationID > & )
Returns all pronunciation IDs that exist in the specified lexicon.
| Parameter | Description | | aLexiconID | The lexicon ID. |
| aPronunciationIDs | A reference where pronunciation IDs are stored. |
MSrGetAllRuleIDsL ( TGrammarID, RArray< TRuleID > & )
Returns all rule IDs that exist in the specified grammar.
| Parameter | Description | | aGrammarID | The grammar ID. |
| aRuleIDs | A reference where rule IDs are stored. |
MSrGetAvailableStorageL ( TInt & )
| void | MSrGetAvailableStorageL | ( | TInt & | aCount | ) | [pure virtual] |
Returns the number of models available for training system wide, based on available disk space.
| Parameter | Description | | aCount | A reference where the number of available models is set. |
MSrGetEnginePropertiesL ( const RArray< TInt > &, RArray< TInt > & )
| void | MSrGetEnginePropertiesL | ( | const RArray< TInt > & | aPropertyId, |
| | RArray< TInt > & | aPropertyValue |
| | ) | [pure virtual] |
Returns the engine properties specified by the engine property ID array.
On return aPropertyValue contains an array of engine properties.
| Parameter | Description | | aPropertyId | A constant reference to an array of engine property IDs. |
| aPropertyValue | A reference to an array of engine property values. |
MSrGetModelCountL ( TModelBankID, TInt & )
Returns the number of models in the specified model bank.
| Parameter | Description | | aModelBankID | The model bank ID. |
| aCount | A reference where the number of models is set. |
MSrGetRuleValidityL ( TGrammarID, TRuleID, TBool & )
Checks if the rule is valid or not.
| Parameter | Description | | aGrammarID | The grammar ID. |
| aRuleID | The rule ID. |
| aValid | A reference where the validity of the rule is set. |
MSrGetUtteranceDurationL ( TModelBankID, TModelID, TTimeIntervalMicroSeconds32 & )
Returns the duration of the utterance for the specified model.
| Parameter | Description | | aModelBankID | The model bank ID. |
| aModelID | The model ID. |
| aDuration | A reference where the duration of utterance is set. |
MSrLoadEngineParametersL ( const RArray< TInt > &, const RArray< TInt > & )
| void | MSrLoadEngineParametersL | ( | const RArray< TInt > & | aParameterId, |
| | const RArray< TInt > & | aParameterValue |
| | ) | [pure virtual] |
Unloads the specified parameters to the engine.
| Parameter | Description | | aParameterId | An array of parameter IDs. |
| aParameterValue | An array of parameter values. |
MSrLoadGrammarL ( TGrammarID )
| void | MSrLoadGrammarL | ( | TGrammarID | aGrammarID | ) | [pure virtual] |
Loads the specified grammar in into the recognizer; done prior to recognition.
| Parameter | Description | | aGrammarID | The grammar ID. |
MSrLoadLexiconL ( TLexiconID )
| void | MSrLoadLexiconL | ( | TLexiconID | aLexiconID | ) | [pure virtual] |
Loads the specified lexicon into the recognizer; done prior to recognition.
| Parameter | Description | | aLexiconID | The lexicon ID. |
MSrLoadModelsL ( TModelBankID )
Loads the specified model bank into the recognizer; done prior to recognition.
| Parameter | Description | | aModelBankID | The model bank ID. |
MSrPlayUtteranceL ( TModelBankID, TModelID )
Plays the previously trained utterance.
| Parameter | Description | | aModelBankID | The model bank ID. |
| aModelID | The model ID, whose utterance is played. |
MSrRecognizeL ( CSDClientResultSet & )
Initiates recognition; performed following loading of model bank, lexicon, and grammar.
| Parameter | Description | | aResultSet | A reference where the recognition result is set. |
MSrRecordL ( TTimeIntervalMicroSeconds32 )
Records user utterance for training and recognition.
| Parameter | Description | | aRecordTime | A recording time in microseconds. |
MSrRemoveGrammarL ( TGrammarID )
| void | MSrRemoveGrammarL | ( | TGrammarID | aGrammarID | ) | [pure virtual] |
Removes the specified grammar from the permanent storage.
Removing a grammar will remove all rules within the grammar.
| Parameter | Description | | aGrammarID | The grammar ID. |
MSrRemoveLexiconL ( TLexiconID )
| void | MSrRemoveLexiconL | ( | TLexiconID | aLexiconID | ) | [pure virtual] |
Removes the specified lexicon from the permanent storage.
Removing a lexicon will remove all pronunciations within the lexicon.
| Parameter | Description | | aLexiconID | The lexicon ID. |
MSrRemoveModelBankL ( TModelBankID )
| void | MSrRemoveModelBankL | ( | TModelBankID | aModelBankID | ) | [pure virtual] |
Removes the specified model bank from the permanent storage.
Removing a model bank will remove all models within the model bank.
| Parameter | Description | | aModelBankID | The model bank ID. |
MSrRemoveModelL ( TModelBankID, TModelID )
Removes the specified model from the specified model bank permanently.
| Parameter | Description | | aModelBankID | The model bank ID. |
| aModelID | The model ID. |
MSrRemovePronunciationL ( TLexiconID, TPronunciationID )
Removes the specified pronunciation from the specified lexicon permanently.
| Parameter | Description | | aLexiconID | The lexicon ID. |
| aPronunciationID | The pronunciation ID. |
MSrRemoveRuleL ( TGrammarID, TRuleID )
Removes the specified rule from the specified grammar permanently.
| Parameter | Description | | aGrammarID | The grammar ID. |
| aRuleID | The rule ID. |
MSrSetClientUid ( TUid )
| void | MSrSetClientUid | ( | TUid | aClientUid | ) | [pure virtual] |
Sets the specified grammar client UID.
| Parameter | Description | | aClientUid | The client UID. |
MSrStartRecSessionL ( TRecognitionMode )
Starts a new recognition session.
| Parameter | Description | | aMode | The recognition mode. |
MSrTrainL ( TModelBankID, TModelID & )
Trains a new model into the specified model bank.
| Parameter | Description | | aModelBankID | The model bank ID. |
| aModelID | A reference to where the new model ID is assigned. |
MSrUnloadRuleL ( TGrammarID, TRuleID )
Unloads the specified rule from the specified grammar in temporary memory, previously loaded with LoadGrammarL().
The rule in the permanent storage remains intact.
| Parameter | Description | | aGrammarID | The grammar ID. |
| aRuleID | The rule ID. |