CSpeechRecognitionCustomCommandParser Class Reference
class CSpeechRecognitionCustomCommandParser : public CMMFCustomCommandParserBase |
This is the main class of Speech Recognition Custom Commands Parser.
Inherits from
- CSpeechRecognitionCustomCommandParser
Constructor & Destructor Documentation
CSpeechRecognitionCustomCommandParser(MSpeechRecognitionCustomCommandImplementor &)
~CSpeechRecognitionCustomCommandParser()
IMPORT_C | ~CSpeechRecognitionCustomCommandParser | ( | ) | |
Member Functions Documentation
DoAddPronunciationL(TMMFMessage &)
void | DoAddPronunciationL | ( | TMMFMessage & | aMessage | ) | [private] |
Adds a new pronunciation for the given model into the specified lexicon.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoAddRuleL(TMMFMessage &)
Adds a new rule for the given pronunciation into the specified grammar.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCancel()
Cancels the current operation.
DoCommitChangesL()
void | DoCommitChangesL | ( | ) | [private] |
Commits uncommitted database operations to the database.
DoCopyGrammarIDArrayL(TMMFMessage &)
void | DoCopyGrammarIDArrayL | ( | TMMFMessage & | aMessage | ) | [private] |
Copies the grammar ID array stored by a previous GetAllGrammarIDs call.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCopyIntArrayL(TMMFMessage &, const RArray< TInt > &)
Copies the specified integer array given into a TMMFMessage.
Parameters
TMMFMessage & aMessage | The message to copy the array into. |
const RArray< TInt > & aArray | The array to copy from. |
DoCopyLexiconIDArrayL(TMMFMessage &)
void | DoCopyLexiconIDArrayL | ( | TMMFMessage & | aMessage | ) | [private] |
Copies the lexicon ID array stored by a previous GetAllLexiconIDs call.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCopyModelBankIDArrayL(TMMFMessage &)
void | DoCopyModelBankIDArrayL | ( | TMMFMessage & | aMessage | ) | [private] |
Copies the modelBank ID array stored by a previous GetAllModelBankIDs call.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCopyModelIDArrayL(TMMFMessage &)
void | DoCopyModelIDArrayL | ( | TMMFMessage & | aMessage | ) | [private] |
Copy the model ID array stored by a previous GetAllModelIDs call.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCopyPronunciationIDArrayL(TMMFMessage &)
void | DoCopyPronunciationIDArrayL | ( | TMMFMessage & | aMessage | ) | [private] |
Copies the pronunciation ID array stored by a previous GetAllPronunciationIDs call.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCopyResultSetL(TMMFMessage &)
Copies the previously externalised result set into a message. The message must be the same size as the stored externalized result set.
DoCopyRuleIDArrayL(TMMFMessage &)
Copies the rule ID array stored by a previous GetAllRuleIDs call.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCreateGrammarL(TMMFMessage &)
Parameters
TMMFMessage & aMessage | A message containing the information of the request. |
DoCreateLexiconL(TMMFMessage &)
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoCreateModelBankL(TMMFMessage &)
Creates a new model bank.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoEndRecSessionL()
void | DoEndRecSessionL | ( | ) | [private] |
Ends the current recognition session. Resources allocated for recognition are freed.
DoExternalizeResultSetL()
void | DoExternalizeResultSetL | ( | ) | [private] |
Externalises the result set into a descriptor, so that it can be copied into an array.
DoExtractIntArrayFromData1L(TMMFMessage &, RArray< TInt > &)
DoExtractIntArrayFromData2L(TMMFMessage &, RArray< TInt > &)
Extracts an array from second parameter of TMMFMessage.
DoExtractIntArrayL(TDes8 &, RArray< TInt > &)
void | DoExtractIntArrayL | ( | TDes8 & | aDescriptor, |
| RArray< TInt > & | aArray |
| ) | [private] |
Extracts an integer array from the descriptor.
Parameters
TDes8 & aDescriptor | The descriptor containing an integer. |
RArray< TInt > & aArray | The array to copy into. |
DoGetAllClientGrammarIDsL()
void | DoGetAllClientGrammarIDsL | ( | ) | [private] |
Returns all grammar IDs that belong to the current client, whose UID was set with SetClientUid().
DoGetAllClientLexiconIDsL()
void | DoGetAllClientLexiconIDsL | ( | ) | [private] |
Returns all lexicon IDs that belong to the current client, whose UID was set with SetClientUid().
DoGetAllClientModelBankIDsL()
void | DoGetAllClientModelBankIDsL | ( | ) | [private] |
Returns all model bank IDs that belong to the current client, whose UID was set with SetClientUid().
DoGetAllGrammarIDsL()
void | DoGetAllGrammarIDsL | ( | ) | [private] |
Returns all grammar IDs that exist (for all clients).
DoGetAllLexiconIDsL()
void | DoGetAllLexiconIDsL | ( | ) | [private] |
Returns all lexicon IDs that exist (for all clients).
DoGetAllModelBankIDsL()
void | DoGetAllModelBankIDsL | ( | ) | [private] |
Returns all model bank IDs that exist (for all clients).
DoGetAllModelIDsL(TMMFMessage &)
Returns all model IDs that exist in the specified model bank.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoGetAllPronunciationIDsL(TMMFMessage &)
void | DoGetAllPronunciationIDsL | ( | TMMFMessage & | aMessage | ) | [private] |
Returns all pronunciation IDs that exist in the specified lexicon.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoGetAllRuleIDsL(TMMFMessage &)
Returns all rule IDs that exist in the specified grammar.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoGetAvailableStorageL(TMMFMessage &)
void | DoGetAvailableStorageL | ( | TMMFMessage & | aMessage | ) | [private] |
Returns the number of models available for training system wide, based on available disk space.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoGetEnginePropertiesL(TMMFMessage &)
void | DoGetEnginePropertiesL | ( | TMMFMessage & | aMessage | ) | [private] |
Returns the engine properties.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoGetModelCountL(TMMFMessage &)
Returns the number of models in the specified model bank.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoGetRuleValidityL(TMMFMessage &)
Checks if the rule is valid or not.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoGetUtteranceDurationL(TMMFMessage &)
void | DoGetUtteranceDurationL | ( | TMMFMessage & | aMessage | ) | [private] |
Returns the duration of the utterance for the specified model.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoHandleRequestL(TMMFMessage &)
Private method to handle the request from the client.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoLoadEngineParametersL(TMMFMessage &)
void | DoLoadEngineParametersL | ( | TMMFMessage & | aMessage | ) | [private] |
Loads the specified parameters into the engine.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoLoadGrammarL(TMMFMessage &)
Loads the specified grammar into the recognizer; done prior to recognition.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoLoadLexiconL(TMMFMessage &)
Loads the specified lexicon into the recognizer; done prior to recognition.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoLoadModelsL(TMMFMessage &)
Loads the specified model bank into the recognizer; done prior to recognition.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoPlayUtteranceL(TMMFMessage &)
Plays the previously trained utterance.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRecognizeL(TMMFMessage &)
Initiates recognition; performed following loading of model bank, lexicon, and grammar.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRecordL(TMMFMessage &)
Records user utterance for training and recognition.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRemoveGrammarL(TMMFMessage &)
Removes the specified grammar from the permanent storage.
Removing a grammar will remove all rules within the grammar.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRemoveLexiconL(TMMFMessage &)
Removes the specified lexicon from the permanent storage.
Removing a lexicon will remove all pronunciations within the lexicon.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRemoveModelBankL(TMMFMessage &)
Removes the specified model bank from the permanent storage.
Removing a model bank will remove all models within the model bank.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRemoveModelL(TMMFMessage &)
Removes the specified model from the specified model bank permanently.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRemovePronunciationL(TMMFMessage &)
void | DoRemovePronunciationL | ( | TMMFMessage & | aMessage | ) | [private] |
Removes the specified pronunciation from the specified lexicon permanently.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoRemoveRuleL(TMMFMessage &)
Removes the specified rule from the specified grammar permanently.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoSetClientUidL(TMMFMessage &)
Sets the UID of the client.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoStartRecSessionL(TMMFMessage &)
Starts a new recognition session.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoTrainL(TMMFMessage &)
Trains a new model into the specified model bank.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
DoUnloadRuleL(TMMFMessage &)
Unloads the specified rule from the specified grammar in temporary memory, previously loaded with LoadGrammarL().
The rule in the permanent storage remains intact.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
HandleRequest(TMMFMessage &)
Handles the request from the client.
Parameters
TMMFMessage & aMessage | The message containing the information of the request. |
NewL(MSpeechRecognitionCustomCommandImplementor &)
Factory function for creating this class.
Member Data Documentation
RArray< TGrammarID > iGrammarIDs
MSpeechRecognitionCustomCommandImplementor & iImplementor
RArray< TLexiconID > iLexiconIDs
RArray< TModelBankID > iModelBankIDs
RArray< TModelID > iModelIDs
RArray< TPronunciationID > iPronunciationIDs
CBufFlat * iResultCopyBuffer
CSDClientResultSet * iResultSet
RArray< TRuleID > iRuleIDs
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.