Learn R Programming

bioacoustics: detect and extract automatically acoustic features in audio recordings

Description

bioacoustics contains all the necessary functions to read audio recordings of various formats, filter noisy files, display audio signals, detect and extract automatically acoustic features for further analysis such as species identification based on classification of animal vocalizations. It can be subdivided into three main components:

  • Read, extract data (not yet implemented), display, and write Zero-Crossing files.
  • Stand-alone tools to convert MP3, WAV, and WAC files.
  • Read, display, MP3, WAV or WAC files, filter, and extract automatically acoustic features.

System Requirements

This package requires the following system dependencies:

  • C++11: A C++11 compatible compiler
  • FFTW3: Fast Fourier Transform library (>= 3.3.1)
  • GNU Make: Build automation tool

Installing

  • Install stable version from CRAN:
install.packages("bioacoustics")
  • Install development version from GitHub:
# install.packages("devtools")
devtools::install_github("wavx/bioacoustics", build_vignettes = TRUE)

System Dependencies Installation

Windows

Installing bioacoustics from source works under windows when Rtools is installed. This downloads the system requirements from rpkg-libs.

Linux

For Unix-alikes, FFTW (>= 3.3.1) is required.

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install build-essential libfftw3-dev

CentOS/RHEL:

sudo yum install gcc-c++ fftw-devel

Fedora:

sudo dnf install gcc-c++ fftw-devel

macOS

# Using Homebrew
brew install fftw

# Using MacPorts
sudo port install fftw-3

Contributing

  • Contributions are more than welcome, issues and pull requests are the preferred ways of sharing them.

Authors and contributors

Authors: Jean Marchal, Francois Fabianek, Christopher Scott

Contributors: Chris Corben, David Riggs, Peter Wilson

Licence

  • GPLv3

Copy Link

Version

Install

install.packages('bioacoustics')

Monthly Downloads

1,430

Version

0.2.10

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jean Marchal

Last Published

November 13th, 2025

Functions in bioacoustics (0.2.10)

read_wav

Read WAV files
read_zc

Read Zero-Crossing files
spectro

Plot a spectrogram
rotate90

Rotate 90° clockwise
read_mp3

Read MP3 files
read_audio

Decode audio files
plot_zc

Generate spectrogram for Zero-Crossing files
.parse.timestamp

Internal function
write_zc

Write Zero-Crossing files
metadata

Extract metadata
threshold_detection

Amplitude threshold detector above Signal to Noise Ratio (SNR)
read_wac

Read WAC files from Wildlife Acoustics recorders
to_dB

Convert to dB
mp3_to_wav

Convert MP3 to WAV
bioacoustics-package

bioacoustics: detect and extract automatically acoustic features in Zero-Crossing files and audio recordings
blob_detection

Blob detection of a region of interest into a spectrographic representation of the recording
guano_md

Read GUANO metadata in audio file
file_checks

Internal function
fspec

Generate spectrograms
myotis

Audio recording of myotis species from United-Kingdom
file_type_guess

Internal function