diff --git a/docs/audio.md b/docs/audio.md index 76cec62..e86d37f 100644 --- a/docs/audio.md +++ b/docs/audio.md @@ -13,6 +13,14 @@ export OPUS_DIR="/mnt/Data/$(whoami)/Music/Opus" Append to `~/.bashrc` to set permanently. +## Rip CD to FLAC files + +Rip audio from a CD to lossless FLAC files: + +```bash +./scripts/rip_cd.sh +``` + ## Convert cover files for embedding Convert all `cover.jpg` files in `FLAC_DIR` to `cover_600px.jpg` files, which will be used by MusicBrainz Picard for embedding in FLAC files: diff --git a/scripts/rip_cd.sh b/scripts/rip_cd.sh new file mode 100755 index 0000000..f65d599 --- /dev/null +++ b/scripts/rip_cd.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +# Rips audio from a CD to lossless FLAC files in the output directory. +# +# Prerequisites: +# whipper +# +# Globals: +# FLAC_DIR +# +# Usage: +# ./rip_cd.sh + +set -eu + +whipper cd rip --prompt --unknown --output-directory "$FLAC_DIR/new"