Files
gateway-telegram/internal/domain/port/speech_transcriber.go

14 lines
363 B
Go

package port
import "context"
// TranscriptionResult holds both the plain-text transcript and the WebVTT subtitle content.
type TranscriptionResult struct {
Text string
VTT string // WebVTT format, empty if not available
}
type SpeechTranscriber interface {
Transcribe(ctx context.Context, audioData []byte, mimeType string) (TranscriptionResult, error)
}