Skip to main content

soundevent is an open-source Python package for the computational biocoustic community, providing standardized tools for sound event analysis and data management.

Project description

soundevent

Warning This package is under active development use with caution. However, most of the data definitions are not expected to change. Will be adding data loading/exporting and prediction evaluation functions soon.

soundevent is an open-source Python package that aims to support the computational biocoustic community in developing well-tested, coherent, and standardized software tools for bioacoustic analysis. The main goal of the package is to provide a flexible yet consistent definition of what a sound event is in a computational sense, along with a set of tools to easily work with this definition. The package comprises three key components:

Main features

1. Data Classes for Bioacoustic Analysis

The soundevent package defines several data classes that conceptualize and standardize different recurrent objects in bioacoustic analysis. These data classes establish the relationships between various concepts and specify the attributes each object possesses. They are designed to be flexible enough to cover a wide range of use cases in bioacoustic analysis. The package also includes data validation mechanisms to ensure that the information stored is valid and meaningful. Specifically, it defines objects related to sound events, such as user annotations and model predictions.

2. Serialization, Storage, and Reading Functions

To promote standardized data formats for storing annotated datasets and other information about sounds in recordings, the soundevent package provides several functions for serialization, storage, and reading of the different data classes offered. These functions enable easy sharing of information about common objects in bioacoustic research. By employing a consistent data format, researchers can exchange data more efficiently and collaborate seamlessly.

3. Handling Functions for Sound Events

The soundevent package also includes a variety of functions that facilitate the handling of sound event objects. These functions serve multiple purposes, such as matching sound events for model prediction evaluation, transforming sound events, and managing metadata and labels. By offering a comprehensive set of handling functions, the package aims to streamline the analysis workflow for bioacoustic researchers, providing them with powerful tools to manipulate and extract insights from their data.

Installation

You can install soundevent using pip:

pip install soundevent

Documentation

For detailed information on how to use the package, please refer to the documentation.

Example Usage

Here's a brief example demonstrating the usage of soundevent package:

import soundevent

dataset = soundevent.load_dataset("example_dataset.json", audio_dir="audio")
print(f"Dataset {dataset.name} has {len(dataset.recordings)} Recordings")

recording = dataset.recordings[0]
print(f"Recording {recording.id}:  duration={recording.duration}, samplerate={recording.samplerate}")

wav = soundevent.load_recording_audio(recording)

Contributing

We welcome contributions from the community to make soundevent even better. If you would like to contribute, please refer to the contribution guidelines.

License

soundevent is released under the MIT License.

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

soundevent-0.1.1.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

soundevent-0.1.1-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file soundevent-0.1.1.tar.gz.

File metadata

  • Download URL: soundevent-0.1.1.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for soundevent-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f6df903d8c57a7a3f45c7e7313ad849370f5921426c428d01db2ef5e09bf2f3
MD5 de89ab8657e2a4725105baa571d897d9
BLAKE2b-256 852c234967821c4832877f7007ddf11693056bcd15af9817984d130a2a5e7e31

See more details on using hashes here.

File details

Details for the file soundevent-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: soundevent-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for soundevent-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48f7e172730215fff79ee5ce8b54bcc44bc8af3415cf69908672d6424ae0eeb6
MD5 0ef034b6d1cdde6c239347fd41a44cdf
BLAKE2b-256 4850210b3f450cc9f9da3ac90fae12e0dd53ef8555af6583f37897029c774ac3

See more details on using hashes here.

Supported by

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