Common code for working with audio in ROS