Public Member Functions | Private Member Functions | Private Attributes
FestivalSynthesizer Class Reference

Provides text-to-speech sythesis via Festival. More...

#include <FestivalSynthesizer.h>

List of all members.

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_

Detailed Description

Provides text-to-speech sythesis via Festival.

Author:
Julian Giesen (R16)(R18)

Definition at line 45 of file FestivalSynthesizer.h.


Constructor & Destructor Documentation

Constructor

Definition at line 31 of file FestivalSynthesizer.cpp.

Destructor

Definition at line 73 of file FestivalSynthesizer.cpp.


Member Function Documentation

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]
Returns:
Deletes smileys for better Synthesis and returns the prepared String

Definition at line 226 of file FestivalSynthesizer.cpp.

Definition at line 78 of file FestivalSynthesizer.cpp.

std::string FestivalSynthesizer::prepareText ( std::string  text) [private]
Returns:
Deletes smilies for better Synthesis and returns the prepared String

Definition at line 201 of file FestivalSynthesizer.cpp.

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]
Returns:
trims leading and trailing spaces and returns the prepared String

Definition at line 247 of file FestivalSynthesizer.cpp.


Member Data Documentation

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.

Definition at line 71 of file FestivalSynthesizer.h.

Definition at line 64 of file FestivalSynthesizer.h.

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.


The documentation for this class was generated from the following files:


robot_face
Author(s): AGAS, Julian Giesen, David Gossow
autogenerated on Mon Oct 6 2014 04:10:26