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.cpp streaming binary
WHISPER="$HOME/whisper.cpp/build/bin/main"whisper-stream"
MODEL=# Models
MODEL_EN="$HOME/whisper.cpp/models/ggml-tiny.en.bin"
MODEL_MULTI="$HOME/whisper.cpp/models/ggml-base.bin"
# GoodThreading defaults for (Raspberry Pi 500:500 defaults)
INFER_THREADS=4
MEL_THREADS=16
# -Streaming use/ allcontext coresparameters (adjustproven ifworking)
youSTREAM_OPTS=(
want)-c 1
--keep-context
--step 1500
--length 6000
--keep 800
)
# Thread options
THREAD_OPTS=(
-t do"$INFER_THREADS"
NOT-mt print"$MEL_THREADS"
special tokens (default)
COMMON_OPTS="--threads 4")