Skip to main content

Bioacoustic processing and Pied tamarin (Saguinus bicolor) vocalization detector.

Project description

🐒 Sauim Detector

sauim-detector is a Python command-line tool for bioacoustic processing and automatic detection of Pied tamarin (Saguinus bicolor) vocalizations. It combines a pre-trained bird vocalization embedding model with a custom OCSVM classifier to detect the presence of tamarin calls in audio recordings. 🙈🙉🙊

Quick tutorial: Watch on YouTube


📦 Installation

Directly from pypi:

pip install sauim-detector

Directly from the GitHub repo (clone and install the package):

git clone https://github.com/juancolonna/Sauim.git
cd sauim-detector
pip install .

This will also install required dependencies:

  • librosa
  • numpy
  • scipy
  • tensorflow
  • tensorflow-hub
  • joblib
  • soundfile

🚀 Usage

The CLI entry point is sauim-detector.

sauim-detector path/to/audio.wav

Options

  • --save-audio, -s
    If set, saves the filtered signal as a .wav file alongside the labels.

📂 Outputs

  1. Detection labels in Audacity label format:

    start_time    end_time    label
    0.00          7.20        sauim
    10.00         15.50       sauim
    20.00         30.80       sauim
    ....
    

    These can be imported directly into Audacity via
    File → Import → Labels….

  2. Filtered audio (optional, if --save-audio is used):
    A .wav file containing the processed signal.
    Example: audio_filtered.wav


📝 Example

# Run classification
sauim-detector recordings/example.wav

# Run classification and also save filtered audio
sauim-detector recordings/example.wav --save-audio

Output:

Total detections: 2
✅ Labels saved as: recordings/example_detections.txt
✅ Filtered signal saved as: recordings/example_filtered.wav

⚠️ Notes

  • Input files must be in .wav format.
  • The default sampling rate is 32 kHz. Files will be resampled automatically if needed.
  • Labels are generated based on classifier decisions (OCSVM) and they need manual validation on Audacity.

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

sauim_detector-0.1.3.tar.gz (74.4 kB view details)

Uploaded Source

Built Distribution

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

sauim_detector-0.1.3-py3-none-any.whl (74.2 kB view details)

Uploaded Python 3

File details

Details for the file sauim_detector-0.1.3.tar.gz.

File metadata

  • Download URL: sauim_detector-0.1.3.tar.gz
  • Upload date:
  • Size: 74.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for sauim_detector-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cdd62eb20b36453a52b09ec353c0ec7cb3d8352499e2c27a5bf4b1b9c35aec8e
MD5 b3c8a4456f3140fd2e0798ce43d43e89
BLAKE2b-256 f9e93f50139c9f298ba376e55b3d620d444e3d33b0f62405192e5259db20e817

See more details on using hashes here.

File details

Details for the file sauim_detector-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sauim_detector-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 74.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for sauim_detector-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9fedbd11e57c12fb2bcb382dc859d35dcda03bd038fad6385599932cb21ca2d3
MD5 a63213e4f8b110bd9acfa92f930e2439
BLAKE2b-256 8ca43c96c852b7918f73bb745c0e8053db6c20759be4fdae6d0550ca5b76310b

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