CASRSGrCompilerHwDevice Class Reference

class CASRSGrCompilerHwDevice : public CASRSHwDevice

Grammar compilation algortithms

asrgrcompilerhwdevice.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CASRSGrCompilerHwDevice(MASRSGrCompilerHwDeviceObserver &)

CASRSGrCompilerHwDevice(MASRSGrCompilerHwDeviceObserver &aObserver)[private]

C++ default constructor.

Parameters

MASRSGrCompilerHwDeviceObserver & aObserver

CASRSGrCompilerHwDevice(const CASRSGrCompilerHwDevice &)

CASRSGrCompilerHwDevice(const CASRSGrCompilerHwDevice &)[private]

Parameters

const CASRSGrCompilerHwDevice &

~CASRSGrCompilerHwDevice()

IMPORT_C~CASRSGrCompilerHwDevice()[virtual]

Destructor.

Member Functions Documentation

CancelCombination()

IMPORT_C voidCancelCombination()
Cancels grammar combination. No callback is sent to the client.
Since
2.8

CancelCompilation()

IMPORT_C voidCancelCompilation()
Cancels grammar compilation. No callback is sent to the client.
Since
2.8

ClearL()

IMPORT_C voidClearL()
From CASRSHwDevice Clears the device.
Since
2.8

CombineGrammarL(const RPointerArray< CSICompiledGrammar > &, const RPointerArray< TSIRuleVariantInfo > &)

IMPORT_C voidCombineGrammarL(const RPointerArray< CSICompiledGrammar > &aCompiledGrammars,
const RPointerArray< TSIRuleVariantInfo > &aExcludedRules
)
Combines several speaker independent grammars. The result is a combined grammar in internal data format. If some rules are excluded (blacklisted), then they are absent from the combined grammar, but the compiled grammars are left untouched.
Since
2.8

Parameters

const RPointerArray< CSICompiledGrammar > & aCompiledGrammarsArray of previously compiled grammar
const RPointerArray< TSIRuleVariantInfo > & aExcludedRulesRules to be blacklisted.

CompileGrammarL(CSICompiledGrammar &)

IMPORT_C voidCompileGrammarL(CSICompiledGrammar &aSICompiledGrammar)
Compiles a speaker independent grammar. Asynchronous. Callback is MghdoGrammarCompilerComplete.
Since
2.8

Parameters

CSICompiledGrammar & aSICompiledGrammarThe grammar to be compiled.

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CustomInterface(TUid)

IMPORT_C TAny *CustomInterface(TUidaInterfaceId)[virtual]
From CASRSHwDevice Retrieve a custom interface
Since
2.8

Parameters

TUid aInterfaceId- UID of the interface

InitializeL()

IMPORT_C voidInitializeL()[virtual]
From CASRSHwDevice Initializes the device. Subsequent calls reset the device.
Since
2.8

NewL(MASRSGrCompilerHwDeviceObserver &)

IMPORT_C CASRSGrCompilerHwDevice *NewL(MASRSGrCompilerHwDeviceObserver &aObserver)[static]

Two-phased constructor.

Parameters

MASRSGrCompilerHwDeviceObserver & aObserver

ResolveResult(const RArray< TUint > &, CSIResultSet &, const RPointerArray< CSICompiledGrammar > &, const TDesC8 &)

IMPORT_C voidResolveResult(const RArray< TUint > &aNBestIDs,
CSIResultSet &aSIResultSet,
const RPointerArray< CSICompiledGrammar > &aSICompiledGrammar,
const TDesC8 &aCombinedData
)const
Decodes an N-Best list from internal format into a recognition result.
Since
2.8

Parameters

const RArray< TUint > & aNBestIDs- N-Best result, as it came from the Recognition HW Device
CSIResultSet & aSIResultSet- Empty recognition result to be populated.
const RPointerArray< CSICompiledGrammar > & aSICompiledGrammar- The grammars, which were combined to get aCombinedGrammar
const TDesC8 & aCombinedData- The combined grammar, which was used in recognition

operator=(const CASRSGrCompilerHwDevice &)

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

Parameters

const CASRSGrCompilerHwDevice &

Member Data Documentation

CAsrsGrCompilerAlgorithm * iAlgorithm

CAsrsGrCompilerAlgorithm *iAlgorithm[private]

TBool iIsInitialised

TBool iIsInitialised[private]

MASRSGrCompilerHwDeviceObserver & iObserver

MASRSGrCompilerHwDeviceObserver &iObserver[private]

TAny * iReserved

TAny *iReserved[private]