How to work with byte array of audio_capture_msg from audio_common
Hello, I am using the audio_common package and trying to create a node that performs speech recognition on captured audio. I therefore have a node subscribed to the audio/audio topic published by the audiocapturenode.cpp node that recieves arrays of bytes (uni8[] in the message) aka chunk. How should this chunk be interpreted if the sample format is S16LE (signed 16 bit little endian)? These bytes do represent the the captured audio in a raw/byte like form correct?
Asked by schmidty on 2022-12-01 12:54:31 UTC
Comments
This very old answer says it is not raw audio samples: #q98741
You could have found this yourself by pulling up all questions tagged
audio_capture
- there's only 13 of them.Asked by Mike Scheutzow on 2022-12-02 11:34:09 UTC