#include <SpeechRecognitionDataDevASR.h>
Link against:
speechrecognitiondata.lib
This item is not part of the S60 5th Edition SDK
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.
Members
Defined in CSDModelBank
:
Inherited from CBase
:
Construction and destruction
IMPORT_C ~CSDModelBank();
Description
Destructor.
IMPORT_C static CSDModelBank* NewL(TModelBankID aModelBankID);
Description
Instantiates an instance of a CSDModelBank.
Parameters
TModelBankID aModelBankID |
The model bank identifier.
|
|
Return value
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
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.
|
|
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.
|
|
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.
|
|