Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <SpeechRecognitionDataDevASR.h>
Link against: speechrecognitiondata.lib
This item is not part of the S60 5th Edition SDK

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:

Inherited from CBase:


Construction and destruction


~CSDModelBank()

IMPORT_C ~CSDModelBank();

Description

Destructor.


NewL(TModelBankID)

IMPORT_C static 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(TModelBankID)

IMPORT_C static 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()const

IMPORT_C TModelBankID ModelBankID() const;

Description

Returns the model bank ID of the model bank.

Return value

TModelBankID

The model bank identifier.


Add(CSDModel &)

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(TInt)const

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(TPhonemeID)const

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()const

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.