CDevASR Class Reference
class CDevASR : public CBase |
Interface Class for the DevASR API.
Public Member Functions |
---|
| ~CDevASR() |
IMPORT_C void | ActivateGrammarL(TSIGrammarID) |
IMPORT_C void | AdaptL(const CSIResultSet &, TInt) |
IMPORT_C void | Cancel() |
IMPORT_C void | CompileGrammarL(CSICompiledGrammar &) |
IMPORT_C void | ComputeNewGrammarSizeL(const CSIGrammar &, const TUint32, const TUint32, const RArray< TUint > &, RArray< TUint > &, TUint32 &) |
IMPORT_C TAny * | CustomInterface(TUid) |
IMPORT_C void | DeactivateGrammarL(TSIGrammarID) |
IMPORT_C void | EndRecSession() |
IMPORT_C void | EndRecord() |
IMPORT_C void | GetEnginePropertiesL(const RArray< TInt > &, RArray< TInt > &) |
IMPORT_C void | GetUtteranceData(TDes8 *, TTimeIntervalMicroSeconds32 &) |
IMPORT_C void | InitFrontEnd(TRecognizerMode) |
IMPORT_C void | InitRecognizerBE(CSIResultSet &) |
IMPORT_C TBool | IsGrammarActive(TSIGrammarID) |
IMPORT_C TBool | IsGrammarLoaded(TSIGrammarID) |
IMPORT_C void | LoadEngineParametersL(const RArray< TInt > &, const RArray< TInt > &) |
IMPORT_C void | LoadGrammar(const CSIGrammar &) |
IMPORT_C void | LoadGrammar(const CSICompiledGrammar &) |
IMPORT_C void | LoadLexicon(const CSILexicon &) |
IMPORT_C void | LoadModels(const CSIModelBank &) |
IMPORT_C CDevASR * | NewL(MDevASRObserver &) |
IMPORT_C CDevASR * | NewLC(MDevASRObserver &) |
IMPORT_C void | PreStartSamplingL() |
IMPORT_C TBool | PruneGrammar(const CSIGrammar &, const TUint32, RArray< TSIRuleVariantInfo > &) |
IMPORT_C void | Record(TTimeIntervalMicroSeconds32) |
IMPORT_C void | SendSpeechData(TPtrC8 &, TBool) |
IMPORT_C void | SetPrioritySettings(const TMMFPrioritySettings &) |
IMPORT_C TInt | StartRecSession(TRecognizerMode) |
IMPORT_C void | StartTrainingFromTextL(CSITtpWordList &, const RArray< TLanguage > &, const RArray< TUint32 > &) |
IMPORT_C void | UnloadGrammar(const CSIGrammar &) |
IMPORT_C void | UnloadGrammar(const CSICompiledGrammar &) |
IMPORT_C void | UnloadRule(TSIGrammarID, TSIRuleID) |
Constructor & Destructor Documentation
~CDevASR()
IMPORT_C | ~CDevASR | ( | ) | [virtual] |
Member Functions Documentation
ActivateGrammarL(TSIGrammarID)
AdaptL(const CSIResultSet &, TInt)
Adapts vocabulary and models after successful recognition.
Cancel()
Cancels the current or started tasks.
- Since
- 2.8
CompileGrammarL(CSICompiledGrammar &)
ComputeNewGrammarSizeL(const CSIGrammar &, const TUint32, const TUint32, const RArray< TUint > &, RArray< TUint > &, TUint32 &)
Computes number of rule variants for grammar.
ConstructL(MDevASRObserver &)
By default Symbian 2nd phase constructor is private.
CustomInterface(TUid)
IMPORT_C TAny * | CustomInterface | ( | TUid | aInterfaceId | ) | |
Use to request a custom interface implementation from the component. through the DevASR API.
DeactivateGrammarL(TSIGrammarID)
EndRecSession()
IMPORT_C void | EndRecSession | ( | ) | |
This method is used to indicate the end of a recognition session. All loaded grammars, lexicon, and models become invalid after this call.
EndRecord()
Requests to end recording and a result will be resolved.
GetEnginePropertiesL(const RArray< TInt > &, RArray< TInt > &)
IMPORT_C void | GetEnginePropertiesL | ( | const RArray< TInt > & | aPropertyId, |
| RArray< TInt > & | aPropertyValue |
| ) | |
Retreive the properties of the underlying speech recognition engine.
GetUtteranceData(TDes8 *, TTimeIntervalMicroSeconds32 &)
Retreive the raw audio data accumulated during recording.
InitFrontEnd(TRecognizerMode)
Initializes the front-end module in the speech recognition engine. The frontend module used during training/recognition functions is started as a result. This method is intended to be used in conjunction with InitTrainBE().
InitRecognizerBE(CSIResultSet &)
Initialize the recognition engine back-end. The module responsible for recognition function is started as a result. This method must be used before any recognition operations and intended to be used in conjunction with InitFrontEnd().
IsGrammarActive(TSIGrammarID)
Checks if grammar is active or not
IsGrammarLoaded(TSIGrammarID)
Checks if grammar is loaded or not
LoadEngineParametersL(const RArray< TInt > &, const RArray< TInt > &)
IMPORT_C void | LoadEngineParametersL | ( | const RArray< TInt > & | aParameterId, |
| const RArray< TInt > & | aParameterValue |
| ) | |
Load the specified recognizer parameter(s). These parameters are used to alter the recognizer's default parameters. The parameters are specified as attribute-value pairs.
LoadGrammar(const CSIGrammar &)
IMPORT_C void | LoadGrammar | ( | const CSIGrammar & | aGrammar | ) | |
Load the specified grammar into the recognizer.
LoadGrammar(const CSICompiledGrammar &)
Load the specified grammar into the recognizer.
LoadLexicon(const CSILexicon &)
IMPORT_C void | LoadLexicon | ( | const CSILexicon & | aLexicon | ) | |
Load the specified SI lexicon into the recognizer.
LoadModels(const CSIModelBank &)
Load the specified model bank into the recognizer.
PreStartSamplingL()
IMPORT_C void | PreStartSamplingL | ( | ) | |
Starts sampling before Record call.
PruneGrammar(const CSIGrammar &, const TUint32, RArray< TSIRuleVariantInfo > &)
Determines which rule variants can be removed.
Record(TTimeIntervalMicroSeconds32)
Request to begin recognition.
SendSpeechData(TPtrC8 &, TBool)
IMPORT_C void | SendSpeechData | ( | TPtrC8 & | aBuffer, |
| TBool | aEnd |
| ) | |
Use to send the utterance data as a response to the RequestSpeechData().
SetPrioritySettings(const TMMFPrioritySettings &)
Use to set the priority of the sound device.
StartRecSession(TRecognizerMode)
This method is used to start a recognition session with the recognition engine.
StartTrainingFromTextL(CSITtpWordList &, const RArray< TLanguage > &, const RArray< TUint32 > &)
Starts training from text
UnloadGrammar(const CSIGrammar &)
IMPORT_C void | UnloadGrammar | ( | const CSIGrammar & | aGrammar | ) | |
Unloads the specified grammar from the recognizer.
UnloadGrammar(const CSICompiledGrammar &)
Unloads the specified grammar from the recognizer.
UnloadRule(TSIGrammarID, TSIRuleID)
Request to unload the specified rule in the grammar from recognizer.
Member Data Documentation
TAny * iReserved1
TAny * | iReserved1 | [private] |
TAny * iReserved2
TAny * | iReserved2 | [private] |
CSRSAlgorithmManager * iSRSAlgorithmManager
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.