24 #include <interfaces/SpeechSynthInterface.h>
26 #include <core/exceptions/software.h>
47 SpeechSynthInterface::SpeechSynthInterface() : Interface()
49 data_size =
sizeof(SpeechSynthInterface_data_t);
51 data = (SpeechSynthInterface_data_t *)
data_ptr;
59 unsigned char tmp_hash[] = {0x28, 0x11, 0x46, 0x87, 0xb1, 0x65, 0x92, 0x96, 0xe6, 0x6e, 0x18, 0x8a, 0xdc, 0x8, 0xb0, 0x69};
64 SpeechSynthInterface::~SpeechSynthInterface()
100 strncpy(data->text, new_text,
sizeof(data->text));
137 data->msgid = new_msgid;
172 data->final = new_final;
187 return data->duration;
211 data->duration = new_duration;
219 if ( strncmp(
"SayMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
223 "message type for this interface type.", type);
239 memcpy(data, oi->data,
sizeof(SpeechSynthInterface_data_t));
264 data = (SayMessage_data_t *)
data_ptr;
266 strncpy(data->text, ini_text, 1024);
275 data = (SayMessage_data_t *)
data_ptr;
294 data = (SayMessage_data_t *)
data_ptr;
330 strncpy(data->text, new_text,
sizeof(data->text));