Skip to main content

Scripts in ./lib/

Scripts to be included in the executable scripts. 

Scriptmeetings/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"

Scriptmeetings/lib/audio.sh

  • Provides the name of the system audio device
#!/usr/bin/env bash
# Pulse/PipeWire source to record (system output monitor)
# get information using: pactl list short sources
AUDIO_SOURCE="bluez_output.E4_58_BC_61_E8_A7.1.monitor"

Script: meetings/lib/whisper.sh

Contains:

  • the path to the local whisper.cpp installation
  • 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"

# Timestamps sind fürs Live-Mitlesen super
COMMON_OPTS="--no-timestamps 0 --print-special 0"