reading audiomoth header data in R
I found this old R package:
but it seems it hasn't been updated in years.
I want to read header info from the wav file produced by audiomoth recording - does this have start and end battery life, for example? Or can I only read battery voltage when I plug into the Audiomoth configuration app? if these and other data are in the header, how would I go about opening that, preferably in R?
If I'm thinking about this all wrong, can someone point me down the correct path?
301 Views
Hi, The header files contain the battery voltage measured at the start of the recordings. It is also in the GUANNO metadata which is at the end of the recording. Both could be simply extracted in R by reading the start and end of the file as a text files. On Linux you can extract them from the command line:
You could also use the 'Summarise AudioMoth Files' tools in the Config App which will generate a CSV summary of the all the files in a directory or SD card, including all the header and GUANNO meta data.
The Config App uses the AudioMoth-Utils repository (https://github.com/OpenAcousticDevices/AudioMoth-Utils) to read and process WAV files. These are all Node.JS libraries. Alex