param([string]$Root = 'C:\Users\seven\AletheiaBookTTS')

$ErrorActionPreference = 'Stop'
$env:PYTHONUTF8 = '1'
$env:PYTHONIOENCODING = 'utf-8'
$python = Join-Path $Root '.venv\Scripts\python.exe'
$work = Join-Path $Root 'work'
$candidate = Join-Path $work 'student-100k-v1'
& $python (Join-Path $work 'vosk_booktts_experiment.py') compare-feeds `
    --model (Join-Path $Root 'teacher\model.onnx') `
    --baseline-calibration (Join-Path $candidate 'feeds-baseline-100-v2') `
    --candidate-calibration (Join-Path $candidate 'feeds-student-int8-100-v2') `
    --output (Join-Path $candidate 'wav-ab-100-v1') `
    --resume
exit $LASTEXITCODE
