1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mmf/devasr/devasrcommon.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,96 @@
1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// 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
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __DEVASRCOMMON_H__
1.20 +#define __DEVASRCOMMON_H__
1.21 +
1.22 +// TYPEDEFS
1.23 +typedef TInt TDevASRError;
1.24 +
1.25 +// CONSTANTS
1.26 +
1.27 +// Pre-defined Engine Parameter Identifiers starts from index 0x01
1.28 +// User-define Engine Parameter Identifiers starts from index 0x10000 and end at index KMaxTInt.
1.29 +
1.30 +const TInt KRejectionThreshold=0x01;
1.31 +
1.32 +// DATA TYPES
1.33 +
1.34 +/**
1.35 + * @publishedAll
1.36 + * DevASR Event codes
1.37 + *
1.38 + * @released
1.39 + */
1.40 +
1.41 +enum TDevASREvent
1.42 + {
1.43 + /** End of utterance event **/
1.44 + EDevASREouDetected = 1,
1.45 + /** Front end intialisation complete */
1.46 + EDevASRInitFrontend,
1.47 + /** Back end intialisation complete */
1.48 + EDevASRInitRecognitionBackend,
1.49 + /** Training back end intialisation complete */
1.50 + EDevASRInitTrainBackend,
1.51 + /** Load grammar complete */
1.52 + EDevASRLoadGrammar,
1.53 + /** Load lexicon complete */
1.54 + EDevASRLoadLexicon,
1.55 + /** Load models complete */
1.56 + EDevASRLoadModels,
1.57 + /** Rule unloaded from grammar */
1.58 + EDevASRUnloadRule,
1.59 + /** Playback complete event */
1.60 + EDevASRPlay,
1.61 + /** Playback started event */
1.62 + EDevASRPlayStarted,
1.63 + /** Recognition complete event */
1.64 + EDevASRRecognize,
1.65 + /** Record complete event */
1.66 + EDevASRRecord,
1.67 + /** Record started event */
1.68 + EDevASRRecordStarted,
1.69 + /** Training completed event */
1.70 + EDevASRTrain
1.71 + };
1.72 +
1.73 +
1.74 +/**
1.75 + * @publishedAll
1.76 + * Mode used to initialize the recognizer
1.77 + *
1.78 + * @released
1.79 + */
1.80 +
1.81 +enum TRecognizerMode
1.82 + {
1.83 + /** Speaker independent recognition mode */
1.84 + ESiRecognition,
1.85 + /** Speaker dependent recognition mode */
1.86 + ESdRecognition,
1.87 + /** Speaker dependent training mode */
1.88 + ESdTraining,
1.89 + /** Speaker independent recognition test mode */
1.90 + ESiRecognitionTest,
1.91 + /** Speaker dependent recognition test mode */
1.92 + ESdRecognitionTest,
1.93 + /** Speaker dependent training test mode */
1.94 + ESdTrainingTest,
1.95 + /** Speaker independent adaptation mode */
1.96 + ESiAdaptation
1.97 + };
1.98 +
1.99 +#endif // __DEVASRCOMMON_H__