CASRSRecognitionHwDevice Class Reference

class CASRSRecognitionHwDevice : public CASRSHwDevice

Recognition HW Device

asrsrecognitionhwdevice.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CASRSRecognitionHwDevice()

CASRSRecognitionHwDevice()[private]

C++ default constructor.

~CASRSRecognitionHwDevice()

IMPORT_C~CASRSRecognitionHwDevice()[virtual]

Destructor.

Member Functions Documentation

Clear()

IMPORT_C voidClear()[virtual]
From CASRSHwDevice Use to clear HW device
Since
2.8

ConstructL(MASRSRecognitionHwDeviceObserver &)

voidConstructL(MASRSRecognitionHwDeviceObserver &aObserver)[private]

By default Symbian 2nd phase constructor is private.

Parameters

MASRSRecognitionHwDeviceObserver & aObserver

CustomInterface(TUid)

IMPORT_C TAny *CustomInterface(TUidaInterfaceId)[virtual]
From CASRSHwDevice Use to get custom interface
Since
2.8

Parameters

TUid aInterfaceIdIdentifier of the intercace implementation

GetRejection()

IMPORT_C TUint32GetRejection()
Gets the rejection threshold.
Since
2.8

InitRecognizerBEL(const TDesC8 &, const CSIModelBank &)

IMPORT_C voidInitRecognizerBEL(const TDesC8 &aRecognitionData,
const CSIModelBank &aModels
)
This method initializes the backend of the recognition Hw device.
Since
2.8

Parameters

const TDesC8 & aRecognitionDataA recognition data generated by grammar compilation.
const CSIModelBank & aModelsA model bank containing acoustic models

InitRecognizerFEL(TBool)

IMPORT_C voidInitRecognizerFEL(TBoolaSendFeatureVectors = EFalse)
This method initialize the frontend of the recognition Hwdevice
Since
2.8

Parameters

TBool aSendFeatureVectors = EFalse

InitializeL()

IMPORT_C voidInitializeL()[virtual]
From CASRSHwDevice Use to initilize HW device
Since
2.8

NewL(MASRSRecognitionHwDeviceObserver &)

IMPORT_C CASRSRecognitionHwDevice *NewL(MASRSRecognitionHwDeviceObserver &aObserver)[static]

Two-phased constructor.

Parameters

MASRSRecognitionHwDeviceObserver & aObserver

SendSpeechData(TPtrC8 &, TBool)

IMPORT_C voidSendSpeechData(TPtrC8 &aBuffer,
TBoolaEnd
)
Use to send utterance data
Since
2.8

Parameters

TPtrC8 & aBufferBuffer containing utterance data.
TBool aEndEnd of utterance data indicator. ETrue indicates end of data or no data.

SetNBest(TUint32)

IMPORT_C voidSetNBest(TUint32aNBest)
Sets the maximum number of entries wanted in the ranked list of recognition results.
Since
2.8

Parameters

TUint32 aNBestThe n-best number.

SetRejection(TUint32)

IMPORT_C voidSetRejection(TUint32aRejection)
Sets the rejection threshold.
Since
3.2

Parameters

TUint32 aRejectionRejection threshold value.

StartRecognitionL(RArray< TUint > &, RArray< TInt > &)

IMPORT_C voidStartRecognitionL(RArray< TUint > &aNBestList,
RArray< TInt > &aScore
)
Start recognition
Since
2.8

Parameters

RArray< TUint > & aNBestListAt the end of recognition, this object will contain Nbest list IDs.
RArray< TInt > & aScoreAt the end of recognition, this object will contain scores for Nbest list.

StopRecognition()

IMPORT_C voidStopRecognition()
Stop a started recognition process.
Since
2.8

Member Data Documentation

CRecognitionAlgorithm * iRecAlgorithm

CRecognitionAlgorithm *iRecAlgorithm[private]

TAny * iReserved

TAny *iReserved[private]