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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user