Files
Aletheia/tools/tts/run_booktts_ab_windows.ps1

16 lines
643 B
PowerShell

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