Skip to main content

Interactive bioacoustic annotation tool for measuring vocalizations

Project description

YAAAT! Yet Another Audio Annotation Tool

Interactive bioacoustic annotation tool for measuring vocalizations.

Features:

  1. Changepoint Annotator, for marking temporal onset, offset, and changepoints in vocalizations. Useful for describing rapid fluctuations and identifying nonlinear phenomena.
  2. Peak Annotator, for marking dominant frequency peaks on the power spectrum. Useful for describing spectrally complex vocalizations.
  3. Harmonic Annotator, for identifying harmonics.
Changepoint Annotator Peak Annotator Harmonic Annotator
Changepoint Annotator Peak Annotator Harmonic Annotator

Installation

Via Pip (probably easiest)

pip install yaaat

From Source

git clone https://github.com/laelume/yaaat.git
cd yaaat
pip install -e .

Usage

Launch the Application

yaaat

Opens a tabbed interface with various annotators. Includes test audio files to get started. For some reason, auto-load is a little buggy, so clicking Load Audio Files and selecting the included test_audio yourself lets the interface work as-intended.

Use Individual Annotators

python -m yaaat.changepoint_annotator
python -m yaaat.peak_annotator
python -m yaaat.harmonic_annotator

Use in Python Scripts

from yaaat import ChangepointAnnotator, PeakAnnotator, HarmonicAnnotator
import tkinter as tk

# Launch annotator
root = tk.Tk()
app = ChangepointAnnotator(root) # or PeakAnnotator or HarmonicAnnotator
root.mainloop()

Getting Started (Any Tab)

  1. Click Load Audio Directory to select files or Load Test Audio to explore test audio
  2. Choose where to save annotations (existing, new, or default directory)
  3. Click on the spectrogram to add annotations points
  4. Click Finish Syllable when done with annotation
  5. Move between files using Next/Previous buttons
  6. Annotations auto-save on file navigation or Finish syllable

Navigation & Features

  • Intuitive real-time interactive visualization with zoom, pan, and keycommand + mousewheel navigation

  • Visualize harmonics with adjustable multipliers and draggable bounding boxes

  • JSON annotations saved per-file to minimize corruption

  • Mark and track unusable files

  • Adjust spectrogram resolution for accuracy comparison

  • TODO: implement ranking system for annotation quality; inject as learning feedback mechanism

v0.1.9 - Contour Extraction Tools

New Features

  • Lasso Selection: Ctrl+Click+Drag to select regions
  • Endpoint Marking: Ctrl+Click two points to extract time range
  • Cross-contour extraction: Select points from multiple contours at once
  • Auto-sorted table: Contours sorted by onset time

Improvements

  • Zoom only activates on normal Click+Drag (Ctrl excluded)
  • Table updates immediately after modifications
  • Better error handling and user feedback

Requirements

  • Python ≥3.8 (built using 3.11)
  • numpy
  • matplotlib
  • scipy
  • natsort
  • pysoniq # custom minimal audio package

License

MIT License - Copyright (c) 2025 laelume

Contributing

Contributions welcome! Please open an issue or submit a pull request. I'm especially interested in talking to people about using this in their existing AI workflows, so please feel free to reach out !!

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

yaaat-0.1.11.tar.gz (7.5 MB view details)

Uploaded Source

Built Distribution

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

yaaat-0.1.11-py3-none-any.whl (7.5 MB view details)

Uploaded Python 3

File details

Details for the file yaaat-0.1.11.tar.gz.

File metadata

  • Download URL: yaaat-0.1.11.tar.gz
  • Upload date:
  • Size: 7.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for yaaat-0.1.11.tar.gz
Algorithm Hash digest
SHA256 fc4a7b233df6b63100e87b20cc9658d77db8736bcec9e5c4217602f026afa5d7
MD5 7f91031d9d422e36dae6ddb2cbda8aef
BLAKE2b-256 c090228aee8af77907d7db3223815ed6524bf8095a3e02f689cecd8cd9e07eca

See more details on using hashes here.

File details

Details for the file yaaat-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: yaaat-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 7.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for yaaat-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4aeae2565cf32a16f30aef9c6305b542b90ffec42348f4ea09fd530f79066ada
MD5 f904c355cde4bb5266a48c9d92b27f0a
BLAKE2b-256 0944f95a8b190316df65775a481e3316ca1a0aa3b0e6c91be493229ed86d8cbf

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