audio_common raspberry pi 3 audio_capture issue

asked 2017-09-27 05:56:26 -0500

piti_wity gravatar image

updated 2017-09-28 09:45:44 -0500


I am using audio_common package in a Raspberry Pi 3 connected to a mic and headphones, with ROS indigo on it.

Initially I had some problems with gstream, then I solved them and I found out that the following gstreamer command works:

gst-launch-0.10 alsasrc device=hw:1,0 ! audioconvert ! audioresample ! alsasink

It is able to acquire audio data from the mic and forward them to the headphones.

Anyway, when I run the command:

roslaunch audio_capture capture.launch

I get an error as [ERROR] [1506509031.298297308]: Failed to create encoder element

To solve it, I tried to specify the correct hw device inside the capture.launch file by modifying:

<arg name="device" default=""/> with <arg name="device" default="hw:1,0"/>

But the error is still persisting.

I am quite sure that is just a configuration error, since the gst command correctly works. So I ask you what is the correct string description that I have to add in order to get the correct functioning of the library.

Thanks a lot.


I was able to solve the problem, which was caused by the missing lamemp3enc plug-in, However I am still experiencing an errror caused by the capture.cpp line


Do you have any suggestions?

edit retag flag offensive close merge delete