Class TTSPlayer

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    The Text-to-speech (TTS) player.

    public class TTSPlayer : BaseHandle, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    TTSPlayer
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Properties

    View Source

    Instance

    Gets the singleton of the TTSPlayer object.

    Declaration
    public static TTSPlayer Instance { get; }
    Property Value
    Type Description
    TTSPlayer

    Methods

    View Source

    Get()

    Gets the singleton of the TTS player for the default mode.

    Declaration
    public static TTSPlayer Get()
    Returns
    Type Description
    TTSPlayer

    A handle of the TTS player for the default mode.

    View Source

    Get(TTSMode)

    Gets the singleton of the TTS player for the given mode.

    Declaration
    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.

    View Source

    GetState()

    Gets the current state of the player.

    Declaration
    public TTSPlayer.TTSState GetState()
    Returns
    Type Description
    TTSPlayer.TTSState

    The current TTS state.

    Remarks

    The TTS player needs to be initialized.

    View Source

    Pause()

    Pauses the currently playing utterance.

    Declaration
    public void Pause()
    Remarks

    The TTS player needs to be initialized.

    View Source

    Play(string)

    Starts playing the audio data synthesized from the specified text.

    Declaration
    public void Play(string text)
    Parameters
    Type Name Description
    string text

    The text to play.

    Remarks

    The TTS player needs to be initialized.

    View Source

    Resume()

    Resumes the previously paused utterance.

    Declaration
    public void Resume()
    Remarks

    The TTS player needs to be initialized.

    View Source

    Stop()

    Stops playing the utterance.

    Declaration
    public void Stop()
    Remarks

    The TTS player needs to be initialized.

    Events

    View Source

    StateChanged

    The StateChanged event is triggered when the state of the TTS player changes.

    Declaration
    public event EventHandler<TTSPlayer.StateChangedEventArgs> StateChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><TTSPlayer.StateChangedEventArgs>

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX