Fawkes API
Fawkes Development Version
|
24 #ifndef _INTERFACES_SPEECHSYNTHINTERFACE_H_
25 #define _INTERFACES_SPEECHSYNTHINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
33 class SpeechSynthInterface :
public Interface
36 INTERFACE_MGMT_FRIENDS(SpeechSynthInterface)
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
61 } SpeechSynthInterface_data_t;
63 SpeechSynthInterface_data_t *data;
67 class SayMessage :
public Message
72 int64_t timestamp_sec;
73 int64_t timestamp_usec;
79 SayMessage_data_t *data;
89 void set_text(
const char * new_text);
102 void set_text(
const char * new_text);
104 uint32_t
msgid()
const;
105 void set_msgid(
const uint32_t new_msgid);
116 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
size_t maxlenof_text() const
Get maximum length of text value.
char * text() const
Get text value.
void set_final(const bool new_final)
Set final value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
virtual const char * enum_tostring(const char *enumtype, int val) const
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_duration() const
Get maximum length of duration value.
char * text() const
Get text value.
const char * type() const
Get type of interface.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
bool is_final() const
Get final value.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
float duration() const
Get duration value.
size_t maxlenof_text() const
Get maximum length of text value.
void set_text(const char *new_text)
Set text value.
void set_text(const char *new_text)
Set text value.
virtual Message * create_message(const char *type) const
size_t maxlenof_final() const
Get maximum length of final value.
virtual Message * clone() const
Clone this message.
uint32_t msgid() const
Get msgid value.
void set_duration(const float new_duration)
Set duration value.