Communication problems with a server [closed]

asked 2013-06-13 03:27:55 -0500

ane_fernandez gravatar image

updated 2013-06-26 03:18:26 -0500

Dear all,

I need to communicate with a server that is running on my local machine. It is a Verbio TTS server and I have a SDK library which includes all the required functionalities.

When I generate a C++ application where the communication with the server is established and some operation are made, it works well; however, when I create a ROS node with the same code, it compiles well but at runtime the software crashes upon initiating communication.

The ROS node is very simple, because I only want to test the testdemo in a ROS environment. Here are the first few lines of the node:

if (argc>1)

  text = argv[1];

if (argc>2)

  vox_setparm(-1, VXGB_DEFSERVER, argv[2]);

ros::init(argc, argv, "tekniker_tts");

printf("Initializing... \n");

vox_tts_init(0, "es");

After the vox_tts_init call the software crashes.

I have linked the SDK library to the node by adding these lines to the CMakeList.txt file:

rosbuild_add_executable(tekniker_tts src/tekniker_tts.cpp)

target_link_libraries(tekniker_tts voxlib)

Does anyone know how I can solve this problem?

The communication between client and server is established through ports 8764 and 8765. Could it be a problem on ROS environment?

Thanks in advance

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by tfoote
close date 2016-09-22 20:40:56.778002

Comments

1

Please update your question to show what the logic of your ROS node looks like.

joq gravatar image joq  ( 2013-06-13 10:13:30 -0500 )edit
2

And please use appropriate highlighting. There are buttons.

felix k gravatar image felix k  ( 2013-06-16 23:02:30 -0500 )edit

If you are looking for a simple text-to speech engine, check into this one: http://www.ros.org/wiki/sound_play (Si estas buscando para Text-To-Speech en ROS)

allenh1 gravatar image allenh1  ( 2013-06-17 03:55:14 -0500 )edit

Until now we have been doing speech synthesis via festival. The main reason of buying a Verbio licence is that we need some language that Festival doesn't support.

ane_fernandez gravatar image ane_fernandez  ( 2013-06-17 04:33:13 -0500 )edit