Ask Your Question
0

Extract audio data from a bagfile into mp3 or wav format

asked 2018-01-31 01:20:46 -0500

Teddy_NTU gravatar image

Hello ROS Community,

I am a beginner to ROS. I used the audio_capture package provided by ROS Wiki to capture the audio data from a usb-microphone and use rosbag record to record the audio topic into a bagfile. Using the audio_play package provided, I was able to hear the audio when I rosbag play the bagfile. Now I want to extract the audio data of the bagfile to a external mp3 or wav file, but I don't know how to.

I know that the audio_capture package does contain a capture_to_file.launch file to capture real-time audio into mp3 file, but I only want the historical audio data recorded by the bagfile.

Regards.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-31 02:09:24 -0500

gvdhoorn gravatar image

I haven't used it myself, but sbrodeur/ros-audio-convert claims to do just that.

edit flag offensive delete link more

Comments

That works!!! Thanks!!!

Teddy_NTU gravatar image Teddy_NTU  ( 2018-01-31 02:48:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-01-31 01:20:46 -0500

Seen: 995 times

Last updated: Jan 31 '18