epoc32/include/mmf/devasr/devasrcommon.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.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__