Install
Snap
When using the snape make sure to plug all the connection or the microphone won't be found. List all connections with:
snap connections bark-monitor
connect them with:
sudo snap connect bark-monitor:XXX
This should connect them all:
sudo snap connect bark-monitor:alsa
sudo snap connect bark-monitor:pulseaudio
sudo snap connect bark-monitor:audio-record
Pypi
Get from pypi with pip install bark-monitor.
TensorFlow is an optional extra (it is huge, and not needed to import the package): both
bark-monitorandbark-monitor-liteneed it to record. Install it with:
bash pip install "bark-monitor[tf]"The snap ships with TensorFlow included.
Manual install
The bark monitor relies on pyaudio and portaudio. Start by installing gcc/g++ and portaudio. On Ubuntu:
sudo apt install build-essential
sudo apt install portaudio19-dev
sudo apt install libolm-dev
Install using UV on python 3.12. Run in the root folder:
uv sync --all-extras
--all-extrasincludes TensorFlow; without it the installation works but the recorders cannot run (see PyPI above). For development,uv sync --all-extras --devalso installs the test and documentation dependencies. ```