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 void Clear ( ) [virtual]
From CASRSHwDevice Use to clear HW device
Since
2.8

ConstructL(MASRSRecognitionHwDeviceObserver &)

void ConstructL ( MASRSRecognitionHwDeviceObserver & aObserver ) [private]

By default Symbian 2nd phase constructor is private.

Parameters

MASRSRecognitionHwDeviceObserver & aObserver

CustomInterface(TUid)

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

Parameters

TUid aInterfaceId Identifier of the intercace implementation

GetRejection()

IMPORT_C TUint32 GetRejection ( )
Gets the rejection threshold.
Since
2.8

InitRecognizerBEL(const TDesC8 &, const CSIModelBank &)

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

Parameters

const TDesC8 & aRecognitionData A recognition data generated by grammar compilation.
const CSIModelBank & aModels A model bank containing acoustic models

InitRecognizerFEL(TBool)

IMPORT_C void InitRecognizerFEL ( TBool aSendFeatureVectors = EFalse )
This method initialize the frontend of the recognition Hwdevice
Since
2.8

Parameters

TBool aSendFeatureVectors = EFalse

InitializeL()

IMPORT_C void InitializeL ( ) [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 void SendSpeechData ( TPtrC8 & aBuffer,
TBool aEnd
)
Use to send utterance data
Since
2.8

Parameters

TPtrC8 & aBuffer Buffer containing utterance data.
TBool aEnd End of utterance data indicator. ETrue indicates end of data or no data.

SetNBest(TUint32)

IMPORT_C void SetNBest ( TUint32 aNBest )
Sets the maximum number of entries wanted in the ranked list of recognition results.
Since
2.8

Parameters

TUint32 aNBest The n-best number.

SetRejection(TUint32)

IMPORT_C void SetRejection ( TUint32 aRejection )
Sets the rejection threshold.
Since
3.2

Parameters

TUint32 aRejection Rejection threshold value.

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

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

Parameters

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

StopRecognition()

IMPORT_C void StopRecognition ( )
Stop a started recognition process.
Since
2.8

Member Data Documentation

CRecognitionAlgorithm * iRecAlgorithm

CRecognitionAlgorithm * iRecAlgorithm [private]

TAny * iReserved

TAny * iReserved [private]