CTtsHwDevice Class Reference
class CTtsHwDevice : public CASRSHwDevice
|
Class to provide speech synthesis
asrsttshwdevice.lib
-
Since
-
2.8
Constructor & Destructor Documentation
CTtsHwDevice()
CTtsHwDevice
|
(
|
)
|
[private]
|
~CTtsHwDevice()
IMPORT_C
|
~CTtsHwDevice
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddStyleL(const TTtsStyle &)
Adds new style to the collection. If equal style exists already, new style is not added.
-
Since
-
2.8
AnalyzeProsodyL(CTtsParsedText &)
Analyses stucture of text and adds style information.
-
Since
-
2.8
Parameters
CTtsParsedText
& aText
|
Updates text object by dividing it into segments with new styles.
|
AnalyzeStructureL(CTtsParsedText &)
Analyses stucture of text by finding paragraphs and sentences.
-
Since
-
2.8
Parameters
CTtsParsedText
& aText
|
Updates text object by segmenting it into paragraphs and sentences.
|
BufferProcessed(const TDesC8 &)
IMPORT_C void
|
BufferProcessed
|
(
|
const
TDesC8
&
|
aBuffer
|
)
|
|
Notifies that the buffer has been processed
-
Since
-
2.8
Parameters
const
TDesC8
& aBuffer
|
The buffer which has been processed
|
ConstructL(MTtsHwDeviceObserver &, TUint, TUint)
By default Symbian 2nd phase constructor is private.
DeleteStyleL(TTtsStyleID)
Parameters
TTtsStyleID
aStyleID
|
Identifier of style to be deleted.
|
GetPositionL(TTimeIntervalMicroSeconds &)
Gives current position of synthesizing.
-
Since
-
2.8
GetPositionL(TTtsSegment &, TInt &)
Gives current position of synthesizing.
-
Since
-
2.8
Parameters
TTtsSegment
& aSegment
|
The segment being synthesizing
|
TInt
& aWordIndex
|
The index of word being synthesizing
|
IsLanguageSupported(TLanguage)
Ask if a language is supported or not.
-
Since
-
2.8
NewL(MTtsHwDeviceObserver &, TUint, TUint)
Parameters
MTtsHwDeviceObserver
& aObserver
|
Observer which implements callback functions.
|
TUint
aSamplingRate
|
Sampling rate for output audio
|
TUint
aBufferSize
|
Buffer size for output audio
|
NumberOfStyles()
IMPORT_C
TUint16
|
NumberOfStyles
|
(
|
)
|
const
|
Gives number of styles.
-
Since
-
2.8
Pause()
Pauses synthesizing.
-
Since
-
2.8
PrimeSynthesisL(MTtsSegmentStream &)
Prepares for synthesizing.
-
Since
-
2.8
PrimeSynthesisL(CTtsParsedText &)
Prepares for synthesizing.
-
Since
-
2.8
SetPositionL(const TTimeIntervalMicroSeconds &)
Sets new position for synthesizing.
-
Since
-
2.8
SetPositionL(const TTtsSegment &, TInt)
IMPORT_C void
|
SetPositionL
|
(
|
const
TTtsSegment
&
|
aSegment,
|
|
TInt
|
aWordIndex
|
|
)
|
|
Sets new position for synthesizing.
-
Since
-
2.8
Parameters
const
TTtsSegment
& aSegment
|
The segment being synthesizing
|
TInt
aWordIndex
|
The index of word being synthesizing
|
Stop()
Stops synthesizing and releases resources of synthesizing. The method does nothing if already stopped.
-
Since
-
2.8
StyleL(TTtsStyleID)
Receives style information
-
Since
-
2.8
StyleL(TUint16)
Receives style information
-
Since
-
2.8
Parameters
TUint16
aIndex
|
Index to style: 0..NumberOfStyles()
|
SynthesizeL()
IMPORT_C void
|
SynthesizeL
|
(
|
)
|
|
Starts waveform production. The synthesized audio buffers are send back to client using MthdProcessBuffer().
-
Since
-
2.8
Member Data Documentation
CTtsAlgorithm * iAlgorithm
CTtsAlgorithm *
|
iAlgorithm
|
[private]
|
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.