Communication problems with a server [closed]
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
Please update your question to show what the logic of your ROS node looks like.
And please use appropriate highlighting. There are buttons.
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)
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.