CDevTTS Class Reference
class CDevTTS : public CBase |
CDevTTS is the interface towards DevTTS module. Actual implementation is not included in this class.
Constructor & Destructor Documentation
CDevTTS(const CDevTTS &)
Prohibit copy constructor
Member Functions Documentation
AddStyleL(const TTtsStyle &)
Adds a new style to the collection. If equal style exists already, new style is not added. Will leave if an error occurs. Likely errors are: KErrNoMemory, not enough memory to add new style. KErrNotSupported, the style is not supported. KErrArgument, the style contains an imposible value.
Balance()
Returns the current balance setting.
BufferProcessed(const TDesC8 &)
IMPORT_C void | BufferProcessed | ( | const TDesC8 & | aBuffer | ) | |
Notifies that the buffer has been processed. The method is used if output mode of synthesizing is EDevTTSClientMode.
ConstructL(MDevTTSObserver &)
By default Symbian 2nd phase constructor is private.
CustomInterface(TUid)
IMPORT_C TAny * | CustomInterface | ( | TUid | aInterfaceID | ) | |
Request a pointer to the custom interface. Currently not in use.
DeleteStyleL(TTtsStyleID)
GetPositionL(TTimeIntervalMicroSeconds &)
Gives current position of synthesizing. The method will leave if an error occurs. Likely errors are: KErrNotReady, no synthesizing is ongoing.
GetPositionL(TTtsSegment &, TInt &)
Gives current position of synthesizing. The method will leave if an error occurs. Likely errors are: KErrNotReady, no synthesizing is ongoing.
IsLanguageSupported(TLanguage)
Tells if language is supported by the TTS engine or not.
LanguageIdentificationL(CTtsParsedText &, TInt, RArray< TLanguage > &, RArray< TInt > &)
Calls language identification for a given text.
MaxVolume()
Returns maximum volume value.
NormalizeAndSegmentTextL(CTtsParsedText &)
Calls Natural Language Processing (NLP) to normalize and segment text.
NormalizeTextL(CTtsParsedText &)
Calls Natural Language Processing (NLP) to normalize text.
NumberOfStyles()
IMPORT_C TUint16 | NumberOfStyles | ( | ) | const |
Pause()
Pauses synthesis process.
- Since
- 2.8
PrimeSynthesisL(MTtsSegmentStream &)
Prepares for synthesis. The method will leave if an error occurs. Likely errors are: KErrInUse, synthesizing is currently ongoing. KErrNoMemory, not enough memory to start synthesis. KErrNotSupport, requested function is not supported.
PrimeSynthesisL(CTtsParsedText &)
Prepares for synthesis. The method will leave if an error occurs. Likely errors are: KErrInUse, synthesizing is currently ongoing. KErrNoMemory, not enough memory to start synthesis. KErrNotSupport, requested function is not supported.
SetAudioOutputL(TInt)
IMPORT_C void | SetAudioOutputL | ( | TInt | aAudioOutput | ) | |
Sets the audio output routing
SetAudioPriority(TInt, TDevTTSAudioPreference)
Sets the priority for audio playback if in EDevTTSSoundDeviceMode.
SetBalance(TInt)
IMPORT_C void | SetBalance | ( | TInt | aBalance | ) | |
Sets the playback device balance. Affects only when DevTTS is in EDevTTSSoundDeviceMode. Illegal values are neglected.
SetPositionL(const TTimeIntervalMicroSeconds &)
Sets new position for synthesizing. The method will leave if an error occurs. Likely errors are: KErrNotReady, no synthesizing is ongoing. KErrArgument, position cannot be set.
SetPositionL(const TTtsSegment &, TInt)
Sets new position for synthesizing. The method will leave if an error occurs. Likely errors are: KErrNotReady, no synthesizing is ongoing. KErrArgument, position cannot be set.
SetVolume(TInt)
IMPORT_C void | SetVolume | ( | TInt | aVolume | ) | |
Sets the playback device volume. Affects only when DevTTS is in EDevTTSSoundDeviceMode. Range is from 0..MaxVolume(). Illegal values are neglected.
SetVolumeRamp(const TTimeIntervalMicroSeconds &)
Sets the volume ramp duration. Start and end volumes must be set with SetVolume() function.
Stop()
Stops synthesizing and releases resources of synthesizing. The method does nothing if already stopped.
- Since
- 2.8
StyleL(TTtsStyleID)
Receives style information. The method will leave if an error occurs. Likely errors are: KErrNotFound, style identifier not found.
StyleL(TUint16)
Receives style information. The method will leave if an error occurs. Likely errors are: KErrArgument, index is out of bounds.
SynthesizeL(TDevTTSOutputMode)
Starts synthesizing the text. The method is asynchronous, as soon as the request has been placed, function call will return. MDevTTSObserver::MdtoEvent will be called when synthesizing finishes. The method will leave if an error occurs. Likely errors are: KErrNoMemory, not enough memory. KErrInUse, synthesizing is currently ongoing
Volume()
Returns current playback volume.
operator=(const CDevTTS &)
Prohibit assignment operator
Member Data Documentation
CTTSAlgorithmManager * iImpl
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.