Skip to main content

acoupi

Readme Content

What is acoupi?

acoupi is an open-source Python package that streamlines bioacoustic classifier deployment on edge devices like the Raspberry Pi. It integrates and standardises the entire bioacoustic monitoring workflow, from recording to classification. With various components and templates, acoupi simplifies the creation of custom sensors, handling audio recordings, processing, classifications, detections, communication, and data management.

Figure 1: Overview of where the acoupi software package fits in the toolbox of bioacoustic research
Figure 1: An overview of acoupi software. Input your recording settings and deep learning model of choice, and acoupi handles the rest, sending detections where you need them.

Requirements

acoupi has been designed to run on single-board computer devices like the Raspberry Pi (RPi). Users should be able to download and test acoupi software on any Linux-based machines with Python version >=3.8,<3.12 installed.

  • A Linux-based single board computer such as the Raspberry Pi 4B.
  • A SD Card with 64-bit Lite OS version installed.
  • A USB Microphone such as an AudioMoth, a µMoth, an Ultramic 192K/250K.

Installation

To install and use the bare-bone framework of acoupi on your embedded device follow these steps:

Step 1: Install acoupi and its dependencies.

curl -sSL https://github.com/acoupi/acoupi/raw/main/scripts/setup.sh | bash

Step 2: Configure an acoupi program.

acoupi setup --program `program-name`

acoupi includes two pre-built programs; a default and a connected program. The default program only records and saves audio files based on users' settings. This program does not do any audio processing neither send any messages, being comparable to an AudioMoth. The connected program is similar to the default program but with the added capability of sending messages to a remote server.

Configure acoupi default program"

acoupi setup --program acoupi.programs.default

Configure acoupi connected program"

acoupi setup --program acoupi.programs.connected

Step 3: Start the deployment of your acoupi's configured program.

acoupi deployment start

Ready to use AI Bioacoustic Classifiers

acoupi simplifies the use and implementation of open-source AI bioacoustic models. Currently, it supports two classifiers: the BatDetect2, developed by @macodha and al., and the BirdNET-Lite, developed by @kahst and al..

BatDetect2

The BatDetect2 bioacoustic DL model has been trained to detect and classify UK bats species. The acoupi_batdetect2 repository provides users with a pre-built acoupi program that can be configured and tailored to their use cases.

Step 1: Install acoupi_batdetect2 program.

uv tool install -w acoupi-batdetect2 -p 3.12 acoupi

Step 2: Setup and configure acoupi_batdetect2 program.

acoupi setup --program acoupi_batdetect2.program

BirdNET-Lite (COMING SOON!)

The BirdNET-Lite bioacoustic DL model has been trained to detect and classify a large number of bird species. The acoupi_birdnet repository provides users with a pre-build acoupi program that can be configured and tailored to their use cases of birds monitoring.

Install acoupi_birdnet program.

uv tool install -w acoupi-birdnet -p 3.11 acoupi

Setup and configure acoupi_birdnet program.

acoupi setup --program acoupi_birdnet.program

In development 🐳🐘🐝

acoupi Software

Acoupi software is divided into two parts; the code-based architecture and the running application. The acoupi framework is organised into layers that ensure standardisation of data while providing flexibility of configuration. The acoupi application provides a simple command line interface (CLI) allowing users to configure the acoupi framework for deployment.

acoupi Framework

The acoupi software has been designed to provide maximum flexibility and keep away the internal complexity from a user. The architecture is made of four intricate elements, which we call the data schema, components, tasks, and programs.

The figure below provides a simplified example of an acoupi program. This program illustrates some of the most important data schema, components, and tasks.

*Figure 2: An example of a simplified _acoupi_ program
Figure 2: An example of a simplified acoupi program.This example program implements the four tasks; audio recording, model, communication and management. Each task is composed of components executing specific actions such as recording an audio file, processing it, sending results, and storing associated metadata. The components input or output data objects defined by the data schema to validate format of information flowing between components and tasks.

acoupi Application

An acoupi application consists of the full set of code that runs at the deployment stage. This includes a set of scripts made of an acoupi program with user configurations, celery files to organise queues and workers, and bash scripts to start, stop, and reboot the application processes. An acoupi application requires the acoupi package and related dependencies to be installed before a user can configure and run it. The figure below gives an overview of key stages related to the installation, configuration and runtime of an acoupi application.

*Figure 3: Steps to deploy an acoupi application
Figure 3: An visual diagram highlighting the elements of an acoupi application.Three main steps are involved in setting up and running an acoupi application: (1) installation, (2) configuration, and (3) deployment.

Features and development

acoupi builds on other Python packages. The list of the most important packages and their functions is summarised below. For more information about each of them, make sure to check their respective documentation.

  • uv to manage project dependencies and developer workflows.
  • Pydantic for data validation.
  • Pytest as a testing framework.
  • Ruff for linting and import formatting checks.
  • ty for static type checking.
  • Celery to manage the processing of tasks.
  • Jinja for text templating.

Metadata

Release files for acoupi 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acoupi 0.8.0
File Size Uploaded Provenance Actions
acoupi-0.8.0.tar.gz 50.1 MB With provenance Details for acoupi-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for acoupi 0.8.0
File Interpreter ABI Platform Actions
acoupi-0.8.0-py3-none-any.whl Python 3 none any Details for acoupi-0.8.0-py3-none-any.whl

Total release size: 50.3 MB

Release files / acoupi-0.8.0.tar.gz

Download URL acoupi-0.8.0.tar.gz
Size 50.1 MB
Tags Source
SHA-256 checksum
How to use checksums
137e9b28b5bf3fd903e8756da063b100fc0887490fbc659f2cf9cc9a220e5562
BLAKE2b-256 checksum
How to use checksums
f05ea3b21d07f4ef0ad1d79f2a2cd81875d177e7cbdf39fa0ee942862bbf00bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release files / acoupi-0.8.0-py3-none-any.whl

Download URL acoupi-0.8.0-py3-none-any.whl
Size 141.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
007b3e09730e9eac7024b1f0e0570fd2874b2c576192ec836e58f437785b07fb
BLAKE2b-256 checksum
How to use checksums
2167fbcc9e2d1572ffba9098b2a4c58f9880189bf1880caee9b904f2cec2b7d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Security for acoupi 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for acoupi-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page