Skip to content

Commit

Permalink
A nicer print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyR committed May 9, 2014
1 parent 2a47d19 commit 1950a8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cerevoice_tts/src/CerevoiceTts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ void CerevoiceTts::executeCB(const cerevoice_tts_msgs::TtsGoalConstPtr &goal)
cerevoice_tts_msgs::TtsResult result;
std::string xml = constructXml(goal->text, goal->voice);

ROS_INFO("Will now use voice %s synthesize the text: %s", goal->voice.c_str(), goal->text.c_str());
if(!goal->voice.empty())
ROS_INFO("Will now use voice %s to synthesize the text: %s", goal->voice.c_str(), goal->text.c_str());
else
ROS_INFO("Will now use the default voice to synthesize the text: %s", goal->text.c_str());

// synthesize the text
if(!CPRCEN_engine_channel_speak(engine_, channel_handle_, xml.c_str(), xml.length(), 0)) // 0 = do not flush
{
Expand Down

0 comments on commit 1950a8e

Please sign in to comment.