CSDModelBank Class Reference

#include <mmf/common/speechrecognitiondatadevasr.h>

Link against: speechrecognitiondata.lib

class CSDModelBank : public CBase

Inherits from

  • CSDModelBank

    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
    ParameterDescription
    aModelThe reference to CSDModel object.

    Returns: 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
    ParameterDescription
    aIndexA reference to a CSDModel object.

    Returns: 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

    Returns: 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
    ParameterDescription
    aPhonemeIDThe phoneme ID.

    Returns: 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

    Returns: The model bank identifier.

    NewL ( TModelBankID )

    IMPORT_C CSDModelBank *NewL(TModelBankIDaModelBankID)[static]

    Instantiates an instance of a CSDModelBank.

    ParameterDescription
    aModelBankIDThe model bank identifier.

    Returns: 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.

    ParameterDescription
    aModelBankIDThe model bank identifier.

    Returns: A pointer to a CSDModelBank object.