Fawkes API
Fawkes Development Version
|
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_;
Base class for all messages passed through interfaces in Fawkes BlackBoard.
virtual void run()
Stub to see name in backtrace for easier debugging.
BlackBoard interface listener.
virtual void finalize()
Finalize the thread.
virtual void init()
Initialize the thread.
Thread aspect to access to BlackBoard.
Fawkes library namespace.
Thread aspect to log output.
virtual bool bb_interface_message_received(fawkes::Interface *interface, fawkes::Message *message)
BlackBoard message received notification.
SpeechSynthInterface Fawkes BlackBoard Interface.
void say(const char *text)
Say something.
Base class for all Fawkes BlackBoard interfaces.
FliteSynthThread()
Constructor.
Thread class encapsulation of pthreads.
virtual void loop()
Code to execute in the thread.
Thread aspect to access configuration data.
Thread aspect that allows to obtain the current time from the clock.