NUGU SDK Linux
1.7.6
|
ttsplayer interface More...
#include <media_player_interface.hh>
Public Member Functions | |
virtual bool | writeAudio (const char *data, int size)=0 |
Write audio samples to the tts player. The player decodes it using opus. More... | |
virtual void | writeDone ()=0 |
Notify to write done to the tts player. | |
Public Member Functions inherited from NuguClientKit::IMediaPlayer | |
virtual void | addListener (IMediaPlayerListener *listener)=0 |
Add the Listener object. More... | |
virtual int | duration ()=0 |
Get duration information of the media content from the media player. More... | |
virtual bool | isPlaying ()=0 |
Check whether the media player is playing media content. More... | |
virtual bool | loop ()=0 |
Get loop information of the media content from the media player. More... | |
virtual bool | mute ()=0 |
Get mute information of the media content from the media player. More... | |
virtual bool | pause ()=0 |
Request media player to pause the media content. | |
virtual bool | play ()=0 |
Request media player to play the media content. | |
virtual int | position ()=0 |
Get current position information of the media content from the media player. More... | |
virtual void | removeListener (IMediaPlayerListener *listener)=0 |
Remove the Listener object. More... | |
virtual bool | resume ()=0 |
Request media player to resume the media content. | |
virtual bool | seek (int sec)=0 |
Request the media player to move the current content section. More... | |
virtual void | setAudioAttribute (NuguAudioAttribute attr)=0 |
Sets the audio attribute in the media player. More... | |
virtual bool | setDuration (int duration)=0 |
Set duration of the media content to the media player. More... | |
virtual void | setLoop (bool loop)=0 |
Set loop of the media content to the media player. More... | |
virtual bool | setMute (bool mute)=0 |
Set mute of the media content to the media player. More... | |
virtual bool | setPosition (int position)=0 |
Set current position of the media content to the media player. More... | |
virtual bool | setSource (const std::string &url)=0 |
Sets the playurl of the media content to play in the media player. More... | |
virtual bool | setState (MediaPlayerState state)=0 |
Set state of the media player. More... | |
virtual bool | setVolume (int volume)=0 |
Set volume of the media content to the media player. More... | |
virtual MediaPlayerState | state ()=0 |
Get state of the media player. More... | |
virtual std::string | stateString (MediaPlayerState state)=0 |
Get state name of the media player. More... | |
virtual bool | stop ()=0 |
Request media player to stop the media content. | |
virtual std::string | url ()=0 |
Get url of media content from the media player. More... | |
virtual int | volume ()=0 |
Get volume information of the media content from the media player. More... | |
ttsplayer interface
|
pure virtual |
Write audio samples to the tts player. The player decodes it using opus.
[in] | data | raw audio data |
[in] | size | data size |