Implement WhisperX HTTP adapter
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user