14 lines
363 B
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)
|
|
}
|