audiomoth-utils

Module of utilities for use with the AudioMoth and recordings created by AudioMoth.

Usage no npm install needed!

<script type="module">
  import audiomothUtils from 'https://cdn.skypack.dev/audiomoth-utils';
</script>

README

AudioMoth-Utils

A Node.js library for performing various tasks involving AudioMoth and files created by the AudioMoth. The module is hosted on npm under the name 'audiomoth-utils'.

Usage

The module should be imported as normal:

var audiomothUtils = require('audiomoth-utils');

Expanding and Splitting

Expand an AudioMoth T.WAV recording (a recording with amplitude thresholding applied):

audiomothUtils.expand(inputPath, expansionType, maximumFileDuration, generateSilentFiles, alignToSecondTransitions, (progress) => {
    console.log(progress + '% completed');
}));

To be identified as an AudioMoth T.WAV file, a recording must fit the regex /^\d\d\d\d\d\d\d\d_\d\d\d\d\d\dT.WAV$/.


Split an AudioMoth WAV file into a number of smaller files:

audiomothUtils.split(inputPath, amplitudeThreshold, amplitudeThresholdString, minimumTriggerDuration, (progress) => {
    console.log(progress + '% completed');
}));

To be identified as an AudioMoth WAV file, a recording must fit the regex /^\d\d\d\d\d\d\d\d_\d\d\d\d\d\d.WAV$/.

Example applications using this module

License

Copyright 2017 Open Acoustic Devices.

MIT license.