Skip to main content

Bird Vox False-Color Spectrograms

Project description

birdvoxpaint

False-color spectrograms for long-duration bioacoustic monitoring

Installation

BirdVoxPaint is hosted on PyPI. To install, run the following command in your Python environment:

$ pip install birdvoxpaint

To install the latest version from source clone the repository and, from the top-level birdvoxpaint folder, call:

$ python setup.py install

Usage

To analyze an audio file:

import librosa
import birdvoxpaint as bvp
import matplotlib.pyplot as plt

# get the path to the audio file you want to use
audio_path = librosa.example('nutcracker')

# calculate acoustic indices
X = bvp.transform(
    audio_path, segment_duration=3, indices=[
        bvp.acoustic_complexity_index,
        bvp.entropy_based_concentration,
        bvp.acoustic_event_count,
    ])

print(X.shape)

# show
bvp.rgbshow(X)
plt.show()

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

birdvoxpaint-0.2.2.tar.gz (5.9 kB view hashes)

Uploaded Source

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