CTTSAlgorithmManager Class Reference
class CTTSAlgorithmManager : public CBase |
CTTSAlgorithmManager contains implementations behind DevTTS interface. Observer callbacks from TtsHwDevice and DevTTSAudio
NssDevTts.lib
Public Member Functions |
---|
| ~CTTSAlgorithmManager() |
TTtsStyleID
| AddStyleL(const TTtsStyle &) |
TInt
| Balance() |
void | BufferProcessed(const TDesC8 &) |
TAny * | CustomInterface(TUid) |
void | DeleteStyleL(TTtsStyleID) |
void | GetPositionL(TTimeIntervalMicroSeconds &) |
void | GetPositionL(TTtsSegment &, TInt &) |
TBool
| IsLanguageSupported(TLanguage) |
void | LanguageIdentificationL(CTtsParsedText &, TInt, RArray< TLanguage > &, RArray< TInt > &) |
HBufC8 * | MathdoConfigurationData(TUint32, TUint32, TUint32, TUint32) |
void | MathdoWordListReady(const TInt) |
TInt
| MaxVolume() |
void | MdtaoBufferToBeFilled(TDes8 &, TInt) |
void | MdtaoInitializeComplete(TInt) |
void | MdtaoPlayFinished(TInt) |
HBufC8 * | MnhdoConfigurationData(TUint32, TUint32, TUint32, TUint32) |
void | MnhdoNlpCompleted(TInt) |
const TTtsStyle & | MnhdoStyleL(TTtsStyleID) |
void | MthdCustomEvent(TInt, TInt, const TDesC8 &) |
void | MthdProcessBuffer(const TDesC8 &) |
void | MthdTtsCompleted(TInt) |
HBufC8 * | MthdoConfigurationData(TUint32, TUint32, TUint32, TUint32) |
CTTSAlgorithmManager * | NewL(MDevTTSObserver &) |
void | NormalizeAndSegmentTextL(CTtsParsedText &) |
void | NormalizeTextL(CTtsParsedText &) |
TUint16
| NumberOfStyles() |
void | Pause() |
void | PrimeSynthesisL(MTtsSegmentStream &) |
void | PrimeSynthesisL(CTtsParsedText &) |
void | SetAudioOutputL(TInt) |
void | SetAudioPriority(TInt, TDevTTSAudioPreference) |
void | SetBalance(TInt) |
void | SetPositionL(const TTimeIntervalMicroSeconds &) |
void | SetPositionL(const TTtsSegment &, TInt) |
void | SetVolume(TInt) |
void | SetVolumeRamp(const TTimeIntervalMicroSeconds &) |
void | Stop() |
TTtsStyle & | StyleL(TTtsStyleID) |
TTtsStyle & | StyleL(TUint16) |
void | SynthesizeL(TDevTTSOutputMode) |
TInt
| Volume() |
Constructor & Destructor Documentation
CTTSAlgorithmManager(MDevTTSObserver &)
CTTSAlgorithmManager(const CTTSAlgorithmManager &)
~CTTSAlgorithmManager()
~CTTSAlgorithmManager | ( | ) | [virtual] |
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 &)
void | BufferProcessed | ( | const TDesC8 & | aBuffer | ) | |
Notifies that the buffer has been processed. The method is used if output mode of synthesizing is EDevTTSClientMode.
CheckStateL()
void | CheckStateL | ( | ) | [private] |
Checks if state is idle and leaves in case of error.
ConstructL()
void | ConstructL | ( | ) | [private] |
By default Symbian 2nd phase constructor is private.
CustomInterface(TUid)
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.
MathdoConfigurationData(TUint32, TUint32, TUint32, TUint32)
MathdoWordListReady(const TInt)
void | MathdoWordListReady | ( | const TInt | aError | ) | |
MaxVolume()
Returns maximum volume value.
MdtaoBufferToBeFilled(TDes8 &, TInt)
void | MdtaoBufferToBeFilled | ( | TDes8 & | aBuffer, |
| TInt | aSizeRequested |
| ) | |
From MDevTTSAudioObserver::BufferToBeFilled
MdtaoInitializeComplete(TInt)
void | MdtaoInitializeComplete | ( | TInt | aError | ) | |
From MDevTTSAudioObserver::InitializeComplete
MdtaoPlayFinished(TInt)
void | MdtaoPlayFinished | ( | TInt | aError | ) | |
From MDevTTSAudioObserver::PlayFinished
MnhdoConfigurationData(TUint32, TUint32, TUint32, TUint32)
Parameters
TUint32 aPackageType | Type identifier. |
TUint32 aPackageID | Identifier of package |
TUint32 aStartPosition | Start index in bytes |
TUint32 aEndPosition | End index in bytes. If the position is bigger than the size of data package, the end part will be returned. |
MnhdoNlpCompleted(TInt)
void | MnhdoNlpCompleted | ( | TInt | aStatus | ) | |
From MNlpHwDeviceObserver::MnhdNlpCompleted
Called by the HW device when the synthesis has been completed.
Parameters
TInt aStatus | Error code, KErrNone if success |
MnhdoStyleL(TTtsStyleID)
From MNlpHwDeviceObserver::MnhdCustomEvent
Returns style given the style id.
MthdCustomEvent(TInt, TInt, const TDesC8 &)
MthdProcessBuffer(const TDesC8 &)
void | MthdProcessBuffer | ( | const TDesC8 & | aBuffer | ) | |
MthdTtsCompleted(TInt)
void | MthdTtsCompleted | ( | TInt | aStatus | ) | |
MthdoConfigurationData(TUint32, TUint32, TUint32, TUint32)
NormalizeAndSegmentTextL(CTtsParsedText &)
Calls Natural Language Processing (NLP) to normalize and segment text.
NormalizeTextL(CTtsParsedText &)
Calls Natural Language Processing (NLP) to normalize text.
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)
void | SetAudioOutputL | ( | TInt | aAudioOutput | ) | |
Sets the audio output routing
SetAudioPriority(TInt, TDevTTSAudioPreference)
Sets the priority for audio playback if in EDevTTSSoundDeviceMode.
SetBalance(TInt)
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)
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.
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 CTTSAlgorithmManager &)
Member Enumerations Documentation
Enum TDevTTSState
Enumerators
EDevTTSNotInitialized = 0 | |
EDevTTSStopped | |
EDevTTSPrimed | |
EDevTTSSynthesizing | |
Enum TTTSAudioPlayerState
Enumerators
ETTSAudioPlayerNotInitialized = 0 | |
ETTSAudioPlayerInitializing | |
ETTSAudioPlayerIdle | |
ETTSAudioPlayerPlaying | |
ETTSAudioPlayerRecording | |
ETTSAudioPlayerPaused | |
ETTSAudioPlayerError | |
Member Data Documentation
TTTSAudioPlayerState
iAudioState
CActiveSchedulerWait
iAudioWait
TBool
iLastBufferFromTts
TBool
| iLastBufferFromTts | [private] |
TBool
iNlpInitialized
TBool
| iNlpInitialized | [private] |
MDevTTSObserver & iObserver
TPtrC8
iPlaybackBuffer
TPtrC8
| iPlaybackBuffer | [private] |
TInt
iStartPoint
TInt
| iStartPoint | [private] |
CASRSTtpHwDevice * iTtpHw
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.