speechsrv_plat/nss_devasr_api/inc/nssdevasrcommon.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Common definitions used by the DevASR module.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NSSDEVASRCOMMON_H
       
    20 #define NSSDEVASRCOMMON_H
       
    21 
       
    22 // TYPEDEFS
       
    23 typedef TInt TDevASRError;
       
    24 
       
    25 // CONSTANTS
       
    26 // Pre-defined Engine Parameter Identifiers starts from index 0x01
       
    27 // User-define Engine Parameter Identifiers starts from index 0x10000 and end at index KMaxTInt.
       
    28 
       
    29 // Property identifiers
       
    30 // Flag to tell if DevASR should call FeatureVectorDataRcvd callback or not
       
    31 const TInt KDevASRSendFeatures = 0x1F000;
       
    32 // Flag to tell if result set should contain adaptation data or not
       
    33 const TInt KDevASRAdaptation = 0x1F001;
       
    34 
       
    35 // DATA TYPES
       
    36 
       
    37 /**
       
    38 * DevASR Event codes
       
    39 */
       
    40 enum TDevASREvent
       
    41 	{
       
    42     EDevASREouDetected = 1,
       
    43     EDevASRInitFrontend,
       
    44     EDevASRInitRecognitionBackend,
       
    45     EDevASRInitTrainBackend,
       
    46     EDevASRLoadGrammar,
       
    47     EDevASRLoadLexicon,
       
    48     EDevASRLoadModels,
       
    49     EDevASRUnloadRule,
       
    50     EDevASRPlay,
       
    51     EDevASRPlayStarted,
       
    52     EDevASRRecognize,
       
    53     EDevASRRecord,
       
    54     EDevASRRecordStarted,
       
    55     EDevASRTrain,
       
    56     EDevASRTrainFromText,
       
    57     EDevASRActivateGrammar,
       
    58     EDevASRDeactivateGrammar,
       
    59     EDevASRAdapt,
       
    60     EDevASRGrammarCompile,
       
    61     EDevASRUnloadGrammar
       
    62 	};
       
    63 
       
    64 /**
       
    65 * Mode used to initialize the recognizer
       
    66 */
       
    67 enum TRecognizerMode
       
    68 	{
       
    69 	ESiRecognition,
       
    70 	ESdRecognition,
       
    71 	ESdTraining,
       
    72 	ESiRecognitionTest,
       
    73 	ESdRecognitionTest,
       
    74 	ESdTrainingTest,
       
    75 	ESiRecognitionSpeechInput,
       
    76     ESdRecognitionSpeechInput,
       
    77     ESdTrainingSpeechInput,
       
    78     ESiRecognitionTestSpeechInput,
       
    79     ESdRecognitionTestSpeechInput,
       
    80     ESdTrainingTestSpeechInput,
       
    81 	};
       
    82 
       
    83 #endif // NSSDEVASRCOMMON_H