Tizen Native API
|
Dali::TtsPlayer Class Reference
The Text-to-speech (TTS) Player. More...
Inheritance diagram for Dali::TtsPlayer:
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. | |
TtsPlayer & | operator= (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::StateChangedSignalType & | StateChangedSignal () |
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
typedef Signal< void ( const Dali::TtsPlayer::State, const Dali::TtsPlayer::State ) > Dali::TtsPlayer::StateChangedSignalType |
Type of signal emitted when the TTS state changes.
- Since :
- 2.4
Member Enumeration Documentation
Constructor & Destructor Documentation
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
- Since :
- 2.4
Dali::TtsPlayer::TtsPlayer | ( | const TtsPlayer & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
- Since :
- 2.4
- Parameters:
-
[in] handle A reference to the copied handle
Member Function Documentation
static TtsPlayer Dali::TtsPlayer::Get | ( | Dali::TtsPlayer::Mode | mode = Dali::TtsPlayer::DEFAULT | ) | [static] |
Gets the singleton of the TtsPlayer for the given mode.
- Since :
- 2.4
- Parameters:
-
mode the 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.
This assignment operator is required for (smart) pointer semantics.
- Since :
- 2.4
- Parameters:
-
[in] rhs A reference to the copied handle
- Returns:
- A reference to this
void Dali::TtsPlayer::Pause | ( | ) |
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] text to play.
- Precondition:
- The TtsPlayer needs to be initialized.
void Dali::TtsPlayer::Resume | ( | ) |
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.
void Dali::TtsPlayer::Stop | ( | ) |