Skip to main content

Script meetings/bin/meeting-follow

./bin/meeting-follow

Read the transcript while it is generated.

#!/usr/bin/env bash
set -euo pipefail

SESSION="${1:-$(ls -d "$HOME/meetings/recordings/"* | tail -n1)}"
TRANSCRIPT="$SESSION/transcript.txt"

echo "📄 Following transcript:"
echo "   Session: $SESSION"
echo "   File:    $TRANSCRIPT"
echo "----"

# Wait until the transcript file exists
while [[ ! -f "$TRANSCRIPT" ]]; do
  sleep 0.5
done

tail -f "$SESSION/transcript.txt"TRANSCRIPT"