17 #ifndef __NUGU_TTS_INTERFACE_H__
18 #define __NUGU_TTS_INTERFACE_H__
23 namespace NuguCapability {
25 using namespace NuguClientKit;
38 #define NUGU_TTS_ENGINE "skt"
77 virtual void onTTSText(
const std::string& text,
const std::string& dialog_id) = 0;
117 virtual std::string
requestTTS(
const std::string& text,
const std::string& play_service_id,
const std::string& referrer_id =
"") = 0;
tts handler interface
Definition: tts_interface.hh:90
virtual void setAttribute(TTSAttribute &&attribute)=0
Set attribute about speech synthesizer.
virtual bool setMute(bool mute)=0
set pcm player's mute
virtual bool setVolume(int volume)=0
set pcm player's volume
virtual void removeListener(ITTSListener *listener)=0
Remove the ITTSListener object.
virtual std::string getPlayServiceId()=0
Get current play service id.
virtual void addListener(ITTSListener *listener)=0
Add the ITTSListener object.
virtual std::string requestTTS(const std::string &text, const std::string &play_service_id, const std::string &referrer_id="")=0
request the sentence to speech.
virtual void stopTTS()=0
Stop currently speech.
tts listener interface
Definition: tts_interface.hh:60
virtual void onTTSText(const std::string &text, const std::string &dialog_id)=0
Report the speech sentence to the User.
virtual void onTTSCancel(const std::string &dialog_id)=0
Report canceled the text speech to the User.
virtual void onTTSState(TTSState state, const std::string &dialog_id)=0
Report changes in the speech state to the user.
capability interface
Definition: capability_interface.hh:82
capability listener interface
Definition: capability_interface.hh:60
struct NuguCapability::_TTSAttribute TTSAttribute
Attributes for setting TTS options.
TTSState
TTSState.
Definition: tts_interface.hh:43
Attributes for setting TTS options.
Definition: tts_interface.hh:52
std::string tts_engine
Definition: tts_interface.hh:53