CASRSAdaptHwDevice Class Reference

class CASRSAdaptHwDevice : public CASRSHwDevice

Adaptation class

!! asrsadaptationhwdevice.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CASRSAdaptHwDevice(MASRAdaptationHwDeviceObserver &)

CASRSAdaptHwDevice(MASRAdaptationHwDeviceObserver &anObserver)[private]
Cancels adaptation. No callback is sent to the client.
Since
2.8
Since
?Series60_version
Since
?Series60_version

Parameters

MASRAdaptationHwDeviceObserver & anObserver

~CASRSAdaptHwDevice()

IMPORT_C~CASRSAdaptHwDevice()[virtual]

Destructor.

Member Functions Documentation

CancelAdaptation()

IMPORT_C voidCancelAdaptation()
Cancel the Adaptation process. No callback is sent to the client.
Since
2.8

Clear()

IMPORT_C voidClear()[virtual]
Clears the device.
Since
2.8

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CustomInterface(TUid)

IMPORT_C TAny *CustomInterface(TUidaInterfaceId)[virtual]
Retrieve a custom interface
Since
2.8

Parameters

TUid aInterfaceId

InitializeL()

IMPORT_C voidInitializeL()[virtual]
Initializes the device. Subsequent calls reset the device.
Since
2.8

NewL(MASRAdaptationHwDeviceObserver &)

IMPORT_C CASRSAdaptHwDevice *NewL(MASRAdaptationHwDeviceObserver &aObserver)[static]

Two-phased constructor.

Parameters

MASRAdaptationHwDeviceObserver & aObserver

StartAdaptationL(const TDesC8 &, CSIModelBank &, CSIPronunciation &, TLanguage)

IMPORT_C voidStartAdaptationL(const TDesC8 &aAdaptationData,
CSIModelBank &aModelBank,
CSIPronunciation &aPronunciation,
TLanguageaLanguage
)
Start the adaptation. It will adapt the acoustic models given the feature vector set and phoneme sequences of a correctly recognized utterance
Since
2.8

Parameters

const TDesC8 & aAdaptationData
CSIModelBank & aModelBank
CSIPronunciation & aPronunciation
TLanguage aLanguage: adaptation language

Member Data Documentation

CAsrAdaptationAlgorithm * iAlgorithm

CAsrAdaptationAlgorithm *iAlgorithm[private]

TBool iIsInitialised

TBool iIsInitialised[private]

MASRAdaptationHwDeviceObserver & iObserver

MASRAdaptationHwDeviceObserver &iObserver[private]

TAny * iReserved

TAny *iReserved[private]