Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __SPEECHRECOGNITIONCUSTOMCOMMANDIMPLEMENTOR_H__
17 #define __SPEECHRECOGNITIONCUSTOMCOMMANDIMPLEMENTOR_H__
21 #include <mmf/common/speechrecognitiondataclient.h>
29 This is the main class of Speech Recognition Custom Commands Implementor.
34 class MSpeechRecognitionCustomCommandImplementor
38 Adds a new pronunciation for the given model into the specified
42 The lexicon ID to where the new pronunciation is added.
47 @param aPronunciationID
48 A reference to where a new pronunciation ID is assigned.
52 virtual void MSrAddPronunciationL( TLexiconID aLexiconID,
53 TModelBankID aModelBankID, TModelID aModelID,
54 TPronunciationID& aPronunciationID ) = 0;
57 Adds a new rule for the given pronunciation into the specified
61 The grammar ID, where the new rule is added to
64 @param aPronunciationID
67 A reference where a new rule ID is assigned to.
71 virtual void MSrAddRuleL( TGrammarID aGrammarID, TLexiconID aLexiconID,
72 TPronunciationID aPronunciationID,
73 TRuleID& aRuleID ) = 0;
76 Cancels the current operation.
80 virtual void MSrCancel() = 0;
83 Commit uncommited changes to the database.
87 virtual void MSrCommitChangesL() = 0;
90 Creates a new grammar.
93 A reference where the grammar ID is stored.
97 virtual void MSrCreateGrammarL( TGrammarID& aGrammarID ) = 0;
100 Creates a new lexicon.
103 A reference where the lexicon ID is stored.
107 virtual void MSrCreateLexiconL( TLexiconID& aLexiconID ) = 0;
110 Creates a new model bank.
113 A reference to where a new model bank ID is assigned.
117 virtual void MSrCreateModelBankL( TModelBankID& aModelBankID ) = 0;
120 Ends the current recognition session. Resources allocated
121 for recognition are freed.
125 virtual void MSrEndRecSessionL() = 0;
128 Returns all grammar IDs that are owned by the client.
131 A reference where grammar IDs are stored.
135 virtual void MSrGetAllClientGrammarIDsL(RArray<TGrammarID>& aGrammarIDs ) = 0;
138 Returns all lexicon IDs that are owned by the client.
141 A reference where the lexicon IDs are stored.
145 virtual void MSrGetAllClientLexiconIDsL(RArray<TLexiconID>& aLexiconIDs ) = 0;
147 Returns all modelbank IDs that are owned by the client.
150 A reference where model bank IDs are stored.
154 virtual void MSrGetAllClientModelBankIDsL(RArray<TModelBankID>& aModelBankIDs ) = 0;
157 Returns all grammar IDs.
160 A reference where grammar IDs are stored.
162 virtual void MSrGetAllGrammarIDsL(RArray<TGrammarID>& aGrammarIDs ) = 0;
165 Returns all lexicon IDs.
168 A reference where lexicon IDs are stored.
170 virtual void MSrGetAllLexiconIDsL(RArray<TLexiconID>& aLexiconIDs ) = 0;
173 Returns all modelbank IDs.
176 A reference where the model bank IDs are stored.
180 virtual void MSrGetAllModelBankIDsL(RArray<TModelBankID>& aModelBankIDs ) = 0;
183 Returns all model IDs that exist in the specified model bank.
188 A reference where model IDs are stored.
192 virtual void MSrGetAllModelIDsL( TModelBankID aModelBankID,
193 RArray<TModelID>& aModelIDs ) = 0;
196 Returns all pronunciation IDs that exist in the specified lexicon.
200 @param aPronunciationIDs
201 A reference where pronunciation IDs are stored.
205 virtual void MSrGetAllPronunciationIDsL( TLexiconID aLexiconID,
206 RArray<TPronunciationID>& aPronunciationIDs ) = 0;
209 Returns all rule IDs that exist in the specified grammar.
214 A reference where rule IDs are stored.
218 virtual void MSrGetAllRuleIDsL( TGrammarID aGrammarID,
219 RArray<TRuleID>& aRuleIDs ) = 0;
222 Returns the number of models available for training system wide,
223 based on available disk space.
227 A reference where the number of available models is set.
231 virtual void MSrGetAvailableStorageL( TInt& aCount ) = 0;
234 Returns the engine properties specified by the engine property
237 On return aPropertyValue contains an array of engine properties.
240 A constant reference to an array of engine property IDs.
241 @param aPropertyValue
242 A reference to an array of engine property values.
246 virtual void MSrGetEnginePropertiesL( const RArray<TInt>& aPropertyId,
247 RArray<TInt>& aPropertyValue ) = 0;
250 Returns the number of models in the specified model bank.
255 A reference where the number of models is set.
259 virtual void MSrGetModelCountL( TModelBankID aModelBankID, TInt& aCount ) = 0;
262 Checks if the rule is valid or not.
269 A reference where the validity of the rule is set.
273 virtual void MSrGetRuleValidityL( TGrammarID aGrammarID,
274 TRuleID aRuleID, TBool& aValid ) = 0;
277 Returns the duration of the utterance for the specified model.
284 A reference where the duration of utterance is set.
288 virtual void MSrGetUtteranceDurationL( TModelBankID aModelBankID,
290 TTimeIntervalMicroSeconds32& aDuration) = 0;
292 Loads the specified grammar in into the recognizer; done prior to recognition.
299 virtual void MSrLoadGrammarL( TGrammarID aGrammarID ) = 0;
302 Loads the specified lexicon into the recognizer; done prior to recognition.
309 virtual void MSrLoadLexiconL( TLexiconID aLexiconID ) = 0;
312 Loads the specified model bank into the recognizer; done prior to recognition.
319 virtual void MSrLoadModelsL( TModelBankID aModelBankID ) = 0;
322 Plays the previously trained utterance.
327 The model ID, whose utterance is played.
331 virtual void MSrPlayUtteranceL( TModelBankID aModelBankID,
332 TModelID aModelID ) = 0;
335 Initiates recognition; performed following loading of model bank, lexicon, and grammar.
338 A reference where the recognition result is set.
342 virtual void MSrRecognizeL( CSDClientResultSet& aResultSet ) = 0;
345 Records user utterance for training and recognition.
348 A recording time in microseconds.
352 virtual void MSrRecordL( TTimeIntervalMicroSeconds32 aRecordTime ) = 0;
355 Removes the specified grammar from the permanent storage.
357 Removing a grammar will remove all rules within the grammar.
364 virtual void MSrRemoveGrammarL( TGrammarID aGrammarID ) = 0;
367 Removes the specified lexicon from the permanent storage.
369 Removing a lexicon will remove all pronunciations within the lexicon.
376 virtual void MSrRemoveLexiconL( TLexiconID aLexiconID ) = 0;
379 Removes the specified model bank from the permanent storage.
381 Removing a model bank will remove all models within the model bank.
388 virtual void MSrRemoveModelBankL( TModelBankID aModelBankID ) = 0;
391 Removes the specified model from the specified model bank
401 virtual void MSrRemoveModelL( TModelBankID aModelBankID,
402 TModelID aModelID ) = 0;
405 Removes the specified pronunciation from the specified lexicon permanently.
409 @param aPronunciationID
410 The pronunciation ID.
414 virtual void MSrRemovePronunciationL( TLexiconID aLexiconID,
415 TPronunciationID aPronunciationID ) = 0;
418 Removes the specified rule from the specified grammar permanently.
427 virtual void MSrRemoveRuleL( TGrammarID aGrammarID,
428 TRuleID aRuleID ) = 0;
431 Sets the specified grammar client UID.
433 @param aClientUid The client UID.
435 virtual void MSrSetClientUid(TUid aClientUid) = 0;
438 Starts a new recognition session.
441 The recognition mode.
445 virtual void MSrStartRecSessionL( TRecognitionMode aMode ) = 0;
448 Trains a new model into the specified model bank.
453 A reference to where the new model ID is assigned.
457 virtual void MSrTrainL( TModelBankID aModelBankID,
458 TModelID& aModelID ) = 0;
461 Unloads the specified rule from the specified grammar in temporary
462 memory, previously loaded with LoadGrammarL().
464 The rule in the permanent storage remains intact.
473 virtual void MSrUnloadRuleL( TGrammarID aGrammarID,
474 TRuleID aRuleID ) = 0;
477 Unloads the specified parameters to the engine.
480 An array of parameter IDs.
481 @param aParameterValue
482 An array of parameter values.
486 virtual void MSrLoadEngineParametersL(
487 const RArray<TInt>& aParameterId,
488 const RArray<TInt>& aParameterValue ) = 0;
492 #endif // __SPEECHRECOGNITIONCUSTOMCOMMANDIMPLEMENTOR_H__