Provides text-to-speech sythesis via Festival. More...
#include <FestivalSynthesizer.h>
Public Member Functions | |
void | callbackSynth (const std_msgs::String::ConstPtr &msg) |
FestivalSynthesizer () | |
void | run () |
~FestivalSynthesizer () | |
Private Member Functions | |
std::string | clearSmileys (std::string text) |
void | initFestival () |
std::string | prepareText (std::string text) |
void | synthSpeech (std::string text) |
Synthesize speech for given text. | |
std::string | trimSpaces (std::string text) |
Private Attributes | |
bool | festival_initialized_ |
pa_simple * | pa_simple_ |
std::vector< std::string > | punctuation_characters_ |
std::vector< std::string > | smileys_ |
ros::Subscriber | subscriber_ |
bool | synth_speech_ |
ros::Publisher | talking_finished_publisher_ |
Define your custom ROS subscribers, callbacks and publishers here. | |
std::string | text_for_synth_ |
Provides text-to-speech sythesis via Festival.
Definition at line 45 of file FestivalSynthesizer.h.
Constructor
Definition at line 31 of file FestivalSynthesizer.cpp.
Destructor
Definition at line 73 of file FestivalSynthesizer.cpp.
void FestivalSynthesizer::callbackSynth | ( | const std_msgs::String::ConstPtr & | msg | ) |
Definition at line 177 of file FestivalSynthesizer.cpp.
std::string FestivalSynthesizer::clearSmileys | ( | std::string | text | ) | [private] |
Definition at line 226 of file FestivalSynthesizer.cpp.
void FestivalSynthesizer::initFestival | ( | ) | [private] |
Definition at line 78 of file FestivalSynthesizer.cpp.
std::string FestivalSynthesizer::prepareText | ( | std::string | text | ) | [private] |
Definition at line 201 of file FestivalSynthesizer.cpp.
void FestivalSynthesizer::run | ( | ) |
Definition at line 147 of file FestivalSynthesizer.cpp.
void FestivalSynthesizer::synthSpeech | ( | std::string | text | ) | [private] |
Synthesize speech for given text.
Definition at line 186 of file FestivalSynthesizer.cpp.
std::string FestivalSynthesizer::trimSpaces | ( | std::string | text | ) | [private] |
Definition at line 247 of file FestivalSynthesizer.cpp.
bool FestivalSynthesizer::festival_initialized_ [private] |
Definition at line 63 of file FestivalSynthesizer.h.
pa_simple* FestivalSynthesizer::pa_simple_ [private] |
Definition at line 61 of file FestivalSynthesizer.h.
std::vector<std::string> FestivalSynthesizer::punctuation_characters_ [private] |
Definition at line 66 of file FestivalSynthesizer.h.
std::vector<std::string> FestivalSynthesizer::smileys_ [private] |
Definition at line 67 of file FestivalSynthesizer.h.
ros::Subscriber FestivalSynthesizer::subscriber_ [private] |
Definition at line 71 of file FestivalSynthesizer.h.
bool FestivalSynthesizer::synth_speech_ [private] |
Definition at line 64 of file FestivalSynthesizer.h.
ros::Publisher FestivalSynthesizer::talking_finished_publisher_ [private] |
Define your custom ROS subscribers, callbacks and publishers here.
Definition at line 70 of file FestivalSynthesizer.h.
std::string FestivalSynthesizer::text_for_synth_ [private] |
Definition at line 65 of file FestivalSynthesizer.h.