Class TTSPlayer
Definition
- Assembly:
- Tizen.NUI.dll
The Text-to-speech (TTS) player.
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public class TTSPlayer : BaseHandle, INotifyPropertyChanged, IDisposable
- Inheritance
- Implements
Properties
View SourceInstance
Gets the singleton of the TTSPlayer object.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public static TTSPlayer Instance { get; }
Property Value
| Type | Description |
|---|---|
| TTSPlayer |
Methods
View SourceGet()
Gets the singleton of the TTS player for the default mode.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public static TTSPlayer Get()
Returns
| Type | Description |
|---|---|
| TTSPlayer | A handle of the TTS player for the default mode. |
Get(TTSMode)
Gets the singleton of the TTS player for the given mode.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public static TTSPlayer Get(TTSPlayer.TTSMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| TTSPlayer.TTSMode | mode | The mode of TTS player. |
Returns
| Type | Description |
|---|---|
| TTSPlayer | A handle of the TTS player for the given mode. |
GetState()
Gets the current state of the player.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public TTSPlayer.TTSState GetState()
Returns
| Type | Description |
|---|---|
| TTSPlayer.TTSState | The current TTS state. |
Remarks
The TTS player needs to be initialized.
Pause()
Pauses the currently playing utterance.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public void Pause()
Remarks
The TTS player needs to be initialized.
Play(string)
Starts playing the audio data synthesized from the specified text.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public void Play(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text to play. |
Remarks
The TTS player needs to be initialized.
Resume()
Resumes the previously paused utterance.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public void Resume()
Remarks
The TTS player needs to be initialized.
Stop()
Stops playing the utterance.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public void Stop()
Remarks
The TTS player needs to be initialized.
Events
View SourceStateChanged
The StateChanged event is triggered when the state of the TTS player changes.
Declaration
[Obsolete("This has been deprecated in API14. Please use Tizen.Uix.Tts instead.")]
public event EventHandler<TTSPlayer.StateChangedEventArgs> StateChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<TTSPlayer.StateChangedEventArgs> |