Location:
speechrecognitiondatadevasr.h
Link against: speechrecognitiondata.lib
class CSDModelBank : public CBase;
Description
Class to encapsulate a Speaker Dependent Model Bank used by the recognizer during the recognition process.
Derivation
CBase - Base class for all classes to be instantiated on the heap
CSDModelBank - Class to encapsulate a Speaker Dependent Model Bank used by the recognizer during the recognition process
Members
Defined in CSDModelBank:
Add(), At(), Count(), FindModel(), ModelBankID(), NewL(), NewLC(), ~CSDModelBank()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
IMPORT_C ~CSDModelBank();
Description
Destructor.
static IMPORT_C CSDModelBank *NewL(TModelBankID aModelBankID);
Description
Instantiates an instance of a CSDModelBank.
Parameters
TModelBankID aModelBankID |
The model bank identifier.
|
|
Return value
static IMPORT_C CSDModelBank *NewLC(TModelBankID aModelBankID);
Description
Instantiates an instance of a CSDModelBank and leaves a pointer on the cleanup stack.
Parameters
TModelBankID aModelBankID |
The model bank identifier.
|
|
Return value
IMPORT_C TModelBankID ModelBankID() const;
Description
Returns the model bank ID of the model bank.
Return value
TModelBankID
|
The model bank identifier.
|
|
IMPORT_C TInt Add(CSDModel &aModel);
Description
Adds a model to the model bank.
Parameters
Return value
TInt
|
An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error
codes.
|
|
IMPORT_C const CSDModel &At(TInt aIndex) const;
Description
Returns a model at the given index.
Parameters
Return value
const CSDModel & |
The index of the first matching model within the model bank. Returns KErrNotFound, if a matching model can not be found.
|
|
IMPORT_C TInt FindModel(TPhonemeID aPhonemeID) const;
Description
Finds a model based on the specified phoneme ID.
Parameters
TPhonemeID aPhonemeID |
The phoneme ID.
|
|
Return value
TInt
|
The index of the first matching model within the model bank. Returns KErrNotFound, if a matching model can not be found.
|
|
IMPORT_C TInt Count() const;
Description
Returns the number of models in the model bank.
Return value
TInt
|
The number of models in the model bank.
|
|