Fall back on invalid remote transcripts (V-675)

The owner explicitly requested direct commits on master; --no-verify bypasses the branch-only workflow hook for that instruction.
This commit is contained in:
2026-08-13 01:59:56 +04:00
parent d7e8804db5
commit 459fe7a903
4 changed files with 104 additions and 5 deletions
+3
View File
@@ -142,6 +142,9 @@ func (p *Pair) Transcribe(ctx context.Context, a audio.Audio) (string, float64,
}
if p.Available() {
text, conf, err := p.remote.Transcribe(ctx, a)
if err == nil {
err = validateTranscript(text, conf)
}
if err == nil {
log.Print("stt: transcribed on the workstation")
return text, conf, nil