CASRSTtpHwDevice Class Reference

class CASRSTtpHwDevice : public CASRSHwDevice

TTP HW Device interface.

asrsttphwdevice.lib

Inherits from

Constructor & Destructor Documentation

CASRSTtpHwDevice(MASRSTtpHwDeviceObserver &)

CASRSTtpHwDevice(MASRSTtpHwDeviceObserver &aObserver)[private]

C++ default constructor.

Parameters

MASRSTtpHwDeviceObserver & aObserverReference to observer.

CASRSTtpHwDevice(const CASRSTtpHwDevice &)

CASRSTtpHwDevice(const CASRSTtpHwDevice &)[private]

Parameters

const CASRSTtpHwDevice &

~CASRSTtpHwDevice()

IMPORT_C~CASRSTtpHwDevice()[virtual]

Destructor.

Member Functions Documentation

CancelWordListConversion()

IMPORT_C voidCancelWordListConversion()

Use to cancel running word list conversion.

Clear()

IMPORT_C voidClear()[virtual]

From CASRSHwDevice Clears Hw Device, counter part for InitializeL()

ConfigurationData(TUint32, TUint32, TUint32, TUint32)

HBufC8 *ConfigurationData(TUint32aPackageType,
TUint32aPackageID,
TUint32aStartPosition = 0,
TUint32aEndPosition =  KMaxTUint32
)[private, virtual]

Function to notify that configuration data is needed. Called by CTtpCallback.

Parameters

TUint32 aPackageTypeType identifier.
TUint32 aPackageIDPackage identifier.
TUint32 aStartPosition = 0First byte.
TUint32 aEndPosition =  KMaxTUint32 Last byte. If greater than the size of the data, rest of the data is given.

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

ConvertTextL(const TDesC &, TLanguage &)

IMPORT_C HBufC8 *ConvertTextL(const TDesC &aText,
TLanguage &aLanguage
)

Use to convert text to phonemes.

Parameters

const TDesC & aTextText to be converted
TLanguage & aLanguageUsed language

ConvertWordListL(CSITtpWordList &, const RArray< TLanguage >, const RArray< TUint32 >)

IMPORT_C voidConvertWordListL(CSITtpWordList &aWordList,
const RArray< TLanguage >aDefaultLanguage,
const RArray< TUint32 >aMaxNPronunsForWord
)

Use to convert list of words to pronunciation sequences.

Parameters

CSITtpWordList & aWordListInitialized word list to where pronunciations will be added. Client will keep the ownership of CSITtpWordList also after this call.
const RArray< TLanguage > aDefaultLanguageLanguage which overrides the first identified language. Iflanguage is ELangOther, language identification will be used.
const RArray< TUint32 > aMaxNPronunsForWordMaximum number of pronunciations (languages) for each word.

CustomInterface(TUid)

IMPORT_C TAny *CustomInterface(TUidaInterfaceId)[virtual]

From CASRSHwDevice Custom interface

Parameters

TUid aInterfaceIdID of wanted custom interface

InitializeL()

IMPORT_C voidInitializeL()[virtual]

From CASRSHwDevice Initializes Hw Device.

LanguageIdentificationL(const TDesC &, TInt, RArray< TLanguage > &, RArray< TInt > &)

IMPORT_C voidLanguageIdentificationL(const TDesC &aText,
TIntaNumberOfGuesses,
RArray< TLanguage > &aLanguages,
RArray< TInt > &aScores
)

Tries to identify the language of given text

Parameters

const TDesC & aText
TInt aNumberOfGuesses
RArray< TLanguage > & aLanguages
RArray< TInt > & aScores

NewL(MASRSTtpHwDeviceObserver &)

IMPORT_C CASRSTtpHwDevice *NewL(MASRSTtpHwDeviceObserver &aObserver)[static]

Two-phased constructor.

Parameters

MASRSTtpHwDeviceObserver & aObserverReference to callback observer.

PhonemeNotation()

IMPORT_C const TDesC &PhonemeNotation()

Gets the current phoneme notation indentifier.

SetPhonemeNotationL(const TDesC &)

IMPORT_C voidSetPhonemeNotationL(const TDesC &aNotation)

Sets the phoneme notation used in output.

Parameters

const TDesC & aNotationPhoneme notation identifier.

WordListReady(const TInt)

voidWordListReady(const TIntaError)[private]

Function to notify that word list is converted Called by CTtpCallback.

Parameters

const TInt aErrorError code

operator=(const CASRSTtpHwDevice &)

CASRSTtpHwDevice &operator=(const CASRSTtpHwDevice &)[private]

Parameters

const CASRSTtpHwDevice &

Member Data Documentation

MASRSTtpHwDeviceObserver & iObserver

MASRSTtpHwDeviceObserver &iObserver[private]

TAny * iReserved

TAny *iReserved[private]

CTtpCallback * iTTPAlgObserver

CTtpCallback *iTTPAlgObserver[private]

CTTPAlgorithm * iTTPAlgorithm

CTTPAlgorithm *iTTPAlgorithm[private]