How to write AudioData message into wav file?

asked 2020-07-28 21:52:19 -0500

komgcn gravatar image

I'm using ReSpeaker Mic Array v2.0 on my robot, I used the following git repo: https://github.com/furushchev/respeak... to capture the audio received by the speaker. I subscribed to it's raw audio topic /audio.

How can I write the AudioData message's uint8[] data into a wav file in C++? I would like to play the wav file by other means afterwards.

I saw that in ros audio_common library example it uses gstreamer to do the writing, but I'm quite confused after reading the code(https://github.com/ros-drivers/a...

edit retag flag offensive close merge delete