Implement WhisperX HTTP adapter

This commit is contained in:
2026-05-03 15:29:34 -05:00
parent c2a715d3f6
commit 24833194db
4 changed files with 603 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ func (n *NoopClient) Transcribe(ctx context.Context, req TranscribeRequest) (Tra
}
return TranscribeResult{
OutputRawTranscriptPath: req.OutputRawTranscriptPath,
Attempts: 1,
HTTPStatus: 200,
Metadata: map[string]any{
"placeholder": true,
},
@@ -38,6 +40,9 @@ func (f *FakeClient) Transcribe(ctx context.Context, req TranscribeRequest) (Tra
if res.OutputRawTranscriptPath == "" {
res.OutputRawTranscriptPath = req.OutputRawTranscriptPath
}
if res.Attempts == 0 {
res.Attempts = 1
}
if res.Metadata == nil {
res.Metadata = map[string]any{"fake": true}
}