Skip to content

na-2n/record-to-anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

record_to_anki.sh

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.

Requirements

  • Anki + AnkiConnect addon (2055492159)
  • curl
  • jq
  • ffmpeg
  • mpv (can easily be replaced by audio player of your choice if you wish to do so)

macOS:

Linux:

  • pipewire
  • procps-ng (pgrep, pkill)
  • libnotify (notify-send)
  • wl-clipboard (Wayland users)
  • xclip (X11 users)

Usage

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!

About

Record system audio to anki cards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages