MSISpeechRecognitionCustomCommandImplementor Class Reference
class MSISpeechRecognitionCustomCommandImplementor |
This is the main class of Speaker Independent Custom Commands Implementor
NssSiSpeechRecognitionCustomCommands.lib
- Since
- 2.8
Public Member Functions |
---|
void | MSrActivateGrammarL(TSIGrammarID) |
void | MSrAdaptL(CSIClientResultSet &, TInt) |
void | MSrAddPronunciationL(TSILexiconID, const TDesC &, TLanguage, TSIPronunciationID &) |
void | MSrAddRuleL(TSIGrammarID, TSILexiconID, TSIPronunciationID, TSIRuleID &) |
void | MSrAddRuleVariantL(TSIGrammarID, TSILexiconID, RArray< TSIPronunciationID > &, TSIRuleID, TSIRuleVariantID &) |
void | MSrAddSindeVoiceTagL(MDesCArray &, RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, TSIRuleID &) |
void | MSrAddSindeVoiceTagsL(RPointerArray< MDesCArray > *, RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &) |
void | MSrAddVoiceTagL(MDesCArray &, RArray< TLanguage > &, TSILexiconID, TSIGrammarID, TSIRuleID &) |
void | MSrAddVoiceTagsL(RPointerArray< MDesCArray > *, RArray< TLanguage > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &) |
void | MSrCancel() |
void | MSrCommitChangesL() |
void | MSrCreateGrammarL(TSIGrammarID &) |
void | MSrCreateLexiconL(TSILexiconID &) |
void | MSrCreateModelBankL(TSIModelBankID &) |
void | MSrCreateRuleL(TSIGrammarID, TSIRuleID &) |
void | MSrDeactivateGrammarL(TSIGrammarID) |
void | MSrEndRecSessionL() |
void | MSrEndRecordL() |
void | MSrGetAllClientGrammarIDsL(RArray< TSIGrammarID > &) |
void | MSrGetAllClientLexiconIDsL(RArray< TSILexiconID > &) |
void | MSrGetAllClientModelBankIDsL(RArray< TSIModelBankID > &) |
void | MSrGetAllGrammarIDsL(RArray< TSIGrammarID > &) |
void | MSrGetAllLexiconIDsL(RArray< TSILexiconID > &) |
void | MSrGetAllModelBankIDsL(RArray< TSIModelBankID > &) |
void | MSrGetAllPronunciationIDsL(TSILexiconID, RArray< TSIPronunciationID > &) |
void | MSrGetAllRuleIDsL(TSIGrammarID, RArray< TSIRuleID > &) |
void | MSrGetEnginePropertiesL(const RArray< TInt > &, RArray< TInt > &) |
void | MSrGetRuleValidityL(TSIGrammarID, TSIRuleID, TBool &) |
void | MSrLoadEngineParametersL(const RArray< TInt > &, const RArray< TInt > &) |
void | MSrLoadGrammarL(TSIGrammarID) |
void | MSrLoadLexiconL(TSILexiconID) |
void | MSrLoadModelsL(TSIModelBankID) |
void | MSrPreStartSamplingL() |
void | MSrRecognizeL(CSIClientResultSet &) |
void | MSrRecordL(TTimeIntervalMicroSeconds32) |
void | MSrRemoveGrammarL(TSIGrammarID) |
void | MSrRemoveLexiconL(TSILexiconID) |
void | MSrRemoveModelBankL(TSIModelBankID) |
void | MSrRemoveModelL(TSIModelBankID, TSIModelID) |
void | MSrRemovePronunciationL(TSILexiconID, TSIPronunciationID) |
void | MSrRemoveRuleL(TSIGrammarID, TSIRuleID) |
void | MSrRemoveRulesL(TSIGrammarID, RArray< TSIRuleID > &) |
void | MSrSetClientUid(TUid) |
void | MSrStartRecSessionL(TNSSRecognitionMode) |
void | MSrUnloadGrammarL(TSIGrammarID) |
void | MSrUnloadRuleL(TSIGrammarID, TSIRuleID) |
Member Functions Documentation
MSrActivateGrammarL(TSIGrammarID)
void | MSrActivateGrammarL | ( | TSIGrammarID | aGrammarID | ) | [pure virtual] |
Activates the specified grammar, which has been previously deactivated.
MSrAdaptL(CSIClientResultSet &, TInt)
Adapts speaker independent models according using a correct recognition result.
Parameters
CSIClientResultSet & aResultSet | The result N-Best containing feature vectors aCorrect The correct index |
TInt aCorrect | |
MSrAddPronunciationL(TSILexiconID, const TDesC &, TLanguage, TSIPronunciationID &)
Adds a pronunciation to the given lexicon.
MSrAddRuleL(TSIGrammarID, TSILexiconID, TSIPronunciationID, TSIRuleID &)
Adds a new rule for the given pronunciation into the specified grammar.
- Since
- 2.0
MSrAddRuleVariantL(TSIGrammarID, TSILexiconID, RArray< TSIPronunciationID > &, TSIRuleID, TSIRuleVariantID &)
Adds a rule variant to a grammar.
MSrAddSindeVoiceTagL(MDesCArray &, RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, TSIRuleID &)
Trains one SINDE voice tag. Adds the text to the lexicon, and creates the required rules and rule variants.
Parameters
MDesCArray & aTrainArray | The phrase to be trained, split into subwords |
RArray< RLanguageArray > & aLanguageArray | The pronunciation languages for each of the |
TSILexiconID aLexiconID | Lexicon identifier |
TSIGrammarID aGrammarID | Grammar identifier |
TSIRuleID & aRuleID | Reference, where the new rule identifier is assigned to. |
MSrAddSindeVoiceTagsL(RPointerArray< MDesCArray > *, RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &)
Trains SINDE voice tags. If the training fails for some of the names (but not all), it is signaled by setting the Rule ID to KInvalidRuleID.
MSrAddVoiceTagL(MDesCArray &, RArray< TLanguage > &, TSILexiconID, TSIGrammarID, TSIRuleID &)
Trains a voice tag. Adds the text to the lexicon, and creates the required rules and rule variants.
Parameters
MDesCArray & aTrainArray | The phrase to be trained, split into subwords |
RArray< TLanguage > & aLanguageArray | The pronunciaiton languages |
TSILexiconID aLexiconID | Lexicon identifier |
TSIGrammarID aGrammarID | Grammar identifier |
TSIRuleID & aRuleID | Reference, where the new rule identifier is assigned to. |
MSrAddVoiceTagsL(RPointerArray< MDesCArray > *, RArray< TLanguage > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &)
Trains voice tags. If the training fails for some of the names (but not all), it is signaled by setting the Rule ID to KInvalidRuleID.
MSrCancel()
void | MSrCancel | ( | ) | [pure virtual] |
Cancels the current operation
- Since
- 2.0
MSrCommitChangesL()
void | MSrCommitChangesL | ( | ) | [pure virtual] |
Saves the current changes into a permanent storage.
- Since
- 2.0
MSrCreateGrammarL(TSIGrammarID &)
void | MSrCreateGrammarL | ( | TSIGrammarID & | aGrammarID | ) | [pure virtual] |
Creates a new grammar.
- Since
- 2.0
Parameters
TSIGrammarID & aGrammarID | reference where grammar ID is stored |
MSrCreateLexiconL(TSILexiconID &)
void | MSrCreateLexiconL | ( | TSILexiconID & | aLexiconID | ) | [pure virtual] |
Creates a new lexicon.
- Since
- 2.0
Parameters
TSILexiconID & aLexiconID | reference where lexicon ID is stored |
MSrCreateModelBankL(TSIModelBankID &)
Creates a new model bank.
- Since
- 2.0
Parameters
TSIModelBankID & aModelBankID | reference where a new model bank Id is assigned to |
MSrCreateRuleL(TSIGrammarID, TSIRuleID &)
MSrDeactivateGrammarL(TSIGrammarID)
void | MSrDeactivateGrammarL | ( | TSIGrammarID | aGrammarID | ) | [pure virtual] |
Deactivates a loaded grammar so that it is not recognized.
MSrEndRecSessionL()
void | MSrEndRecSessionL | ( | ) | [pure virtual] |
Ends the current recognition session. Resources allocated for recognition are freed.
- Since
- 2.0
MSrEndRecordL()
void | MSrEndRecordL | ( | ) | [pure virtual] |
Stops recognition. Unlike Cancel(), this function gives the recognition result, if it can be guessed.
MSrGetAllClientGrammarIDsL(RArray< TSIGrammarID > &)
Returns all grammar Ids that belong to the current client, whose UID was set with
MSrSetClientUid().
- Since
- 2.0
MSrGetAllClientLexiconIDsL(RArray< TSILexiconID > &)
Returns all lexicon Ids that belong to the current client, whose UID was set with
MSrSetClientUid().
- Since
- 2.0
MSrGetAllClientModelBankIDsL(RArray< TSIModelBankID > &)
Returns all model bank Ids that belong to the current client, whose UID was set with
MSrSetClientUid().
- Since
- 2.0
MSrGetAllGrammarIDsL(RArray< TSIGrammarID > &)
Returns all grammar Ids that exist (for all clients).
- Since
- 2.0
MSrGetAllLexiconIDsL(RArray< TSILexiconID > &)
Returns all lexicon Ids that exist (for all clients).
- Since
- 2.0
MSrGetAllModelBankIDsL(RArray< TSIModelBankID > &)
Returns all model bank Ids that exist (for all clients).
- Since
- 2.0
MSrGetAllPronunciationIDsL(TSILexiconID, RArray< TSIPronunciationID > &)
Returns all pronunciation Ids that exist in the specified lexicon.
- Since
- 2.0
MSrGetAllRuleIDsL(TSIGrammarID, RArray< TSIRuleID > &)
Returns all rule Ids that exist in the specified grammar.
- Since
- 2.0
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.
- Since
- 2.0
Parameters
const RArray< TInt > & aPropertyId | constant reference to array of engine property Ids |
RArray< TInt > & aPropertyValue | reference to array of engine property values |
MSrGetRuleValidityL(TSIGrammarID, TSIRuleID, TBool &)
Checks if the rule is valid or not.
- Since
- 2.0
Parameters
TSIGrammarID aGrammarID | grammar Id aRuleID rule Id aValid reference where the validity of the rule is set |
TSIRuleID aRuleID | |
TBool & aValid | |
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.
- Since
- 2.0
Parameters
const RArray< TInt > & aParameterId | array of parameter IDs |
const RArray< TInt > & aParameterValue | array of parameter values |
MSrLoadGrammarL(TSIGrammarID)
Loads the specified grammar into the reocgnizer; done prior to recognition.
- Since
- 2.0
MSrLoadLexiconL(TSILexiconID)
Loads the specified lexicon into the recognizer; done prior to recognition.
- Since
- 2.0
MSrLoadModelsL(TSIModelBankID)
Loads the specified model bank into the recognizer; done prior to recognition..
- Since
- 2.0
MSrPreStartSamplingL()
void | MSrPreStartSamplingL | ( | ) | [pure virtual] |
Pre-starts sampling before MSrRecordL call.
MSrRecognizeL(CSIClientResultSet &)
MSrRecordL(TTimeIntervalMicroSeconds32)
Records an utterance for training and recognition.
- Since
- 2.0
MSrRemoveGrammarL(TSIGrammarID)
Removes the specified grammar from the permanent storage. Removing a grammar will remove all rules and rule variants within the grammar.
- Since
- 2.0
MSrRemoveLexiconL(TSILexiconID)
Removes the specified lexicon from the permanent storage. Removing a lexicon will remove all pronunciations within the lexicon.
- Since
- 2.0
MSrRemoveModelBankL(TSIModelBankID)
Removes the specified model bank from the permanent storage. Removing a model bank will remove all models within the model bank.
- Since
- 2.0
MSrRemoveModelL(TSIModelBankID, TSIModelID)
Removes the specified model from the specified model bank permanently.
- Since
- 2.0
MSrRemovePronunciationL(TSILexiconID, TSIPronunciationID)
Removes the specified pronunciation from the specified lexicon permanently.
- Since
- 2.0
MSrRemoveRuleL(TSIGrammarID, TSIRuleID)
Removes the specified rule from the specified grammar permanently. If the rule contains rule variants, they are also destoryed.
- Since
- 2.0
MSrRemoveRulesL(TSIGrammarID, RArray< TSIRuleID > &)
Removes the specified rules from the specified grammar permanently. If the rule contains rule variants, they are also destoryed.
- Since
- 2.0
MSrSetClientUid(TUid)
void | MSrSetClientUid | ( | TUid | aClientUid | ) | [pure virtual] |
Sets the client's UID for data ownership identification.
- Since
- 2.0
Parameters
TUid aClientUid | client's UID |
MSrStartRecSessionL(TNSSRecognitionMode)
Starts a new recognition session.
- Since
- 2.0
MSrUnloadGrammarL(TSIGrammarID)
MSrUnloadRuleL(TSIGrammarID, TSIRuleID)
Unloads the specified rule from the specified grammar in temporary memory, previously loaded with LoadGrammarL. The rule in the permanent storage remains intact.
- Since
- 2.0
Member Data Documentation
TAny * iReservedPtr_1
TAny * | iReservedPtr_1 | [private] |
TAny * iReservedPtr_2
TAny * | iReservedPtr_2 | [private] |
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.