recbox

Crates.iorecbox
lib.rsrecbox
version0.1.0
sourcesrc
created_at2024-10-06 23:18:35.912412
updated_at2024-10-06 23:18:35.912412
descriptionsimple audio recorder
homepage
repositoryhttps://github.com/xermicus/recbox
max_upload_size
id1399480
size19,423
Cyrill Leutwiler (xermicus)

documentation

README

recbox

suckless audio recording of your modular via an USB interface (e.g. a scarlett) with a raspberry pi, 2 systemd units and a couple lines Rust

  • runs on a raspi laying around anyways
  • starts recording audio after boot, just plug it into the same power strip
  • use syncthing or scp to move recorded audio files
  • or just point the out dir to any external data drive (USB stick, NAS share, etc.)
  • dependencies: jack, cargo, syncthing (optional)

hardware setup example

+------------------+        +-----------------+          +-----------------------+
|    Headphones    |        |     Monitors    |          | Raspberry Pi          |
+------------------+        +-----------------+          |                       |
          ^                          ^                   |                       |
          |                          |                   |                       |
         cue                      monitor                |                       |
          |                          |                   |                       |
+--------------------+      +---------------------+      | +-------------------+ |
|  Synth / Mixer     |----->| USB Audio Interface |----->| |  jackd            | |
+--------------------+      +---------------------+      | +-------------------+ |
                                                         |         |             |
                                                         |         v             |
                                                         | +-------------------+ |
                                                         | |  recbox           | |
                                                         | +-------------------+ |
                                                         |         |             |
                                                         |         v             |
                                                         | +-------------------+ |
                                                         | |  Audio Files      | |
                                                         | +-------------------+ |
                                                         |         |             |
                                                         |         v             |
                    +-------------------+                | +-------------------+ |
                    |   PC / Laptop     |<----- wifi-----+-|  Syncthing        | |
                    +-------------------+                | +-------------------+ |
                                                         +-----------------------+

installation

# install dependencies
sudo apt update && sudo apt install -y jackd2 libjack-dev # optionally: syncthing
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# install this
cargo install recbox

# find your sound card by name
aplay -l
cat /proc/asound/cards

# configure the service files (change user, out dir and sound card)

# install and enable systemd units
sudo cp recbox/*.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable --now jackd.service
sudo systemctl enable --now recbox.service
Commit count: 2

cargo fmt