Class TTSPlayer
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
The Text-to-speech (TTS) player.
C#Copypublic class TTSPlayer : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Properties
Declaration
C#Copypublic static TTSPlayer Instance { get; }
Property Value
Type | Description |
---|---|
TTSPlayer |
API Level: 5
Methods
Declaration
C#Copypublic static TTSPlayer Get()
Returns
Type | Description |
---|---|
TTSPlayer | A handle of the TTS player for the default mode. |
API Level: 3
Declaration
C#Copypublic 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. |
API Level: 3
Declaration
C#Copypublic TTSPlayer.TTSState GetState()
Returns
Type | Description |
---|---|
TTSPlayer.TTSState | The current TTS state. |
Remarks
The TTS player needs to be initialized.
API Level: 3
Declaration
C#Copypublic void Pause()
Remarks
The TTS player needs to be initialized.
API Level: 3
Declaration
C#Copypublic void Play(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to play. |
Remarks
The TTS player needs to be initialized.
API Level: 3
Declaration
C#Copypublic void Resume()
Remarks
The TTS player needs to be initialized.
API Level: 3
Declaration
C#Copypublic void Stop()
Remarks
The TTS player needs to be initialized.
API Level: 3
Events
Declaration
C#Copypublic event EventHandler<TTSPlayer.StateChangedEventArgs> StateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TTSPlayer.StateChangedEventArgs> |
API Level: 3
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable