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