Tizen Native API

The Text-to-speech (TTS) Player. More...

Inheritance diagram for Dali::TtsPlayer:
Dali::BaseHandle

Public Types

enum  Mode
 Enumeration of TTS mode. More...
enum  State
 Enumeration of TTS state. More...
typedef Signal< void(const
Dali::TtsPlayer::State, const
Dali::TtsPlayer::State) > 
StateChangedSignalType
 Type of signal emitted when the TTS state changes.

Public Member Functions

 TtsPlayer ()
 Create an uninitialized handle.
 ~TtsPlayer ()
 Destructor.
 TtsPlayer (const TtsPlayer &handle)
 This copy constructor is required for (smart) pointer semantics.
TtsPlayeroperator= (const TtsPlayer &rhs)
 This assignment operator is required for (smart) pointer semantics.
void Play (const std::string &text)
 Start playing the audio data synthesized from the specified text.
void Stop ()
 Stops playing the utterance.
void Pause ()
 Pauses the currently playing utterance.
void Resume ()
 Resumes the previously paused utterance.
State GetState ()
 Gets the current state of the player.
Dali::TtsPlayer::StateChangedSignalTypeStateChangedSignal ()
 Allows connection TTS state change signal.

Static Public Member Functions

static TtsPlayer Get (Dali::TtsPlayer::Mode mode=Dali::TtsPlayer::DEFAULT)
 Gets the singleton of the TtsPlayer for the given mode.

Detailed Description

The Text-to-speech (TTS) Player.

Since :
2.4

Member Typedef Documentation

Type of signal emitted when the TTS state changes.

Since :
2.4

Member Enumeration Documentation

Enumeration of TTS mode.

Since :
2.4
Enumerator:
DEFAULT 

Default mode for normal application.

Since :
2.4
NOTIFICATION 

Notification mode.

Since :
2.4
SCREEN_READER 

Screen reader mode.

Since :
2.4

Enumeration of TTS state.

Since :
2.4
Enumerator:
UNAVAILABLE 

Player is not available.

Since :
2.4
READY 

Player is ready to play.

Since :
2.4
PLAYING 

Player is playing.

Since :
2.4
PAUSED 

Player is paused.

Since :
2.4

Constructor & Destructor Documentation

Create an uninitialized handle.

This can be initialized by calling TtsPlayer::Get().

Since :
2.4

Destructor.

This is non-virtual since derived Handle types must not contain data or virtual methods.

Since :
2.4

This copy constructor is required for (smart) pointer semantics.

Since :
2.4
Parameters:
[in]handleA reference to the copied handle

Member Function Documentation

Gets the singleton of the TtsPlayer for the given mode.

Since :
2.4
Parameters:
modethe mode of tts-player
Returns:
A handle of the Ttsplayer for the given mode.

Gets the current state of the player.

Since :
2.4
Precondition:
The TtsPlayer needs to be initialized.
TtsPlayer& Dali::TtsPlayer::operator= ( const TtsPlayer rhs)

This assignment operator is required for (smart) pointer semantics.

Since :
2.4
Parameters:
[in]rhsA reference to the copied handle
Returns:
A reference to this

Pauses the currently playing utterance.

Since :
2.4
Precondition:
The TtsPlayer needs to be initialized.
void Dali::TtsPlayer::Play ( const std::string &  text)

Start playing the audio data synthesized from the specified text.

Since :
2.4
Parameters:
[in]textto play.
Precondition:
The TtsPlayer needs to be initialized.

Resumes the previously paused utterance.

Since :
2.4
Precondition:
The TtsPlayer needs to be initialized.

Allows connection TTS state change signal.

Since :
2.4
Returns:
A reference to the signal for connection.
Note:
Only supported by some adaptor types.

Stops playing the utterance.

Since :
2.4
Precondition:
The TtsPlayer needs to be initialized.