class RSISpeechRecognitionCustomCommands : public RMMFCustomCommandsBase |
This is the main class of NSS Speaker Independent Speech Recognition Custom Commands
Private Member Functions | |
---|---|
void | DoGetEnginePropertiesL (const RArray < TInt > &, RArray < TInt > &) |
void | DoLoadEngineParametersL (const RArray < TInt > &, const RArray < TInt > &) |
void | DoRecognizeL (CSDClientResultSet &) |
void | DoRecognizeSIL ( CSIClientResultSet &) |
CBufFlat * | ExternalizeIntArrayL (const RArray < TInt > &) |
void | InternalizeIntArrayL ( TDes8 &, TInt , RArray < TInt > &) |
Inherited Functions | |
---|---|
RMMFCustomCommandsBase::RMMFCustomCommandsBase(RMMFController &,TUid) |
Private Attributes | |
---|---|
TAny * | iReservedPtr_1 |
TAny * | iReservedPtr_2 |
Inherited Attributes | |
---|---|
RMMFCustomCommandsBase::iController | |
RMMFCustomCommandsBase::iDestinationPckg |
IMPORT_C | RSISpeechRecognitionCustomCommands | ( | RMMFController & | aController | ) |
Public C++ constructor for RSpeechRecognitionCustomCommands class.
RMMFController & aController | reference to RMMFController object |
IMPORT_C TInt | ActivateGrammar | ( | TSIGrammarID | aGrammarID | ) |
Activates a loaded and deactivated grammar.
TSIGrammarID aGrammarID | grammar Id |
IMPORT_C TInt | Adapt | ( | const CSIClientResultSet & | aResultSet, |
TInt | aCorrect | |||
) |
Adapts speaker independent models according using a correct recognition result.
const CSIClientResultSet & aResultSet | The result N-Best containing feature vectors aCorrect The correct index |
TInt aCorrect |
IMPORT_C TInt | AddPronunciation | ( | TSILexiconID | aLexiconID, |
const TDesC & | aTrainText, | |||
TLanguage | aLanguage, | |||
TSIPronunciationID & | aPronunciationID | |||
) |
Adds a pronunciation to the given lexicon.
TSILexiconID aLexiconID | The lexicon Id |
const TDesC & aTrainText | Text to be pronounced |
TLanguage aLanguage | Pronunciation language |
TSIPronunciationID & aPronunciationID | Reference where a new pronunciation Id is assigned to. |
IMPORT_C TInt | AddRule | ( | TSIGrammarID | aGrammarID, |
TSILexiconID | aLexiconID, | |||
TSIPronunciationID | aPronunciationID, | |||
TSIRuleID & | aRuleID | |||
) |
TSIGrammarID aGrammarID | grammar Id, where the new rule is added to |
TSILexiconID aLexiconID | lexicon Id |
TSIPronunciationID aPronunciationID | pronunciation Id |
TSIRuleID & aRuleID | reference where a new rule Id is assigned to |
IMPORT_C TInt | AddRuleVariant | ( | TSIGrammarID | aGrammarID, |
TSILexiconID | aLexiconID, | |||
const RArray < TSIPronunciationID > & | aPronunciationIDs, | |||
TSIRuleID | aRuleID, | |||
TSIRuleVariantID & | aRuleVariantID | |||
) |
Adds a rule variant to a grammar.
TSIGrammarID aGrammarID | Grammar identifier |
TSILexiconID aLexiconID | |
const RArray < TSIPronunciationID > & aPronunciationIDs | |
TSIRuleID aRuleID | Rule identifier; variant is added here. |
TSIRuleVariantID & aRuleVariantID | Reference where the new variant identifier is assigned to. |
IMPORT_C TInt | AddVoiceTag | ( | const MDesCArray & | aTrainArray, |
const RArray < TLanguage > & | aLanguageArray, | |||
TSILexiconID | aLexiconID, | |||
TSIGrammarID | aGrammarID, | |||
TSIRuleID & | aRuleID | |||
) |
Trains a voice tag. Adds the text to the lexicon, and creates the required rules and rule variants.
const MDesCArray & aTrainArray | The phrase to be trained, split into subwords |
const 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. |
IMPORT_C TInt | AddVoiceTag | ( | const MDesCArray & | aTrainArray, |
const RArray < RLanguageArray > & | aLanguageArray, | |||
TSILexiconID | aLexiconID, | |||
TSIGrammarID | aGrammarID, | |||
TSIRuleID & | aRuleID | |||
) |
Trains a voice tag. Adds the text to the lexicon, and creates the required rules and rule variants.
const MDesCArray & aTrainArray | The phrase to be trained, split into subwords |
const RArray < RLanguageArray > & aLanguageArray | The pronunciaiton languages |
TSILexiconID aLexiconID | Lexicon identifier |
TSIGrammarID aGrammarID | Grammar identifier |
TSIRuleID & aRuleID | Reference, where the new rule identifier is assigned to. |
IMPORT_C TInt | AddVoiceTags | ( | const RPointerArray < MDesCArray > & | aTrainArray, |
const RArray < TLanguage > & | aLanguageArray, | |||
TSILexiconID | aLexiconID, | |||
TSIGrammarID | aGrammarID, | |||
RArray < TSIRuleID > & | aRuleID | |||
) |
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.
const RPointerArray < MDesCArray > & aTrainArray | The phrase to be trained, split into subwords |
const RArray < TLanguage > & aLanguageArray | The pronunciation languages |
TSILexiconID aLexiconID | Lexicon identifier |
TSIGrammarID aGrammarID | Grammar identifier |
RArray < TSIRuleID > & aRuleID | Referenceto an array, where the new Rule identifiers are assigned to. |
IMPORT_C TInt | AddVoiceTags | ( | const RPointerArray < MDesCArray > & | aTrainArray, |
const RArray < RLanguageArray > & | aLanguageArray, | |||
TSILexiconID | aLexiconID, | |||
TSIGrammarID | aGrammarID, | |||
RArray < TSIRuleID > & | aRuleID | |||
) |
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.
const RPointerArray < MDesCArray > & aTrainArray | The phrase to be trained, split into subwords |
const RArray < RLanguageArray > & aLanguageArray | The pronunciation languages |
TSILexiconID aLexiconID | Lexicon identifier |
TSIGrammarID aGrammarID | Grammar identifier |
RArray < TSIRuleID > & aRuleID | Referenceto an array, where the new Rule identifiers are assigned to. |
IMPORT_C TInt | CommitChanges | ( | ) |
IMPORT_C TInt | CreateGrammar | ( | TSIGrammarID & | aGrammarID | ) |
TSIGrammarID & aGrammarID | reference where grammar ID is stored |
IMPORT_C TInt | CreateLexicon | ( | TSILexiconID & | aLexiconID | ) |
TSILexiconID & aLexiconID | reference where lexicon ID is stored |
IMPORT_C TInt | CreateModelBank | ( | TSIModelBankID & | aModelBankID | ) |
TSIModelBankID & aModelBankID | reference where a new model bank Id is assigned to |
IMPORT_C TInt | CreateRule | ( | TSIGrammarID | aGrammarID, |
TSIRuleID & | aRuleID | |||
) |
Creates a new rule.
TSIGrammarID aGrammarID | Grammar identifier |
TSIRuleID & aRuleID | Reference where rule ID is stored |
IMPORT_C TInt | DeactivateGrammar | ( | TSIGrammarID | aGrammarID | ) |
Deactivates a loaded grammar so that it is not recognized.
TSIGrammarID aGrammarID | grammar Id |
void | DoGetEnginePropertiesL | ( | const RArray < TInt > & | aPropertyId, |
RArray < TInt > & | aPropertyValue | |||
) | [private] |
void | DoLoadEngineParametersL | ( | const RArray < TInt > & | aParameterId, |
const RArray < TInt > & | aParameterValue | |||
) | [private] |
void | DoRecognizeL | ( | CSDClientResultSet & | aResultSet | ) | [private] |
CSDClientResultSet & aResultSet | reference where the recognition result is set |
void | DoRecognizeSIL | ( | CSIClientResultSet & | aResultSet | ) | [private] |
CSIClientResultSet & aResultSet | reference where the recognition result is set |
IMPORT_C TInt | EndRecSession | ( | ) |
IMPORT_C TInt | EndRecord | ( | ) |
Stops recognition. Unlike Cancel() , this function gives the recognition result, if it can be guessed.
CBufFlat * | ExternalizeIntArrayL | ( | const RArray < TInt > & | aArray | ) | [private] |
IMPORT_C TInt | GetAllClientGrammarIDs | ( | ) |
IMPORT_C TInt | GetAllClientLexiconIDs | ( | ) |
IMPORT_C TInt | GetAllClientModelBankIDs | ( | ) |
IMPORT_C TInt | GetAllGrammarIDs | ( | ) |
IMPORT_C TInt | GetAllLexiconIDs | ( | ) |
IMPORT_C TInt | GetAllModelBankIDs | ( | ) |
IMPORT_C TInt | GetAllModelIDs | ( | TSIModelBankID | aModelBankID | ) |
TSIModelBankID aModelBankID | model bank Id |
IMPORT_C TInt | GetAllPronunciationIDs | ( | TSILexiconID | aLexiconID | ) |
TSILexiconID aLexiconID | lexicon Id |
IMPORT_C TInt | GetAllRuleIDs | ( | TSIGrammarID | aGrammarID | ) |
TSIGrammarID aGrammarID | grammar Id |
IMPORT_C TInt | GetEngineProperties | ( | const RArray < TInt > & | aPropertyId, |
RArray < TInt > & | aPropertyValue | |||
) |
IMPORT_C void | GetGrammarIDArrayL | ( | RArray < TSIGrammarID > & | aGrammarIDs | ) |
RArray < TSIGrammarID > & aGrammarIDs |
IMPORT_C void | GetLexiconIDArrayL | ( | RArray < TSILexiconID > & | aLexiconIDs | ) |
RArray < TSILexiconID > & aLexiconIDs |
IMPORT_C void | GetModelBankIDArrayL | ( | RArray < TSIModelBankID > & | aModelBankIDs | ) |
RArray < TSIModelBankID > & aModelBankIDs |
IMPORT_C TInt | GetModelCount | ( | TSIModelBankID | aModelBankID, |
TInt & | aModelCount | |||
) |
TSIModelBankID aModelBankID | model bank Id |
TInt & aModelCount |
IMPORT_C void | GetModelIDArrayL | ( | RArray < TSIModelID > & | aModelIDs | ) |
RArray < TSIModelID > & aModelIDs | array of model IDs |
IMPORT_C void | GetPronunciationIDArrayL | ( | RArray < TSIPronunciationID > & | aPronunciationIDs | ) |
RArray < TSIPronunciationID > & aPronunciationIDs | array of pronunciation IDs |
IMPORT_C void | GetRuleIDArrayL | ( | RArray < TSIRuleID > & | aRuleIDs | ) |
IMPORT_C TInt | GetRuleValidity | ( | TSIGrammarID | aGrammarID, |
TSIRuleID | aRuleID, | |||
TBool & | aValid | |||
) |
TSIGrammarID aGrammarID | grammar Id |
TSIRuleID aRuleID | rule Id |
TBool & aValid | reference where the validity of the rule is set |
IMPORT_C void | GetSIResultSetL | ( | CSIClientResultSet & | aResultSet | ) |
CSIClientResultSet & aResultSet | Result set to be populated. |
void | InternalizeIntArrayL | ( | TDes8 & | aDes, |
TInt | aNumberElements, | |||
RArray < TInt > & | aArray | |||
) | [private] |
IMPORT_C TInt | LoadEngineParameters | ( | const RArray < TInt > & | aParameterId, |
const RArray < TInt > & | aParameterValue | |||
) |
IMPORT_C TInt | LoadGrammar | ( | TSIGrammarID | aGrammarID | ) |
Loads a grammar. Grammars are loaded between StartRecSession() and Recognize()
TSIGrammarID aGrammarID | grammar Id |
IMPORT_C TInt | LoadLexicon | ( | TSILexiconID | aLexiconID | ) |
TSILexiconID aLexiconID | lexicon ID |
IMPORT_C TInt | LoadModels | ( | TSIModelBankID | aModelBankID | ) |
TSIModelBankID aModelBankID | model bank Id |
IMPORT_C TInt | PreStartSampling | ( | ) |
Pre-starts recording before Record() call.
IMPORT_C TInt | Recognize | ( | CSIClientResultSet & | aResultSet | ) |
Starts recognition
CSIClientResultSet & aResultSet | Recognition result is placed here, when ready. |
IMPORT_C TInt | Record | ( | TTimeIntervalMicroSeconds32 | aRecordTime | ) |
TTimeIntervalMicroSeconds32 aRecordTime | recording time in microseconds |
IMPORT_C TInt | RemoveGrammar | ( | TSIGrammarID | aGrammarID | ) |
TSIGrammarID aGrammarID | grammar Id |
IMPORT_C TInt | RemoveLexicon | ( | TSILexiconID | aLexiconID | ) |
TSILexiconID aLexiconID | lexicon Id |
IMPORT_C TInt | RemoveModel | ( | TSIModelBankID | aModelBankID, |
TSIModelID | aModelID | |||
) |
TSIModelBankID aModelBankID | model bank Id |
TSIModelID aModelID | model Id |
IMPORT_C TInt | RemoveModelBank | ( | TSIModelBankID | aModelBankID | ) |
TSIModelBankID aModelBankID | model bank Id |
IMPORT_C TInt | RemovePronunciation | ( | TSILexiconID | aLexiconID, |
TSIPronunciationID | aPronunciationID | |||
) |
TSILexiconID aLexiconID | lexicon Id |
TSIPronunciationID aPronunciationID | pronunciation Id |
IMPORT_C TInt | RemoveRule | ( | TSIGrammarID | aGrammarID, |
TSIRuleID | aRuleID | |||
) |
TSIGrammarID aGrammarID | grammar Id |
TSIRuleID aRuleID | rule Id |
IMPORT_C TInt | RemoveRules | ( | TSIGrammarID | aGrammarID, |
RArray < TSIRuleID > & | aRuleIDs | |||
) |
TSIGrammarID aGrammarID | grammar Id |
RArray < TSIRuleID > & aRuleIDs | array of rule ids |
IMPORT_C TInt | SetClientUid | ( | TUid | aClientUid | ) |
TUid aClientUid | client's UID |
IMPORT_C TInt | StartRecSession | ( | TNSSRecognitionMode | aMode | ) |
TNSSRecognitionMode aMode | recognition mode |
IMPORT_C TInt | UnloadGrammar | ( | TSIGrammarID | aGrammarID | ) |
Deactivates a grammar.
TSIGrammarID aGrammarID | Grammar identifier |
IMPORT_C TInt | UnloadRule | ( | TSIGrammarID | aGrammarID, |
TSIRuleID | aRuleID | |||
) |
TSIGrammarID aGrammarID | grammar Id |
TSIRuleID aRuleID | rule Id |
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.