MTtsHwDeviceObserver Class Reference

class MTtsHwDeviceObserver

Class to define callback functions

asrsttshwdevice.lib
Since
2.8

Member Functions Documentation

MthdCustomEvent(TInt, TInt, const TDesC8 &)

voidMthdCustomEvent(TIntaEvent,
TIntaStatus,
const TDesC8 &aParameter =  KNullDesC8
)[pure virtual]
Called by the HW device when custom command implementation wants to notify a client.
Since
2.8

Parameters

TInt aEventEvent code aStatus Error code, KErrNone if success.
TInt aStatus
const TDesC8 & aParameter =  KNullDesC8 Optional parameter

MthdProcessBuffer(const TDesC8 &)

voidMthdProcessBuffer(const TDesC8 &aBuffer)[pure virtual]
Called by the HW device when the HW device has synthesized a new audio buffer.
Since
2.8

Parameters

const TDesC8 & aBufferSynthesized audio buffer.

MthdTtsCompleted(TInt)

voidMthdTtsCompleted(TIntaStatus)[pure virtual]
Called by the HW device when the synthesis has been completed.
Since
2.8

Parameters

TInt aStatusError code, KErrNone if success

MthdoConfigurationData(TUint32, TUint32, TUint32, TUint32)

HBufC8 *MthdoConfigurationData(TUint32aPackageType,
TUint32aPackageID,
TUint32aStartPosition,
TUint32aEndPosition
)[pure virtual]
Invoked by TTS HW Device when it needs a configuration data package.
Since
2.8

Parameters

TUint32 aPackageTypeType identifier.
TUint32 aPackageIDIdentifier of package
TUint32 aStartPositionStart index in bytes
TUint32 aEndPositionEnd index in bytes. If the position is bigger than the size of data package, the end part will be returned.