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