MTtsHwDeviceObserver Class Reference

class MTtsHwDeviceObserver

Class to define callback functions

asrsttshwdevice.lib
Since
2.8

Member Functions Documentation

MthdCustomEvent(TInt, TInt, const TDesC8 &)

void MthdCustomEvent ( TInt aEvent,
TInt aStatus,
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 aEvent Event code aStatus Error code, KErrNone if success.
TInt aStatus
const TDesC8 & aParameter =  KNullDesC8 Optional parameter

MthdProcessBuffer(const TDesC8 &)

void MthdProcessBuffer ( 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 & aBuffer Synthesized audio buffer.

MthdTtsCompleted(TInt)

void MthdTtsCompleted ( TInt aStatus ) [pure virtual]
Called by the HW device when the synthesis has been completed.
Since
2.8

Parameters

TInt aStatus Error code, KErrNone if success

MthdoConfigurationData(TUint32, TUint32, TUint32, TUint32)

HBufC8 * MthdoConfigurationData ( TUint32 aPackageType,
TUint32 aPackageID,
TUint32 aStartPosition,
TUint32 aEndPosition
) [pure virtual]
Invoked by TTS HW Device when it needs a configuration data package.
Since
2.8

Parameters

TUint32 aPackageType Type identifier.
TUint32 aPackageID Identifier of package
TUint32 aStartPosition Start index in bytes
TUint32 aEndPosition End index in bytes. If the position is bigger than the size of data package, the end part will be returned.