ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Any documentation for audio_common_msgs/AudioData.msg

asked 2013-11-07 02:21:28 -0500

hwp gravatar image

Is there any detailed documentation for audio_common_msgs/AudioData.msg?

I need information for example:

  • What is the layout for these data?
  • How many channels are there?
  • What is the data format (U8 OR S16_LE)?
  • I assume one message is one data frame. Then, how many samples are in one frame?

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-09 07:17:12 -0500

fergs gravatar image

Unfortunately, these messages are missing the equivalent of a "camera_info" topic to describe the data (there was at one point a discussion about fixing this, but there are very few people doing audio in ROS right now).

The message itself doesn't constrain you to a particular set of parameters -- however, if you want to use the tools in the audio_common stack, then that sets the parameters. For instance, the audio_capture node will encode the data as 192kbit/s MP3, the number of samples per message is variable I believe.

For the most part, people only use these messages with the audio_capture/audio_play nodes, and so it hasn't been much of a problem. If you are uninterested in using either of these nodes, you can actually put any form of data into the message, although it may be wiser to just create a new message type for your particular application.

edit flag offensive delete link more

Question Tools


Asked: 2013-11-07 02:21:28 -0500

Seen: 1,138 times

Last updated: Nov 09 '13