Script meetings/bin/meeting-follow
./bin/meeting-follow
Display the transcript while it is generated.
Usage
meeting-follow
Script
#!/usr/bin/env bash
set -euo pipefail
BASE="$HOME/meetings/recordings"
CURRENT="$BASE/.current"
echo "📄 Waiting for active meeting session…"
# Wait until a current session is announced
while [[ ! -f "$CURRENT" ]]; do
sleep 0.5
done
SESSION="$(cat "$CURRENT")"
META="$SESSION/meta.env"
TRANSCRIPT="$SESSION/transcript.txt"
# Check if live transcription is disabled for this session
if [[ -f "$META" ]]; then
# shellcheck disable=SC1090
source "$META"
fi
if [[ "${NO_TRANSCRIPT:-0}" -eq 1 ]]; then
echo "⚠️ This session was started with --no-transcript."
echo " No live transcript available."
exit 1
fi
echo "đź“„ Following transcript:"
echo " Session: $SESSION"
echo " File: $TRANSCRIPT"
echo "----"
# Wait until transcript file exists
while [[ ! -f "$TRANSCRIPT" ]]; do
sleep 0.5
done
tail -f "$TRANSCRIPT"
Expected behaviour:
meeting-follow will check the file $HOME/meetings/recordings/.current if an active transcript session exists. If not, it waits until the information about the active session has been added by meeting-start and will then start displaying the transcript.