diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/mmf/devasr/devasrcommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/mmf/devasr/devasrcommon.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,96 @@ +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// 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 +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __DEVASRCOMMON_H__ +#define __DEVASRCOMMON_H__ + +// TYPEDEFS +typedef TInt TDevASRError; + +// CONSTANTS + +// Pre-defined Engine Parameter Identifiers starts from index 0x01 +// User-define Engine Parameter Identifiers starts from index 0x10000 and end at index KMaxTInt. + +const TInt KRejectionThreshold=0x01; + +// DATA TYPES + +/** + * @publishedAll + * DevASR Event codes + * + * @released + */ + +enum TDevASREvent + { + /** End of utterance event **/ + EDevASREouDetected = 1, + /** Front end intialisation complete */ + EDevASRInitFrontend, + /** Back end intialisation complete */ + EDevASRInitRecognitionBackend, + /** Training back end intialisation complete */ + EDevASRInitTrainBackend, + /** Load grammar complete */ + EDevASRLoadGrammar, + /** Load lexicon complete */ + EDevASRLoadLexicon, + /** Load models complete */ + EDevASRLoadModels, + /** Rule unloaded from grammar */ + EDevASRUnloadRule, + /** Playback complete event */ + EDevASRPlay, + /** Playback started event */ + EDevASRPlayStarted, + /** Recognition complete event */ + EDevASRRecognize, + /** Record complete event */ + EDevASRRecord, + /** Record started event */ + EDevASRRecordStarted, + /** Training completed event */ + EDevASRTrain + }; + + +/** + * @publishedAll + * Mode used to initialize the recognizer + * + * @released + */ + +enum TRecognizerMode + { + /** Speaker independent recognition mode */ + ESiRecognition, + /** Speaker dependent recognition mode */ + ESdRecognition, + /** Speaker dependent training mode */ + ESdTraining, + /** Speaker independent recognition test mode */ + ESiRecognitionTest, + /** Speaker dependent recognition test mode */ + ESdRecognitionTest, + /** Speaker dependent training test mode */ + ESdTrainingTest, + /** Speaker independent adaptation mode */ + ESiAdaptation + }; + +#endif // __DEVASRCOMMON_H__