Records desktop audio and automatically adds it to the last card that was added. Basically a *nix version of this.
By default also normalizes audio to -16LUFS, so you don't get jumpscared while doing anki reps on your laptop.
- Anki (duh) + AnkiConnect addon (2055492159)
- pipewire
- libnotify (notify-send)
- curl
- jq
- procps-ng (pgrep, pkill)
- ffmpeg
- mpv (can easily be replaced by audio player of your choice if you wish to do so)
- wl-clipboard (Wayland users)
- xclip (X11 users)
Run the script to start recording, run it again to stop, kill the process to abort.
Optionally pass -c
to copy the anki media string ([sound:xyz.mp3]
) to the clipboard instead of adding it to the latest card, -p
to play back the recorded audio, and -n
to start recording immediately.
Configuration is done within the shell script itself, make sure to do this before running it!