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>
45 int64_t timestamp_sec;
46 int64_t timestamp_usec;
62 } SpeechSynthInterface_data_t;
65 SpeechSynthInterface_data_t *data;
75 int64_t timestamp_sec;
76 int64_t timestamp_usec;
83 SayMessage_data_t *data;
93 void set_text(
const char * new_text);
106 void set_text(
const char * new_text);
108 uint32_t
msgid()
const;
109 void set_msgid(
const uint32_t new_msgid);
120 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
void set_duration(const float new_duration)
Set duration value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_final(const bool new_final)
Set final value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_text() const
Get maximum length of text value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_duration() const
Get maximum length of duration value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
void set_text(const char *new_text)
Set text value.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
size_t maxlenof_text() const
Get maximum length of text value.
char * text() const
Get text value.
SayMessage Fawkes BlackBoard Interface Message.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_final() const
Get maximum length of final value.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
uint32_t msgid() const
Get msgid value.
virtual Message * clone() const
Clone this message.
bool is_final() const
Get final value.
void set_text(const char *new_text)
Set text value.
char * text() const
Get text value.
virtual Message * create_message(const char *type) const
Create message based on type name.
float duration() const
Get duration value.
const char * type() const
Get type of interface.
SpeechSynthInterface Fawkes BlackBoard Interface.