Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <SpeechRecognitionDataDevASR.h>
Link against: speechrecognitiondata.lib
This item is not part of the S60 5th Edition SDK

Class CSDLexicon

class CSDLexicon : public CBase;

Description

Class to encapsulate a Speaker Dependent Lexicon.

Derivation

Members

Defined in CSDLexicon:

Inherited from CBase:


Construction and destruction


~CSDLexicon()

IMPORT_C ~CSDLexicon();

Description

Destructor.


NewL(TLexiconID)

IMPORT_C static CSDLexicon* NewL(TLexiconID aLexiconID);

Description

Instantiates an instance of CSDLexicon.

Parameters

TLexiconID aLexiconID

The lexicon identifier.

Return value

CSDLexicon *

A pointer to a CSDLexicon object.


NewLC(TLexiconID)

IMPORT_C static CSDLexicon* NewLC(TLexiconID aLexiconID);

Description

Instantiates an instance of CSDGrammar and leaves a pointer on the cleanup stack.

Parameters

TLexiconID aLexiconID

The lexicon identifier.

Return value

CSDLexicon *

A pointer to a CSDLexicon object.

[Top]


Member functions


LexiconID()const

IMPORT_C TLexiconID LexiconID() const;

Description

Returns the ID of the lexicon.

Return value

TLexiconID

The lexicon identifier.


Add(CSDPronunciation &)

IMPORT_C TInt Add(CSDPronunciation &aPronunciation);

Description

Adds a lexicon entry to the lexicon.

Parameters

CSDPronunciation &aPronunciation

A reference to a CSDPronunciation object.

Return value

TInt

An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.


At(TInt)const

IMPORT_C const CSDPronunciation& At(TInt aIndex) const;

Description

Returns a pronunciation based at an index.

Parameters

TInt aIndex

The pronunciation index. This value must not be negative and must not be greater than the number of pronunciations currently in the lexicon, otherwise the function will panic.

Return value

const CSDPronunciation &

A reference to a CSDPronunciation object.


FindPronunciation(TPronunciationID)const

IMPORT_C TInt FindPronunciation(TPronunciationID aPronunciationID) const;

Description

Finds a pronunciation based on the specified pronunciation ID.

Parameters

TPronunciationID aPronunciationID

The pronunciation identifier.

Return value

TInt

The index of the first matching pronunciation within the lexicon. Returns KErrNotFound, if a matching pronunciation can not be found.


Count()const

IMPORT_C TInt Count() const;

Description

Returns the number of lexicon entries in the lexicon.

Return value

TInt

The number of pronunciations.