mirror of
https://github.com/mr0xb/scripts.git
synced 2026-08-27 19:34:57 -04:00
add old scripts
This commit is contained in:
parent
1c58245cc5
commit
9c1772908b
18 changed files with 338 additions and 0 deletions
17
util/voicenote
Executable file
17
util/voicenote
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Requires: arecord (ALSA utils)
|
||||
|
||||
OUTDIR="$HOME/Documents/voice-notes"
|
||||
mkdir -p "$OUTDIR"
|
||||
|
||||
FILENAME="note-$(date '+%Y-%m-%d_%H-%M-%S').wav"
|
||||
FILEPATH="$OUTDIR/$FILENAME"
|
||||
|
||||
echo "🎤 Recording... (Ctrl+C to stop)"
|
||||
echo "Saving to: $FILEPATH"
|
||||
echo
|
||||
|
||||
# Start recording: 16-bit PCM, 44.1 kHz, mono
|
||||
arecord -f cd -t wav -r 44100 -c 1 "$FILEPATH"
|
||||
|
||||
Loading…
Reference in a new issue