epoc32/include/mmf/devasr/devasrcommon.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files

// 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__