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_PATH
inaudiosaver.py
to the directory for saving wave files, which is default to/tmp
.Run command
python3 audiosaver.py
to start to listen to audio data from the topic/apollo/sensor/microphone
(while playing a record, etc.).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¶
Hardware Specification – Respeaker
Driver Configuration – Microphone