ros-drivers / audio_common

Common code for working with audio in ROS
BSD 3-Clause "New" or "Revised" License
86 stars 151 forks source link

How can i play an incoming AudioMessage #251

Closed torydebra closed 1 month ago

torydebra commented 1 month ago

Hi there,

Let's say I have a node that publishes a stream of sounds in bytes, as an audio_common_msgs/AudioData type. How can I play it? What is the expected format of the sound? At the moment I have raw pcm sounds, is it ok?

Thanks for any help

knorth55 commented 1 month ago

you can use audio_play node for the purpose. please try audio_play.launch

torydebra commented 1 month ago

Ok thanks, found it