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 &)
CDevTTS
|
(
|
const
CDevTTS
&
|
|
)
|
[private]
|
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()
IMPORT_C
TInt
|
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 &)
IMPORT_C void
|
GetPositionL
|
(
|
TTtsSegment
&
|
aSegment,
|
|
TInt
&
|
aWordIndex
|
|
)
|
const
|
Gives current position of synthesizing. The method will leave if an error occurs. Likely errors are: KErrNotReady, no synthesizing is ongoing.
IsLanguageSupported(TLanguage)
IMPORT_C
TBool
|
IsLanguageSupported
|
(
|
TLanguage
|
aLanguage
|
)
|
const
|
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()
IMPORT_C
TInt
|
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)
IMPORT_C void
|
SetAudioPriority
|
(
|
TInt
|
aPriority,
|
|
TDevTTSAudioPreference
|
aPref
|
|
)
|
|
Sets the priority for audio playback if in EDevTTSSoundDeviceMode.
Parameters
TInt
aPriority
|
|
TDevTTSAudioPreference
aPref
|
|
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)
IMPORT_C void
|
SetPositionL
|
(
|
const
TTtsSegment
&
|
aSegment,
|
|
TInt
|
aWordIndex
|
|
)
|
|
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)
IMPORT_C void
|
SynthesizeL
|
(
|
TDevTTSOutputMode
|
aOutputMode
|
)
|
|
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
Parameters
TDevTTSOutputMode
aOutputMode
|
|
Volume()
Returns current playback volume.
operator=(const CDevTTS &)
Prohibit assignment operator
Member Data Documentation
CTTSAlgorithmManager * iImpl
TAny * iReserved
TAny
*
|
iReserved
|
[private]
|
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.