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> 43 typedef struct __attribute__((packed)) {
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
61 } SpeechSynthInterface_data_t;
63 SpeechSynthInterface_data_t *data;
71 typedef struct __attribute__((packed)) {
72 int64_t timestamp_sec;
73 int64_t timestamp_usec;
79 SayMessage_data_t *data;
89 void set_text(
const char * new_text);
91 virtual Message * clone()
const;
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_final() const
Get maximum length of final value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
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.
uint32_t msgid() const
Get msgid value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
virtual Message * create_message(const char *type) const
Create message based on type name.
Fawkes library namespace.
char * text() const
Get text value.
SayMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
Base class for all Fawkes BlackBoard interfaces.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
const char * type() const
Get type of interface.
size_t maxlenof_text() const
Get maximum length of text value.
void set_text(const char *new_text)
Set text value.
bool is_final() const
Get final value.
float duration() const
Get duration value.
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.
SpeechSynthInterface Fawkes BlackBoard Interface.