Skip to main content

Scripts in meetings/lib/

Scripts to be used by 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"

Script: meetings/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"
    
    # Good defaults for Raspberry Pi 500:
    # - use all cores (adjust if you want)
    # - do NOT print special tokens (default)
    COMMON_OPTS="--threads 4"