feat: upload audio, get a private Swedish transcript, discuss it (#33, ADR-033) #39
@@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.d-ma.be/mathias/tapir/internal/domain"
|
"git.d-ma.be/mathias/tapir/internal/domain"
|
||||||
|
"git.d-ma.be/mathias/tapir/internal/errkind"
|
||||||
"git.d-ma.be/mathias/tapir/internal/progress"
|
"git.d-ma.be/mathias/tapir/internal/progress"
|
||||||
"git.d-ma.be/mathias/tapir/internal/reconcile"
|
"git.d-ma.be/mathias/tapir/internal/reconcile"
|
||||||
)
|
)
|
||||||
@@ -72,9 +73,9 @@ func (e *Ensemble) Transcribe(ctx context.Context, wavPath string) (domain.Trans
|
|||||||
}
|
}
|
||||||
return out, nil
|
return out, nil
|
||||||
case berr == nil:
|
case berr == nil:
|
||||||
return e.single(b, e.base.Name(), fmt.Sprintf("%s failed: %v", e.alt.Name(), aerr)), nil
|
return e.single(b, e.base.Name(), fmt.Sprintf("%s failed (%s)", e.alt.Name(), errkind.Of(aerr))), nil
|
||||||
case aerr == nil:
|
case aerr == nil:
|
||||||
return e.single(a, e.alt.Name(), fmt.Sprintf("%s failed: %v", e.base.Name(), berr)), nil
|
return e.single(a, e.alt.Name(), fmt.Sprintf("%s failed (%s)", e.base.Name(), errkind.Of(berr))), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
both := errors.Join(fmt.Errorf("%s: %w", e.base.Name(), berr), fmt.Errorf("%s: %w", e.alt.Name(), aerr))
|
both := errors.Join(fmt.Errorf("%s: %w", e.base.Name(), berr), fmt.Errorf("%s: %w", e.alt.Name(), aerr))
|
||||||
|
|||||||
Reference in New Issue
Block a user