epoc32/include/mmf/devasr/devasrcommon.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __DEVASRCOMMON_H__
       
    17 #define __DEVASRCOMMON_H__
       
    18 
       
    19 // TYPEDEFS
       
    20 typedef TInt TDevASRError;
       
    21 
       
    22 // CONSTANTS
       
    23 
       
    24 // Pre-defined Engine Parameter Identifiers starts from index 0x01
       
    25 // User-define Engine Parameter Identifiers starts from index 0x10000 and end at index KMaxTInt.
       
    26 
       
    27 const TInt KRejectionThreshold=0x01;
       
    28 
       
    29 // DATA TYPES
       
    30 
       
    31 /**
       
    32  * @publishedAll
       
    33  * DevASR Event codes
       
    34  *
       
    35  * @released
       
    36  */
       
    37 
       
    38 enum TDevASREvent
       
    39 	{
       
    40 	/** End of utterance event **/
       
    41 	EDevASREouDetected = 1,
       
    42 	/** Front end intialisation complete */
       
    43 	EDevASRInitFrontend,
       
    44 	/** Back end intialisation complete */
       
    45 	EDevASRInitRecognitionBackend,
       
    46 	/** Training back end intialisation complete */
       
    47 	EDevASRInitTrainBackend,
       
    48 	/** Load grammar complete */
       
    49 	EDevASRLoadGrammar,
       
    50 	/** Load lexicon complete */
       
    51 	EDevASRLoadLexicon,
       
    52 	/** Load models complete */
       
    53 	EDevASRLoadModels,
       
    54 	/** Rule unloaded from grammar */
       
    55 	EDevASRUnloadRule,
       
    56 	/** Playback complete event */
       
    57 	EDevASRPlay,
       
    58 	/** Playback started event */
       
    59 	EDevASRPlayStarted,
       
    60 	/** Recognition complete event */
       
    61 	EDevASRRecognize,
       
    62 	/** Record complete event */
       
    63 	EDevASRRecord,
       
    64 	/** Record started event */
       
    65 	EDevASRRecordStarted,
       
    66 	/** Training completed event */
       
    67 	EDevASRTrain
       
    68 	};
       
    69 
       
    70 
       
    71 /**
       
    72  * @publishedAll
       
    73  * Mode used to initialize the recognizer
       
    74  *
       
    75  * @released
       
    76  */
       
    77 
       
    78 enum TRecognizerMode
       
    79 	{
       
    80 	/** Speaker independent recognition mode */
       
    81 	ESiRecognition,
       
    82 	/** Speaker dependent recognition mode */
       
    83 	ESdRecognition,
       
    84 	/** Speaker dependent training mode */
       
    85 	ESdTraining,
       
    86 	/** Speaker independent recognition test mode */
       
    87 	ESiRecognitionTest,
       
    88 	/** Speaker dependent recognition test mode */
       
    89 	ESdRecognitionTest,
       
    90 	/** Speaker dependent training test mode */
       
    91 	ESdTrainingTest,
       
    92 	/** Speaker independent adaptation mode */
       
    93 	ESiAdaptation
       
    94 	};
       
    95 
       
    96 #endif // __DEVASRCOMMON_H__