CSDLexicon Class Reference

#include <mmf/common/speechrecognitiondatadevasr.h>

Link against: speechrecognitiondata.lib

class CSDLexicon : public CBase

Inherits from

  • CSDLexicon

    Detailed Description

    Class to encapsulate a Speaker Dependent Lexicon.

    Since
    8.0

    Constructor & Destructor Documentation

    ~CSDLexicon ( )

    IMPORT_C~CSDLexicon()

    Destructor.

    Member Function Documentation

    Add ( CSDPronunciation & )

    IMPORT_C TIntAdd(CSDPronunciation &aPronunciation)

    Adds a lexicon entry to the lexicon.

    Since
    8.0
    ParameterDescription
    aPronunciationA reference to a CSDPronunciation object.

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

    At ( TInt )

    IMPORT_C const CSDPronunciation &At(TIntaIndex)const

    Returns a pronunciation based at an index.

    Since
    8.0
    ParameterDescription
    aIndexThe 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.

    Returns: A reference to a CSDPronunciation object.

    Count ( )

    IMPORT_C TIntCount()const

    Returns the number of lexicon entries in the lexicon.

    Since
    8.0

    Returns: The number of pronunciations.

    FindPronunciation ( TPronunciationID )

    IMPORT_C TIntFindPronunciation(TPronunciationIDaPronunciationID)const

    Finds a pronunciation based on the specified pronunciation ID.

    ParameterDescription
    aPronunciationIDThe pronunciation identifier.

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

    LexiconID ( )

    IMPORT_C TLexiconIDLexiconID()const

    Returns the ID of the lexicon.

    Since
    8.0

    Returns: The lexicon identifier.

    NewL ( TLexiconID )

    IMPORT_C CSDLexicon *NewL(TLexiconIDaLexiconID)[static]

    Instantiates an instance of CSDLexicon.

    ParameterDescription
    aLexiconIDThe lexicon identifier.

    Returns: A pointer to a CSDLexicon object.

    NewLC ( TLexiconID )

    IMPORT_C CSDLexicon *NewLC(TLexiconIDaLexiconID)[static]

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

    ParameterDescription
    aLexiconIDThe lexicon identifier.

    Returns: A pointer to a CSDLexicon object.