Hi!
I am TOTALLY new in ROS. I have a package consisting of two ROS modules where the first module takes input from a microphone and saves it as a ".wav" file. I want this module to publish this ".wav"-file to a topic so that the other ROS module is able to receive it(subscribe the topic). How do I do this? I have been looking at the ROS package called audio_common, but I cant figure out how to do it. Do I need to convert the ".wav"-file into bytes and stuff before sending? I have no idea!
Any advices would help here!
Originally posted by steinaak on ROS Answers with karma: 151 on 2016-03-05
Post score: 1
Original comments
Comment by ahendrix on 2016-03-05:
Are you trying to stream audio, or are you trying to capture short bursts? What are you trying to do with the audio samples in the receiving node?
Comment by steinaak on 2016-03-06:
Hey! Now, the microphone module captures small bursts(.wav files with duration up to 10 seconds). The other module will receive this audio(if I am able to solve that problem) and make a call to an API to translate the speech into text. What message type should I use? And how to do it?