MSpeechRecognitionCustomCommandImplementor Class Reference
class MSpeechRecognitionCustomCommandImplementor
|
This is the main class of Speech Recognition Custom Commands Implementor.
Public Member Functions
|
void
|
MSrAddPronunciationL
(
TLexiconID
,
TModelBankID
,
TModelID
,
TPronunciationID
&)
|
void
|
MSrAddRuleL
(
TGrammarID
,
TLexiconID
,
TPronunciationID
,
TRuleID
&)
|
void
|
MSrCancel
()
|
void
|
MSrCommitChangesL
()
|
void
|
MSrCreateGrammarL
(
TGrammarID
&)
|
void
|
MSrCreateLexiconL
(
TLexiconID
&)
|
void
|
MSrCreateModelBankL
(
TModelBankID
&)
|
void
|
MSrEndRecSessionL
()
|
void
|
MSrGetAllClientGrammarIDsL
(
RArray
<
TGrammarID
> &)
|
void
|
MSrGetAllClientLexiconIDsL
(
RArray
<
TLexiconID
> &)
|
void
|
MSrGetAllClientModelBankIDsL
(
RArray
<
TModelBankID
> &)
|
void
|
MSrGetAllGrammarIDsL
(
RArray
<
TGrammarID
> &)
|
void
|
MSrGetAllLexiconIDsL
(
RArray
<
TLexiconID
> &)
|
void
|
MSrGetAllModelBankIDsL
(
RArray
<
TModelBankID
> &)
|
void
|
MSrGetAllModelIDsL
(
TModelBankID
,
RArray
<
TModelID
> &)
|
void
|
MSrGetAllPronunciationIDsL
(
TLexiconID
,
RArray
<
TPronunciationID
> &)
|
void
|
MSrGetAllRuleIDsL
(
TGrammarID
,
RArray
<
TRuleID
> &)
|
void
|
MSrGetAvailableStorageL
(
TInt
&)
|
void
|
MSrGetEnginePropertiesL
(const
RArray
<
TInt
> &,
RArray
<
TInt
> &)
|
void
|
MSrGetModelCountL
(
TModelBankID
,
TInt
&)
|
void
|
MSrGetRuleValidityL
(
TGrammarID
,
TRuleID
,
TBool
&)
|
void
|
MSrGetUtteranceDurationL
(
TModelBankID
,
TModelID
,
TTimeIntervalMicroSeconds32
&)
|
void
|
MSrLoadEngineParametersL
(const
RArray
<
TInt
> &, const
RArray
<
TInt
> &)
|
void
|
MSrLoadGrammarL
(
TGrammarID
)
|
void
|
MSrLoadLexiconL
(
TLexiconID
)
|
void
|
MSrLoadModelsL
(
TModelBankID
)
|
void
|
MSrPlayUtteranceL
(
TModelBankID
,
TModelID
)
|
void
|
MSrRecognizeL
(
CSDClientResultSet
&)
|
void
|
MSrRecordL
(
TTimeIntervalMicroSeconds32
)
|
void
|
MSrRemoveGrammarL
(
TGrammarID
)
|
void
|
MSrRemoveLexiconL
(
TLexiconID
)
|
void
|
MSrRemoveModelBankL
(
TModelBankID
)
|
void
|
MSrRemoveModelL
(
TModelBankID
,
TModelID
)
|
void
|
MSrRemovePronunciationL
(
TLexiconID
,
TPronunciationID
)
|
void
|
MSrRemoveRuleL
(
TGrammarID
,
TRuleID
)
|
void
|
MSrSetClientUid
(
TUid
)
|
void
|
MSrStartRecSessionL
(
TRecognitionMode
)
|
void
|
MSrTrainL
(
TModelBankID
,
TModelID
&)
|
void
|
MSrUnloadRuleL
(
TGrammarID
,
TRuleID
)
|
Member Functions Documentation
MSrAddPronunciationL(TLexiconID, TModelBankID, TModelID, TPronunciationID &)
Adds a new pronunciation for the given model into the specified lexicon.
Parameters
TLexiconID
aLexiconID
|
The lexicon ID to where the new pronunciation is added.
|
TModelBankID
aModelBankID
|
The model bank ID.
|
TModelID
aModelID
|
The model ID.
|
TPronunciationID
& 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.
Parameters
TGrammarID
aGrammarID
|
The grammar ID, where the new rule is added to
|
TLexiconID
aLexiconID
|
The lexicon ID.
|
TPronunciationID
aPronunciationID
|
The pronunciation ID.
|
TRuleID
& 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]
|
Parameters
TGrammarID
& aGrammarID
|
A reference where the grammar ID is stored.
|
MSrCreateLexiconL(TLexiconID &)
void
|
MSrCreateLexiconL
|
(
|
TLexiconID
&
|
aLexiconID
|
)
|
[pure virtual]
|
Parameters
TLexiconID
& aLexiconID
|
A reference where the lexicon ID is stored.
|
MSrCreateModelBankL(TModelBankID &)
void
|
MSrCreateModelBankL
|
(
|
TModelBankID
&
|
aModelBankID
|
)
|
[pure virtual]
|
Creates a new model bank.
Parameters
TModelBankID
& 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 > &)
void
|
MSrGetAllClientGrammarIDsL
|
(
|
RArray
<
TGrammarID
> &
|
aGrammarIDs
|
)
|
[pure virtual]
|
Returns all grammar IDs that are owned by the client.
MSrGetAllClientLexiconIDsL(RArray< TLexiconID > &)
void
|
MSrGetAllClientLexiconIDsL
|
(
|
RArray
<
TLexiconID
> &
|
aLexiconIDs
|
)
|
[pure virtual]
|
Returns all lexicon IDs that are owned by the client.
Parameters
RArray
<
TLexiconID
> & aLexiconIDs
|
A reference where the lexicon IDs are stored.
|
MSrGetAllClientModelBankIDsL(RArray< TModelBankID > &)
void
|
MSrGetAllClientModelBankIDsL
|
(
|
RArray
<
TModelBankID
> &
|
aModelBankIDs
|
)
|
[pure virtual]
|
Returns all modelbank IDs that are owned by the client.
MSrGetAllGrammarIDsL(RArray< TGrammarID > &)
void
|
MSrGetAllGrammarIDsL
|
(
|
RArray
<
TGrammarID
> &
|
aGrammarIDs
|
)
|
[pure virtual]
|
MSrGetAllLexiconIDsL(RArray< TLexiconID > &)
void
|
MSrGetAllLexiconIDsL
|
(
|
RArray
<
TLexiconID
> &
|
aLexiconIDs
|
)
|
[pure virtual]
|
MSrGetAllModelBankIDsL(RArray< TModelBankID > &)
Returns all modelbank IDs.
MSrGetAllModelIDsL(TModelBankID, RArray< TModelID > &)
Returns all model IDs that exist in the specified model bank.
MSrGetAllPronunciationIDsL(TLexiconID, RArray< TPronunciationID > &)
Returns all pronunciation IDs that exist in the specified lexicon.
MSrGetAllRuleIDsL(TGrammarID, RArray< TRuleID > &)
Returns all rule IDs that exist in the specified grammar.
MSrGetAvailableStorageL(TInt &)
void
|
MSrGetAvailableStorageL
|
(
|
TInt
&
|
aCount
|
)
|
[pure virtual]
|
Returns the number of models available for training system wide, based on available disk space.
Parameters
TInt
& 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.
Parameters
const
RArray
<
TInt
> & aPropertyId
|
A constant reference to an array of engine property IDs.
|
RArray
<
TInt
> & aPropertyValue
|
A reference to an array of engine property values.
|
MSrGetModelCountL(TModelBankID, TInt &)
void
|
MSrGetModelCountL
|
(
|
TModelBankID
|
aModelBankID,
|
|
TInt
&
|
aCount
|
|
)
|
[pure virtual]
|
Returns the number of models in the specified model bank.
Parameters
TModelBankID
aModelBankID
|
The model bank ID.
|
TInt
& aCount
|
A reference where the number of models is set.
|
MSrGetRuleValidityL(TGrammarID, TRuleID, TBool &)
Checks if the rule is valid or not.
Parameters
TGrammarID
aGrammarID
|
The grammar ID.
|
TRuleID
aRuleID
|
The rule ID.
|
TBool
& 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.
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.
Parameters
const
RArray
<
TInt
> & aParameterId
|
An array of parameter IDs.
|
const
RArray
<
TInt
> & 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.
MSrLoadLexiconL(TLexiconID)
void
|
MSrLoadLexiconL
|
(
|
TLexiconID
|
aLexiconID
|
)
|
[pure virtual]
|
Loads the specified lexicon into the recognizer; done prior to recognition.
MSrLoadModelsL(TModelBankID)
void
|
MSrLoadModelsL
|
(
|
TModelBankID
|
aModelBankID
|
)
|
[pure virtual]
|
Loads the specified model bank into the recognizer; done prior to recognition.
MSrPlayUtteranceL(TModelBankID, TModelID)
Plays the previously trained utterance.
Parameters
TModelBankID
aModelBankID
|
The model bank ID.
|
TModelID
aModelID
|
The model ID, whose utterance is played.
|
MSrRecognizeL(CSDClientResultSet &)
Initiates recognition; performed following loading of model bank, lexicon, and grammar.
MSrRecordL(TTimeIntervalMicroSeconds32)
Records user utterance for training and recognition.
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.
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.
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.
MSrRemoveModelL(TModelBankID, TModelID)
Removes the specified model from the specified model bank permanently.
MSrRemovePronunciationL(TLexiconID, TPronunciationID)
Removes the specified pronunciation from the specified lexicon permanently.
MSrRemoveRuleL(TGrammarID, TRuleID)
Removes the specified rule from the specified grammar permanently.
MSrSetClientUid(TUid)
void
|
MSrSetClientUid
|
(
|
TUid
|
aClientUid
|
)
|
[pure virtual]
|
Sets the specified grammar client UID.
Parameters
TUid
aClientUid
|
The client UID.
|
MSrStartRecSessionL(TRecognitionMode)
Starts a new recognition session.
MSrTrainL(TModelBankID, TModelID &)
Trains a new model into the specified model bank.
Parameters
TModelBankID
aModelBankID
|
The model bank ID.
|
TModelID
& 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.
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.