Define adapter interfaces and fake implementations

This commit is contained in:
2026-05-02 11:16:27 -05:00
parent 78e7e4f41b
commit 2854da48c2
24 changed files with 876 additions and 73 deletions

View File

@@ -3,18 +3,20 @@ package whisperx
import "context"
// Client is a placeholder adapter interface for WhisperX interactions.
// Client is the adapter boundary for WhisperX transcription jobs.
type Client interface {
Transcribe(ctx context.Context, req TranscriptionRequest) (TranscriptionResult, error)
Transcribe(ctx context.Context, req TranscribeRequest) (TranscribeResult, error)
}
// TranscriptionRequest is a placeholder transcription input.
type TranscriptionRequest struct {
Speaker string
AudioPath string
// TranscribeRequest describes one speaker audio transcription request.
type TranscribeRequest struct {
SpeakerID string
AudioPath string
OutputRawTranscriptPath string
}
// TranscriptionResult is a placeholder transcription output.
type TranscriptionResult struct {
TranscriptPath string
// TranscribeResult describes the transcript output and adapter metadata.
type TranscribeResult struct {
OutputRawTranscriptPath string
Metadata map[string]any
}