Skip to main content

The biosonic package contains tools for bioacoustic analysis.

Project description

biosonic

A python package for bioacoustics

This package is in active development. If you want to work with it, be aware that it is prone to bugs and the functionality might change. If you would like to collaborate, please reach out to us! We would love for this to become a comprehensive package for bioacoustics and a collaborative project.

Description

biosonic is a python package for bioacoustics analysis. It's goal is to provide a solution for common workflows from normalization of files and basic acoustic feature extraction to extracting features commonly used in ML pipelines as well as pitch tracking with a user friendy function based structure and parametrization.

Getting Started

Dependencies

BioSonic is written to be lightweight and only relies on numpy, scipy, and pandas for it's basic functionality. If you want plotting, this can be specified during pip installing:

pip install biosonic[plots]

For full functionality, the current dependencies are:

  • numpy (>=2.4.0,<3.0.0)
  • pandas (>=2.3.3,<3.0.0)
  • scipy (>=1.16.3,<2.0.0)
  • matplotlib
  • praat-textgrids

Python 3.11 and above are supported.

Installing

For full functionality, including plotting and praat-textgrid support run

pip install biosonic[all]

Executing

See the jupyter notebook example_usage.ipynb for demonstrations of different functionalities.

Authors

Acknowledgments and References

  • Anikin A. 2019. Soundgen: an open-source tool for synthesizing nonverbal vocalizations. Behavior Research Methods, 51(2), 778-792.

  • Boersma P. (1993) Accurate short-term analysis of the fundamental frequency and the harmonics-to-noise ratio of a sampled sound. IFA Proceedings 17, 97–110.

  • Childers DG, Skinner DP, Kemerait RC. (1977) The cepstrum: A guide to processing. Proc. IEEE 65, 1428–1443. https://doi.org/10.1109/PROC.1977.10747

  • Klapuri A, Davy M. (2006) Signal processing methods for music transcription. New York: Springer. p.136

  • Shannon C. E. (1948) A mathematical theory of communication. The Bell System Technical Journal XXVII.

  • Sueur, J. (2018). Sound Analysis and Synthesis with R (Springer International Publishing). https://doi.org/10.1007/978-3-319-77647-7.

  • Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stéfan J. van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, CJ Carey, İlhan Polat, Yu Feng, Eric W. Moore, Jake VanderPlas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Henriksen, E.A. Quintero, Charles R Harris, Anne M. Archibald, Antônio H. Ribeiro, Fabian Pedregosa, Paul van Mulbregt, and SciPy 1.0 Contributors. (2020) SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods, 17(3), 261-272. https://doi.org/10.1038/s41592-019-0686-2.

  • https://de.mathworks.com/help/signal/ref/spectralentropy.html accessed January 13th, 2025. 18:34 pm

  • https://docs.scipy.org/doc/scipy-1.15.2/reference/generated/scipy.stats.entropy.html accessed May 20th 2025, 11:32 am

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biosonic-0.1.4.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biosonic-0.1.4-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file biosonic-0.1.4.tar.gz.

File metadata

  • Download URL: biosonic-0.1.4.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for biosonic-0.1.4.tar.gz
Algorithm Hash digest
SHA256 35d4e3d6c934e51a89e6672259591abb0bab2bc8ef4e5ffe909263d7d5f449ab
MD5 c40ace5a22a5237660d72db3cd10e8e3
BLAKE2b-256 78a51bcbaa0b30cdb74b39c3cafde0f3582987772374d468ecf05a1a691e147e

See more details on using hashes here.

File details

Details for the file biosonic-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: biosonic-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 47.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for biosonic-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d1d735fcb59d349962c6ad4db76fce05e169ecb9c70d2822fc0d61854de7f5bc
MD5 8d32284be720799fca7971fbde7c17fe
BLAKE2b-256 c9e5b1e361d4f3a63a103f6cc54c8c3c450689619f5f8c0ce72cf01062e8e261

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page