Tizen Native API
5.0
|
The Text-to-speech (TTS) Player. More...
Public Types | |
enum | Mode |
Enumeration for the instance of TTS mode. More... | |
enum | State |
Enumeration for the instance 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 () | |
Creates 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) |
Starts 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. |
The Text-to-speech (TTS) Player.
typedef Signal< void ( const Dali::TtsPlayer::State, const Dali::TtsPlayer::State ) > Dali::TtsPlayer::StateChangedSignalType |
Type of signal emitted when the TTS state changes.
Enumeration for the instance of TTS mode.
Enumeration for the instance of TTS state.
Creates an uninitialized handle.
This can be initialized by calling TtsPlayer::Get().
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
Dali::TtsPlayer::TtsPlayer | ( | const TtsPlayer & | handle | ) |
This copy constructor is required for (smart) pointer semantics.
[in] | handle | A reference to the copied handle |
static TtsPlayer Dali::TtsPlayer::Get | ( | Dali::TtsPlayer::Mode | mode = Dali::TtsPlayer::DEFAULT | ) | [static] |
Gets the singleton of the TtsPlayer for the given mode.
mode | The mode of tts-player |
Gets the current state of the player.
This assignment operator is required for (smart) pointer semantics.
[in] | rhs | A reference to the copied handle |
void Dali::TtsPlayer::Pause | ( | ) |
Pauses the currently playing utterance.
void Dali::TtsPlayer::Play | ( | const std::string & | text | ) |
Starts playing the audio data synthesized from the specified text.
[in] | text | The text to play |
void Dali::TtsPlayer::Resume | ( | ) |
Resumes the previously paused utterance.
Allows connection TTS state change signal.
void Dali::TtsPlayer::Stop | ( | ) |
Stops playing the utterance.