RSISpeechRecognitionCustomCommands Class Reference

class RSISpeechRecognitionCustomCommands : public RMMFCustomCommandsBase

This is the main class of NSS Speaker Independent Speech Recognition Custom Commands

nsssispeechrecognitioncustomcommands.lib
Since
2.8

Inherits from

Public Member Functions
RSISpeechRecognitionCustomCommands(RMMFController &)
IMPORT_C TIntActivateGrammar(TSIGrammarID)
IMPORT_C TIntAdapt(const CSIClientResultSet &, TInt)
IMPORT_C TIntAddPronunciation(TSILexiconID, const TDesC &, TLanguage, TSIPronunciationID &)
IMPORT_C TIntAddRule(TSIGrammarID, TSILexiconID, TSIPronunciationID, TSIRuleID &)
IMPORT_C TIntAddRuleVariant(TSIGrammarID, TSILexiconID, const RArray< TSIPronunciationID > &, TSIRuleID, TSIRuleVariantID &)
IMPORT_C TIntAddVoiceTag(const MDesCArray &, const RArray< TLanguage > &, TSILexiconID, TSIGrammarID, TSIRuleID &)
IMPORT_C TIntAddVoiceTag(const MDesCArray &, const RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, TSIRuleID &)
IMPORT_C TIntAddVoiceTags(const RPointerArray< MDesCArray > &, const RArray< TLanguage > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &)
IMPORT_C TIntAddVoiceTags(const RPointerArray< MDesCArray > &, const RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &)
IMPORT_C voidCancel()
IMPORT_C TIntCommitChanges()
IMPORT_C TIntCreateGrammar(TSIGrammarID &)
IMPORT_C TIntCreateLexicon(TSILexiconID &)
IMPORT_C TIntCreateModelBank(TSIModelBankID &)
IMPORT_C TIntCreateRule(TSIGrammarID, TSIRuleID &)
IMPORT_C TIntDeactivateGrammar(TSIGrammarID)
IMPORT_C TIntEndRecSession()
IMPORT_C TIntEndRecord()
IMPORT_C TIntGetAllClientGrammarIDs()
IMPORT_C TIntGetAllClientLexiconIDs()
IMPORT_C TIntGetAllClientModelBankIDs()
IMPORT_C TIntGetAllGrammarIDs()
IMPORT_C TIntGetAllLexiconIDs()
IMPORT_C TIntGetAllModelBankIDs()
IMPORT_C TIntGetAllModelIDs(TSIModelBankID)
IMPORT_C TIntGetAllPronunciationIDs(TSILexiconID)
IMPORT_C TIntGetAllRuleIDs(TSIGrammarID)
IMPORT_C TIntGetEngineProperties(const RArray< TInt > &, RArray< TInt > &)
IMPORT_C voidGetGrammarIDArrayL(RArray< TSIGrammarID > &)
IMPORT_C voidGetLexiconIDArrayL(RArray< TSILexiconID > &)
IMPORT_C voidGetModelBankIDArrayL(RArray< TSIModelBankID > &)
IMPORT_C TIntGetModelCount(TSIModelBankID, TInt &)
IMPORT_C voidGetModelIDArrayL(RArray< TSIModelID > &)
IMPORT_C voidGetPronunciationIDArrayL(RArray< TSIPronunciationID > &)
IMPORT_C voidGetRuleIDArrayL(RArray< TSIRuleID > &)
IMPORT_C TIntGetRuleValidity(TSIGrammarID, TSIRuleID, TBool &)
IMPORT_C voidGetSIResultSetL(CSIClientResultSet &)
IMPORT_C TIntLoadEngineParameters(const RArray< TInt > &, const RArray< TInt > &)
IMPORT_C TIntLoadGrammar(TSIGrammarID)
IMPORT_C TIntLoadLexicon(TSILexiconID)
IMPORT_C TIntLoadModels(TSIModelBankID)
IMPORT_C TIntPreStartSampling()
IMPORT_C TIntRecognize(CSIClientResultSet &)
IMPORT_C TIntRecord(TTimeIntervalMicroSeconds32)
IMPORT_C TIntRemoveGrammar(TSIGrammarID)
IMPORT_C TIntRemoveLexicon(TSILexiconID)
IMPORT_C TIntRemoveModel(TSIModelBankID, TSIModelID)
IMPORT_C TIntRemoveModelBank(TSIModelBankID)
IMPORT_C TIntRemovePronunciation(TSILexiconID, TSIPronunciationID)
IMPORT_C TIntRemoveRule(TSIGrammarID, TSIRuleID)
IMPORT_C TIntRemoveRules(TSIGrammarID, RArray< TSIRuleID > &)
IMPORT_C TIntSetClientUid(TUid)
IMPORT_C TIntStartRecSession(TNSSRecognitionMode)
IMPORT_C TIntUnloadGrammar(TSIGrammarID)
IMPORT_C TIntUnloadRule(TSIGrammarID, TSIRuleID)
Private Member Functions
voidDoGetEnginePropertiesL(const RArray< TInt > &, RArray< TInt > &)
voidDoLoadEngineParametersL(const RArray< TInt > &, const RArray< TInt > &)
voidDoRecognizeL(CSDClientResultSet &)
voidDoRecognizeSIL(CSIClientResultSet &)
CBufFlat *ExternalizeIntArrayL(const RArray< TInt > &)
voidInternalizeIntArrayL(TDes8 &, TInt, RArray< TInt > &)
Inherited Functions
RMMFCustomCommandsBase::RMMFCustomCommandsBase(RMMFController &,TUid)
Private Attributes
TAny *iReservedPtr_1
TAny *iReservedPtr_2
Inherited Attributes
RMMFCustomCommandsBase::iController
RMMFCustomCommandsBase::iDestinationPckg

Constructor & Destructor Documentation

RSISpeechRecognitionCustomCommands(RMMFController &)

IMPORT_CRSISpeechRecognitionCustomCommands(RMMFController &aController)

Public C++ constructor for RSpeechRecognitionCustomCommands class.

Since
2.8

Parameters

RMMFController & aControllerreference to RMMFController object

Member Functions Documentation

ActivateGrammar(TSIGrammarID)

IMPORT_C TIntActivateGrammar(TSIGrammarIDaGrammarID)

Activates a loaded and deactivated grammar.

Since
2.8

Parameters

TSIGrammarID aGrammarIDgrammar Id

Adapt(const CSIClientResultSet &, TInt)

IMPORT_C TIntAdapt(const CSIClientResultSet &aResultSet,
TIntaCorrect
)

Adapts speaker independent models according using a correct recognition result.

Since
2.8

Parameters

const CSIClientResultSet & aResultSetThe result N-Best containing feature vectors aCorrect The correct index
TInt aCorrect

AddPronunciation(TSILexiconID, const TDesC &, TLanguage, TSIPronunciationID &)

IMPORT_C TIntAddPronunciation(TSILexiconIDaLexiconID,
const TDesC &aTrainText,
TLanguageaLanguage,
TSIPronunciationID &aPronunciationID
)

Adds a pronunciation to the given lexicon.

Since
2.8

Parameters

TSILexiconID aLexiconIDThe lexicon Id
const TDesC & aTrainTextText to be pronounced
TLanguage aLanguagePronunciation language
TSIPronunciationID & aPronunciationIDReference where a new pronunciation Id is assigned to.

AddRule(TSIGrammarID, TSILexiconID, TSIPronunciationID, TSIRuleID &)

IMPORT_C TIntAddRule(TSIGrammarIDaGrammarID,
TSILexiconIDaLexiconID,
TSIPronunciationIDaPronunciationID,
TSIRuleID &aRuleID
)
Adds a new rule for the given pronunciation into the specified grammar.
Since
2.0

Parameters

TSIGrammarID aGrammarIDgrammar Id, where the new rule is added to
TSILexiconID aLexiconIDlexicon Id
TSIPronunciationID aPronunciationIDpronunciation Id
TSIRuleID & aRuleIDreference where a new rule Id is assigned to

AddRuleVariant(TSIGrammarID, TSILexiconID, const RArray< TSIPronunciationID > &, TSIRuleID, TSIRuleVariantID &)

IMPORT_C TIntAddRuleVariant(TSIGrammarIDaGrammarID,
TSILexiconIDaLexiconID,
const RArray< TSIPronunciationID > &aPronunciationIDs,
TSIRuleIDaRuleID,
TSIRuleVariantID &aRuleVariantID
)

Adds a rule variant to a grammar.

Since
2.8

Parameters

TSIGrammarID aGrammarIDGrammar identifier
TSILexiconID aLexiconID
const RArray< TSIPronunciationID > & aPronunciationIDs
TSIRuleID aRuleIDRule identifier; variant is added here.
TSIRuleVariantID & aRuleVariantIDReference where the new variant identifier is assigned to.

AddVoiceTag(const MDesCArray &, const RArray< TLanguage > &, TSILexiconID, TSIGrammarID, TSIRuleID &)

IMPORT_C TIntAddVoiceTag(const MDesCArray &aTrainArray,
const RArray< TLanguage > &aLanguageArray,
TSILexiconIDaLexiconID,
TSIGrammarIDaGrammarID,
TSIRuleID &aRuleID
)

Trains a voice tag. Adds the text to the lexicon, and creates the required rules and rule variants.

Since
2.8

Parameters

const MDesCArray & aTrainArrayThe phrase to be trained, split into subwords
const RArray< TLanguage > & aLanguageArrayThe pronunciaiton languages
TSILexiconID aLexiconIDLexicon identifier
TSIGrammarID aGrammarIDGrammar identifier
TSIRuleID & aRuleIDReference, where the new rule identifier is assigned to.

AddVoiceTag(const MDesCArray &, const RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, TSIRuleID &)

IMPORT_C TIntAddVoiceTag(const MDesCArray &aTrainArray,
const RArray< RLanguageArray > &aLanguageArray,
TSILexiconIDaLexiconID,
TSIGrammarIDaGrammarID,
TSIRuleID &aRuleID
)

Trains a voice tag. Adds the text to the lexicon, and creates the required rules and rule variants.

Since
3.1

Parameters

const MDesCArray & aTrainArrayThe phrase to be trained, split into subwords
const RArray< RLanguageArray > & aLanguageArrayThe pronunciaiton languages
TSILexiconID aLexiconIDLexicon identifier
TSIGrammarID aGrammarIDGrammar identifier
TSIRuleID & aRuleIDReference, where the new rule identifier is assigned to.

AddVoiceTags(const RPointerArray< MDesCArray > &, const RArray< TLanguage > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &)

IMPORT_C TIntAddVoiceTags(const RPointerArray< MDesCArray > &aTrainArray,
const RArray< TLanguage > &aLanguageArray,
TSILexiconIDaLexiconID,
TSIGrammarIDaGrammarID,
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.

Since
2.8

Parameters

const RPointerArray< MDesCArray > & aTrainArrayThe phrase to be trained, split into subwords
const RArray< TLanguage > & aLanguageArrayThe pronunciation languages
TSILexiconID aLexiconIDLexicon identifier
TSIGrammarID aGrammarIDGrammar identifier
RArray< TSIRuleID > & aRuleIDReferenceto an array, where the new Rule identifiers are assigned to.

AddVoiceTags(const RPointerArray< MDesCArray > &, const RArray< RLanguageArray > &, TSILexiconID, TSIGrammarID, RArray< TSIRuleID > &)

IMPORT_C TIntAddVoiceTags(const RPointerArray< MDesCArray > &aTrainArray,
const RArray< RLanguageArray > &aLanguageArray,
TSILexiconIDaLexiconID,
TSIGrammarIDaGrammarID,
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.

Since
3.1

Parameters

const RPointerArray< MDesCArray > & aTrainArrayThe phrase to be trained, split into subwords
const RArray< RLanguageArray > & aLanguageArrayThe pronunciation languages
TSILexiconID aLexiconIDLexicon identifier
TSIGrammarID aGrammarIDGrammar identifier
RArray< TSIRuleID > & aRuleIDReferenceto an array, where the new Rule identifiers are assigned to.

Cancel()

IMPORT_C voidCancel()
Cancels the current operation
Since
2.0

CommitChanges()

IMPORT_C TIntCommitChanges()
Saves the current changes into permanent storage.
Since
2.0

CreateGrammar(TSIGrammarID &)

IMPORT_C TIntCreateGrammar(TSIGrammarID &aGrammarID)
Creates a new grammar.
Since
2.0

Parameters

TSIGrammarID & aGrammarIDreference where grammar ID is stored

CreateLexicon(TSILexiconID &)

IMPORT_C TIntCreateLexicon(TSILexiconID &aLexiconID)
Creates a new lexicon.
Since
2.0

Parameters

TSILexiconID & aLexiconIDreference where lexicon ID is stored

CreateModelBank(TSIModelBankID &)

IMPORT_C TIntCreateModelBank(TSIModelBankID &aModelBankID)
Creates a new model bank.
Since
2.0

Parameters

TSIModelBankID & aModelBankIDreference where a new model bank Id is assigned to

CreateRule(TSIGrammarID, TSIRuleID &)

IMPORT_C TIntCreateRule(TSIGrammarIDaGrammarID,
TSIRuleID &aRuleID
)

Creates a new rule.

Since
2.8

Parameters

TSIGrammarID aGrammarIDGrammar identifier
TSIRuleID & aRuleIDReference where rule ID is stored

DeactivateGrammar(TSIGrammarID)

IMPORT_C TIntDeactivateGrammar(TSIGrammarIDaGrammarID)

Deactivates a loaded grammar so that it is not recognized.

Since
2.8

Parameters

TSIGrammarID aGrammarIDgrammar Id

DoGetEnginePropertiesL(const RArray< TInt > &, RArray< TInt > &)

voidDoGetEnginePropertiesL(const RArray< TInt > &aPropertyId,
RArray< TInt > &aPropertyValue
)[private]
Returns the engine properties specified by the engine property ID array. On return aPropertyValue contains an array of engine properties. This function does the actual work.
Since
2.0

Parameters

const RArray< TInt > & aPropertyIdconstant reference to array of engine property Ids
RArray< TInt > & aPropertyValuereference to array of engine property values

DoLoadEngineParametersL(const RArray< TInt > &, const RArray< TInt > &)

voidDoLoadEngineParametersL(const RArray< TInt > &aParameterId,
const RArray< TInt > &aParameterValue
)[private]
Uploads the specified parameters into the engine. This function does the actual work.
Since
2.0

Parameters

const RArray< TInt > & aParameterIdarray of parameter IDs
const RArray< TInt > & aParameterValuearray of parameter values

DoRecognizeL(CSDClientResultSet &)

voidDoRecognizeL(CSDClientResultSet &aResultSet)[private]
Initiates recognition; performed following loading of model bank, lexicon, and grammar. This function does the actual work and is trapped by the public Recognize() function.
Since
2.0

Parameters

CSDClientResultSet & aResultSetreference where the recognition result is set

DoRecognizeSIL(CSIClientResultSet &)

voidDoRecognizeSIL(CSIClientResultSet &aResultSet)[private]
Initiates speaker independent recognition; performed following loading of model bank, lexicon, and grammar. This function does the actual work and is trapped by the public Recognize() function.
Since
2.8

Parameters

CSIClientResultSet & aResultSetreference where the recognition result is set

EndRecSession()

IMPORT_C TIntEndRecSession()
Ends the current recognition session. Resources allocated for recognition are freed.
Since
2.0

EndRecord()

IMPORT_C TIntEndRecord()

Stops recognition. Unlike Cancel(), this function gives the recognition result, if it can be guessed.

Since
2.8

ExternalizeIntArrayL(const RArray< TInt > &)

CBufFlat *ExternalizeIntArrayL(const RArray< TInt > &aArray)[private]
Externalize an integer array.
Since
2.0

Parameters

const RArray< TInt > & aArrayarray to externalize

GetAllClientGrammarIDs()

IMPORT_C TIntGetAllClientGrammarIDs()
Returns all grammar Ids that belong to the current client.
Since
2.0

GetAllClientLexiconIDs()

IMPORT_C TIntGetAllClientLexiconIDs()
Returns all lexicon Ids that belong to the current client.
Since
2.0

GetAllClientModelBankIDs()

IMPORT_C TIntGetAllClientModelBankIDs()
Returns all model bank Ids that belong to the current client.
Since
2.0

GetAllGrammarIDs()

IMPORT_C TIntGetAllGrammarIDs()
Returns all grammar Ids that exist (for all clients).
Since
2.0

GetAllLexiconIDs()

IMPORT_C TIntGetAllLexiconIDs()
Returns all lexicon Ids that exist (for all clients).
Since
2.0

GetAllModelBankIDs()

IMPORT_C TIntGetAllModelBankIDs()
Returns all model bank Ids that exist (for all clients).
Since
2.0

GetAllModelIDs(TSIModelBankID)

IMPORT_C TIntGetAllModelIDs(TSIModelBankIDaModelBankID)
Returns all model Ids that exist in the specified model bank.
Since
2.0

Parameters

TSIModelBankID aModelBankIDmodel bank Id

GetAllPronunciationIDs(TSILexiconID)

IMPORT_C TIntGetAllPronunciationIDs(TSILexiconIDaLexiconID)
Returns all pronunciation Ids that exist in the specified lexicon.
Since
2.0

Parameters

TSILexiconID aLexiconIDlexicon Id

GetAllRuleIDs(TSIGrammarID)

IMPORT_C TIntGetAllRuleIDs(TSIGrammarIDaGrammarID)
Returns all rule Ids that exist in the specified grammar.
Since
2.0

Parameters

TSIGrammarID aGrammarIDgrammar Id

GetEngineProperties(const RArray< TInt > &, RArray< TInt > &)

IMPORT_C TIntGetEngineProperties(const RArray< TInt > &aPropertyId,
RArray< TInt > &aPropertyValue
)
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 > & aPropertyIdconstant reference to array of engine property Ids
RArray< TInt > & aPropertyValuereference to array of engine property values

GetGrammarIDArrayL(RArray< TSIGrammarID > &)

IMPORT_C voidGetGrammarIDArrayL(RArray< TSIGrammarID > &aGrammarIDs)
Get the grammar ID array. On return aGrammarIDs contains an array of rule IDs.
Since
2.0

Parameters

RArray< TSIGrammarID > & aGrammarIDs

GetLexiconIDArrayL(RArray< TSILexiconID > &)

IMPORT_C voidGetLexiconIDArrayL(RArray< TSILexiconID > &aLexiconIDs)
Get the lexicon ID array. On return aLexiconIDs contains an array of lexicon IDs.
Since
2.0

Parameters

RArray< TSILexiconID > & aLexiconIDs

GetModelBankIDArrayL(RArray< TSIModelBankID > &)

IMPORT_C voidGetModelBankIDArrayL(RArray< TSIModelBankID > &aModelBankIDs)
Get the model bank ID array. On return aModelBankIDs contains an array of model bank IDs.
Since
2.0

Parameters

RArray< TSIModelBankID > & aModelBankIDs

GetModelCount(TSIModelBankID, TInt &)

IMPORT_C TIntGetModelCount(TSIModelBankIDaModelBankID,
TInt &aModelCount
)
Returns the number of models in the specified model bank.
Since
2.0

Parameters

TSIModelBankID aModelBankIDmodel bank Id
TInt & aModelCount

GetModelIDArrayL(RArray< TSIModelID > &)

IMPORT_C voidGetModelIDArrayL(RArray< TSIModelID > &aModelIDs)
Get the model ID array. On return aModelIDs contains an array of model IDs.
Since
2.0

Parameters

RArray< TSIModelID > & aModelIDsarray of model IDs

GetPronunciationIDArrayL(RArray< TSIPronunciationID > &)

IMPORT_C voidGetPronunciationIDArrayL(RArray< TSIPronunciationID > &aPronunciationIDs)
Get the pronunciation ID array. On return aPronunciationIDs contains an array of pronunciation IDs.
Since
2.0

Parameters

RArray< TSIPronunciationID > & aPronunciationIDsarray of pronunciation IDs

GetRuleIDArrayL(RArray< TSIRuleID > &)

IMPORT_C voidGetRuleIDArrayL(RArray< TSIRuleID > &aRuleIDs)
Get the rule ID array. On return aRuleIDs contains an array of rule IDs.
Since
2.0

Parameters

RArray< TSIRuleID > & aRuleIDsarray of rule IDs

GetRuleValidity(TSIGrammarID, TSIRuleID, TBool &)

IMPORT_C TIntGetRuleValidity(TSIGrammarIDaGrammarID,
TSIRuleIDaRuleID,
TBool &aValid
)
Checks if the rule is valid or not.
Since
2.0

Parameters

TSIGrammarID aGrammarIDgrammar Id
TSIRuleID aRuleIDrule Id
TBool & aValidreference where the validity of the rule is set

GetSIResultSetL(CSIClientResultSet &)

IMPORT_C voidGetSIResultSetL(CSIClientResultSet &aResultSet)
Get the client result set. This function should be called after recognition. On return aResultSet contains client result set.
Since
2.8

Parameters

CSIClientResultSet & aResultSetResult set to be populated.

InternalizeIntArrayL(TDes8 &, TInt, RArray< TInt > &)

voidInternalizeIntArrayL(TDes8 &aDes,
TIntaNumberElements,
RArray< TInt > &aArray
)[private]
Internalize an integer array.
Since
2.0

Parameters

TDes8 & aDesdescriptor containing the data to internalize
TInt aNumberElementsnumber of elements to internalize
RArray< TInt > & aArraycontains the internalized array on exit

LoadEngineParameters(const RArray< TInt > &, const RArray< TInt > &)

IMPORT_C TIntLoadEngineParameters(const RArray< TInt > &aParameterId,
const RArray< TInt > &aParameterValue
)
Uploads the specified parameters into the engine.
Since
2.0

Parameters

const RArray< TInt > & aParameterIdarray of parameter IDs
const RArray< TInt > & aParameterValuearray of parameter values

LoadGrammar(TSIGrammarID)

IMPORT_C TIntLoadGrammar(TSIGrammarIDaGrammarID)

Loads a grammar. Grammars are loaded between StartRecSession() and Recognize()

Since
2.0

Parameters

TSIGrammarID aGrammarIDgrammar Id

LoadLexicon(TSILexiconID)

IMPORT_C TIntLoadLexicon(TSILexiconIDaLexiconID)
Loads the specified lexicon into the recognizer; done prior to recognition.
Since
2.0

Parameters

TSILexiconID aLexiconIDlexicon ID

LoadModels(TSIModelBankID)

IMPORT_C TIntLoadModels(TSIModelBankIDaModelBankID)
Loads the specified model bank into the recognizer; done prior to recognition..
Since
2.0

Parameters

TSIModelBankID aModelBankIDmodel bank Id

PreStartSampling()

IMPORT_C TIntPreStartSampling()

Pre-starts recording before Record() call.

Since
3.2

Recognize(CSIClientResultSet &)

IMPORT_C TIntRecognize(CSIClientResultSet &aResultSet)

Starts recognition

Since
2.8

Parameters

CSIClientResultSet & aResultSetRecognition result is placed here, when ready.

Record(TTimeIntervalMicroSeconds32)

IMPORT_C TIntRecord(TTimeIntervalMicroSeconds32aRecordTime)
Records uder utterance for training and recognition.
Since
2.0

Parameters

TTimeIntervalMicroSeconds32 aRecordTimerecording time in microseconds

RemoveGrammar(TSIGrammarID)

IMPORT_C TIntRemoveGrammar(TSIGrammarIDaGrammarID)
Removes the specified grammar from the permanent storage. Removing a grammar will remove all rules within the grammar.
Since
2.0

Parameters

TSIGrammarID aGrammarIDgrammar Id

RemoveLexicon(TSILexiconID)

IMPORT_C TIntRemoveLexicon(TSILexiconIDaLexiconID)
Removes the specified lexicon from the permanent storage. Removing a lexicon will remove all pronunciations within the lexicon.
Since
2.0

Parameters

TSILexiconID aLexiconIDlexicon Id

RemoveModel(TSIModelBankID, TSIModelID)

IMPORT_C TIntRemoveModel(TSIModelBankIDaModelBankID,
TSIModelIDaModelID
)
Removes the specified model from the specified model bank permanently.
Since
2.0

Parameters

TSIModelBankID aModelBankIDmodel bank Id
TSIModelID aModelIDmodel Id

RemoveModelBank(TSIModelBankID)

IMPORT_C TIntRemoveModelBank(TSIModelBankIDaModelBankID)
Removes the specified model bank from the permanent storage. Removing a model bank will remove all models within the model bank.
Since
2.0

Parameters

TSIModelBankID aModelBankIDmodel bank Id

RemovePronunciation(TSILexiconID, TSIPronunciationID)

IMPORT_C TIntRemovePronunciation(TSILexiconIDaLexiconID,
TSIPronunciationIDaPronunciationID
)
Removes the specified pronunciation from the specified lexicon permanently.
Since
2.0

Parameters

TSILexiconID aLexiconIDlexicon Id
TSIPronunciationID aPronunciationIDpronunciation Id

RemoveRule(TSIGrammarID, TSIRuleID)

IMPORT_C TIntRemoveRule(TSIGrammarIDaGrammarID,
TSIRuleIDaRuleID
)
Removes the specified rule from the specified grammar permanently.
Since
2.0

Parameters

TSIGrammarID aGrammarIDgrammar Id
TSIRuleID aRuleIDrule Id

RemoveRules(TSIGrammarID, RArray< TSIRuleID > &)

IMPORT_C TIntRemoveRules(TSIGrammarIDaGrammarID,
RArray< TSIRuleID > &aRuleIDs
)
Removes the specified rule from the specified grammar permanently.
Since
2.8

Parameters

TSIGrammarID aGrammarIDgrammar Id
RArray< TSIRuleID > & aRuleIDsarray of rule ids

SetClientUid(TUid)

IMPORT_C TIntSetClientUid(TUidaClientUid)
Sets the client's UID for data ownership identification.
Since
2.0

Parameters

TUid aClientUidclient's UID

StartRecSession(TNSSRecognitionMode)

IMPORT_C TIntStartRecSession(TNSSRecognitionModeaMode)
Starts a new recognition session.
Since
2.0

Parameters

TNSSRecognitionMode aModerecognition mode

UnloadGrammar(TSIGrammarID)

IMPORT_C TIntUnloadGrammar(TSIGrammarIDaGrammarID)

Deactivates a grammar.

Since
2.8

Parameters

TSIGrammarID aGrammarIDGrammar identifier

UnloadRule(TSIGrammarID, TSIRuleID)

IMPORT_C TIntUnloadRule(TSIGrammarIDaGrammarID,
TSIRuleIDaRuleID
)
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

Parameters

TSIGrammarID aGrammarIDgrammar Id
TSIRuleID aRuleIDrule Id

Member Data Documentation

TAny * iReservedPtr_1

TAny *iReservedPtr_1[private]

TAny * iReservedPtr_2

TAny *iReservedPtr_2[private]