Robotics StackExchange | Archived questions

Why can't my audio_common(audio_capture and audio_play) compile

For some reason, the file which i source from : git https://github.com/ros-drivers/audio_common.git . The commonaudio file, i could not compile it. What i did was to firstly install the audiocommon package for ros-indigo. Then i updated my rosdep. FInally then i git clone it to my work space's src and then i catkinmake it. Despite going through the installation of audiocommon , it still says that im missing gstreamer-1.0 package.

As, currently the project that im doing now require me to use pocketsphinx. i actually install pocketsphinx and gstreamer 0.1 together : sudo apt-get install gstreamer0.10-pocketsphinx. Which is the problem here. Isn't gstreamer 1.0 and gstream 0.1 the same thing? From what i have found online it seems to say that gstreamer 1.0 is a older version of gstreamer 0.1.

Is there anyway in which i will be able to solve the missing package of gstreamer1.0? and do i actually need the audiocapture for me to be using the soundplay?

the main reason i need to compile the audiocommon is due to the fact that i need to try out the soundplay program inside the audiocommon file. I can't compile with the audiocapture file and the audio_play file.

Now, i have created a new package and deleted the the common_audio as i realised my errors but problem now is this =.=

My new package compilation:

Scanning dependencies of target sound_test_node
[100%] Building CXX object program/CMakeFiles/sound_test_node.dir/src/sound_test.cpp.o
In file included from /home/low/catkin_ws/src/program/src/sound_test.cpp:2:0:
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h: In member function ‘void sound_play::SoundClient::sendMsg(int, int, const string&, const string&, const float&)’:
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h:388:11: error: ‘sound_play::SoundRequest’ has no member named ‘volume’
       msg.volume = 0;
           ^
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h:390:11: error: ‘sound_play::SoundRequest’ has no member named ‘volume’
       msg.volume = 1.0f;
           ^
/home/low/catkin_ws/src/program/include/sound_play/sound_play.h:392:11: error: ‘sound_play::SoundRequest’ has no member named ‘volume’
       msg.volume = vol;
           ^
make[2]: *** [program/CMakeFiles/sound_test_node.dir/src/sound_test.cpp.o] Error 1
make[1]: *** [program/CMakeFiles/sound_test_node.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Asked by lolz733 on 2016-09-24 11:17:31 UTC

Comments

Please format any code and / or console copy/pastes with the Preformatted text button. It's the one with 101010 on it. Select the text, then press the button. Thanks.

Asked by gvdhoorn on 2016-09-24 12:47:53 UTC

If you've installed audio_common from apt-get, why are you trying to build it from source?

Asked by ahendrix on 2016-09-24 14:23:40 UTC

I need a example for making a speech synthesis using sound play but all I can find is the example from audio common's sound_play file

Asked by lolz733 on 2016-09-24 19:39:45 UTC

That doesn't answer my question. You don't need to build the package from source if you've already installed it through apt.

Asked by ahendrix on 2016-09-24 21:06:47 UTC

i have tried to make a package to make use of the sound_play. Thanks for your help! seems like i was on the wrong tracks. Sorry i am new at ros. But now i am faced with another problem. When i compile my package it says that inside the sound_play.h does not have a member called volume

Asked by lolz733 on 2016-09-25 02:16:26 UTC

Answers