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 & aObserver Reference to observer.

CASRSTtpHwDevice(const CASRSTtpHwDevice &)

CASRSTtpHwDevice ( const CASRSTtpHwDevice & ) [private]

Parameters

const CASRSTtpHwDevice &

~CASRSTtpHwDevice()

IMPORT_C ~CASRSTtpHwDevice ( ) [virtual]

Destructor.

Member Functions Documentation

CancelWordListConversion()

IMPORT_C void CancelWordListConversion ( )

Use to cancel running word list conversion.

Clear()

IMPORT_C void Clear ( ) [virtual]

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

ConfigurationData(TUint32, TUint32, TUint32, TUint32)

HBufC8 * ConfigurationData ( TUint32 aPackageType,
TUint32 aPackageID,
TUint32 aStartPosition = 0,
TUint32 aEndPosition =  KMaxTUint32
) [private, virtual]

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

Parameters

TUint32 aPackageType Type identifier.
TUint32 aPackageID Package identifier.
TUint32 aStartPosition = 0 First byte.
TUint32 aEndPosition =  KMaxTUint32 Last byte. If greater than the size of the data, rest of the data is given.

ConstructL()

void ConstructL ( ) [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 & aText Text to be converted
TLanguage & aLanguage Used language

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

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

Use to convert list of words to pronunciation sequences.

Parameters

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

CustomInterface(TUid)

IMPORT_C TAny * CustomInterface ( TUid aInterfaceId ) [virtual]

From CASRSHwDevice Custom interface

Parameters

TUid aInterfaceId ID of wanted custom interface

InitializeL()

IMPORT_C void InitializeL ( ) [virtual]

From CASRSHwDevice Initializes Hw Device.

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

IMPORT_C void LanguageIdentificationL ( const TDesC & aText,
TInt aNumberOfGuesses,
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 & aObserver Reference to callback observer.

PhonemeNotation()

IMPORT_C const TDesC & PhonemeNotation ( )

Gets the current phoneme notation indentifier.

SetPhonemeNotationL(const TDesC &)

IMPORT_C void SetPhonemeNotationL ( const TDesC & aNotation )

Sets the phoneme notation used in output.

Parameters

const TDesC & aNotation Phoneme notation identifier.

WordListReady(const TInt)

void WordListReady ( const TInt aError ) [private]

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

Parameters

const TInt aError Error 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]