23 #ifndef _PLUGINS_FLITE_SYNTH_THREAD_H_
24 #define _PLUGINS_FLITE_SYNTH_THREAD_H_
26 #include <aspect/blackboard.h>
27 #include <aspect/blocked_timing.h>
28 #include <aspect/clock.h>
29 #include <aspect/configurable.h>
30 #include <aspect/logging.h>
31 #include <blackboard/interface_listener.h>
32 #include <core/threading/thread.h>
33 #include <flite/flite.h>
38 class SpeechSynthInterface;
55 void say(
const char *text);
69 void play_wave(cst_wave *wave);
70 float get_duration(cst_wave *wave);
75 std::string cfg_soundcard_;
void say(const char *text)
Say something.
FliteSynthThread()
Constructor.
virtual void init()
Initialize the thread.
virtual void run()
Stub to see name in backtrace for easier debugging.
virtual bool bb_interface_message_received(fawkes::Interface *interface, fawkes::Message *message) noexcept
BlackBoard message received notification.
virtual void loop()
Code to execute in the thread.
virtual void finalize()
Finalize the thread.
Thread aspect to access to BlackBoard.
BlackBoard interface listener.
Thread aspect that allows to obtain the current time from the clock.
Thread aspect to access configuration data.
Base class for all Fawkes BlackBoard interfaces.
Thread aspect to log output.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
SpeechSynthInterface Fawkes BlackBoard Interface.
Thread class encapsulation of pthreads.
Fawkes library namespace.