CSDModelBank Class Reference

#include <mmf/common/speechrecognitiondatadevasr.h>

Link against: speechrecognitiondata.lib

class CSDModelBank : public CBase

Inherits from

Detailed Description

Class to encapsulate a Speaker Dependent Model Bank used by the recognizer during the recognition process.

Since
8.0

Constructor & Destructor Documentation

~CSDModelBank ( )

IMPORT_C~CSDModelBank()

Destructor.

Member Function Documentation

Add ( CSDModel & )

IMPORT_C TIntAdd(CSDModel &aModel)

Adds a model to the model bank.

Since
8.0
Parameters
aModelThe reference to CSDModel object.
Return Value
An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.

At ( TInt )

IMPORT_C const CSDModel &At(TIntaIndex)const

Returns a model at the given index.

Since
8.0
Parameters
aIndexA reference to a CSDModel object.
Return Value
The index of the first matching model within the model bank. Returns KErrNotFound, if a matching model can not be found.

Count ( )

IMPORT_C TIntCount()const

Returns the number of models in the model bank.

Since
8.0
Return Value
The number of models in the model bank.

FindModel ( TPhonemeID )

IMPORT_C TIntFindModel(TPhonemeIDaPhonemeID)const

Finds a model based on the specified phoneme ID.

Since
8.0
Parameters
aPhonemeIDThe phoneme ID.
Return Value
The index of the first matching model within the model bank. Returns KErrNotFound, if a matching model can not be found.

ModelBankID ( )

IMPORT_C TModelBankIDModelBankID()const

Returns the model bank ID of the model bank.

Since
8.0
Return Value
The model bank identifier.

NewL ( TModelBankID )

IMPORT_C CSDModelBank *NewL(TModelBankIDaModelBankID)[static]

Instantiates an instance of a CSDModelBank.

Parameters
aModelBankIDThe model bank identifier.
Return Value
A pointer to a CSDModelBank object.

NewLC ( TModelBankID )

IMPORT_C CSDModelBank *NewLC(TModelBankIDaModelBankID)[static]

Instantiates an instance of a CSDModelBank and leaves a pointer on the cleanup stack.

Parameters
aModelBankIDThe model bank identifier.
Return Value
A pointer to a CSDModelBank object.