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
Release history Release notifications | RSS feed
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 details)
File details
Details for the file birdvoxpaint-0.2.2.tar.gz
.
File metadata
- Download URL: birdvoxpaint-0.2.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf866b8d680974e4e149e1e524a61075983f8c009b850392f3320b0d7f82cf1f |
|
MD5 | 73e5d0dc99d0191c09d9a13102c972a6 |
|
BLAKE2b-256 | 79ac14fd1b2c0cec5483941cc1a6bb07bc9dc059edfc935b97c1db3220afe114 |