Dump audio to wave¶
We provide tools to dump audio data from topic /apollo/sensor/microphone to wave files.
How¶
To do so,
Change
WAV_SAVING_PATHinaudiosaver.pyto the directory for saving wave files, which is default to/tmp.Run command
python3 audiosaver.pyto start to listen to audio data from the topic/apollo/sensor/microphone(while playing a record, etc.).Terminate the program with
Ctrl + Cwhen 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¶
Hardware Specification – Respeaker
Driver Configuration – Microphone