#!/bin/bash
# Quick test - play first 3 segments only

set -e

VIDEO=/tmp/charade_audio.wav
ASR=/tmp/asr_small.json
ASRX=/tmp/asrx_charade_optimized.json
FACE=/tmp/face_long.json
POSE=/tmp/pose_long.json

echo "Quick Test: First 3 segments"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"

# Extract first 3 ASR segments
jq '.segments[:3]' "$ASR" >/tmp/asr_test_3.json

echo "Test segments:"
jq -r '.segments[] | "[{start}s - {end}s] {text}"' /tmp/asr_test_3.json
echo

./target/release/integrated_player \
	--video "$VIDEO" \
	--asr /tmp/asr_test_3.json \
	--asrx "$ASRX" \
	--face "$FACE" \
	--pose "$POSE" \
	--continuous-demo
