Scripts in meetings/lib/
Scripts to be used by the executable scripts.
Script: meetings/lib/paths.sh
Creates:
- Session Directory
- Session Files
-
audio.wav -
transcript.txt -
meta.env
-
- Timestamps (ISO)
and
- Provides path information for all scripts
#!/usr/bin/env bash
BASE="$HOME/meetings/recordings"
STAMP="$(date +%F_%H%M)"
SESSION="$BASE/$STAMP"
mkdir -p "$SESSION"
AUDIO="$SESSION/audio.wav"
TRANSCRIPT="$SESSION/transcript.txt"
META="$SESSION/meta.env"
Script: meetings/lib/whisper.sh
Contains:
- the path to the local
whisper.cppinstallation - the language model used (currently
ggml-base.bin) - ASR parameter used
#!/usr/bin/env bash
WHISPER="$HOME/whisper.cpp/build/bin/main"
MODEL="$HOME/whisper.cpp/models/ggml-base.bin"
# Good defaults for Raspberry Pi 500:
# - use all cores (adjust if you want)
# - do NOT print special tokens (default)
COMMON_OPTS="--threads 4"