Back to Apollo

README

modules/audio/tools/README.md

11.0.01.1 KB
Original Source

Dump audio to wave

We provide tools to dump audio data from topic /apollo/sensor/microphone to wave files.

How

To do so,

  1. Change WAV_SAVING_PATH in audiosaver.py to the directory for saving wave files, which is default to /tmp.
  2. Run command python3 audiosaver.py to start to listen to audio data from the topic /apollo/sensor/microphone (while playing a record, etc.).
  3. Terminate the program with Ctrl + C when you want to stop listening & save data to wave files under the target directory.

By default, there are 6 audio channels, so 6 files will be generated -- one for each audio channel. For information of the audio channel, refer to Microphone and Microphone Configuration.

Other References