Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: speechrecognitiondatadevasr.h
Link against: speechrecognitiondata.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class CSDModelBank

class CSDModelBank : public CBase;

Description

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

Derivation

Members

Defined in CSDModelBank:
Add(), At(), Count(), FindModel(), ModelBankID(), NewL(), NewLC(), ~CSDModelBank()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~CSDModelBank()

IMPORT_C ~CSDModelBank();

Description

Destructor.


NewL()

static IMPORT_C CSDModelBank *NewL(TModelBankID aModelBankID);

Description

Instantiates an instance of a CSDModelBank.

Parameters

TModelBankID aModelBankID

The model bank identifier.

Return value

CSDModelBank *

A pointer to a CSDModelBank object.


NewLC()

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

CSDModelBank *

A pointer to a CSDModelBank object.

[Top]


Member functions


ModelBankID()

IMPORT_C TModelBankID ModelBankID() const;

Description

Returns the model bank ID of the model bank.

Return value

TModelBankID

The model bank identifier.


Add()

IMPORT_C TInt Add(CSDModel &aModel);

Description

Adds a model to the model bank.

Parameters

CSDModel &aModel

The reference to CSDModel object.

Return value

TInt

An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.


At()

IMPORT_C const CSDModel &At(TInt aIndex) const;

Description

Returns a model at the given index.

Parameters

TInt aIndex

A reference to a CSDModel object.

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.


FindModel()

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.


Count()

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.