#include <mmf/common/speechrecognitiondatadevasr.h>
Link against: speechrecognitiondata.lib
class CSDLexicon : public CBase |
Public Member Functions | |
---|---|
~CSDLexicon() | |
IMPORT_C TInt | Add(CSDPronunciation &) |
IMPORT_C const CSDPronunciation & | At(TInt) |
IMPORT_C TInt | Count() |
IMPORT_C TInt | FindPronunciation(TPronunciationID) |
IMPORT_C TLexiconID | LexiconID() |
IMPORT_C CSDLexicon * | NewL(TLexiconID) |
IMPORT_C CSDLexicon * | NewLC(TLexiconID) |
Class to encapsulate a Speaker Dependent Lexicon.
IMPORT_C TInt | Add | ( | CSDPronunciation & | aPronunciation | ) |
Adds a lexicon entry to the lexicon.
Parameters | |
---|---|
aPronunciation | A reference to a CSDPronunciation object. |
IMPORT_C const CSDPronunciation & | At | ( | TInt | aIndex | ) | const |
Returns a pronunciation based at an index.
Parameters | |
---|---|
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. |
IMPORT_C TInt | Count | ( | ) | const |
Returns the number of lexicon entries in the lexicon.
IMPORT_C TInt | FindPronunciation | ( | TPronunciationID | aPronunciationID | ) | const |
Finds a pronunciation based on the specified pronunciation ID.
Parameters | |
---|---|
aPronunciationID | The pronunciation identifier. |
IMPORT_C TLexiconID | LexiconID | ( | ) | const |
Returns the ID of the lexicon.
IMPORT_C CSDLexicon * | NewL | ( | TLexiconID | aLexiconID | ) | [static] |
Instantiates an instance of CSDLexicon.
Parameters | |
---|---|
aLexiconID | The lexicon identifier. |
IMPORT_C CSDLexicon * | NewLC | ( | TLexiconID | aLexiconID | ) | [static] |
Instantiates an instance of CSDGrammar and leaves a pointer on the cleanup stack.
Parameters | |
---|---|
aLexiconID | The lexicon identifier. |