Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroqTranscriber ¶
type GroqTranscriber struct {
// contains filtered or unexported fields
}
func NewGroqTranscriber ¶
func NewGroqTranscriber(apiKey string) *GroqTranscriber
func (*GroqTranscriber) Name ¶ added in v0.2.1
func (t *GroqTranscriber) Name() string
func (*GroqTranscriber) Transcribe ¶
func (t *GroqTranscriber) Transcribe(ctx context.Context, audioFilePath string) (*TranscriptionResponse, error)
type Transcriber ¶ added in v0.2.1
type Transcriber interface {
Name() string
Transcribe(ctx context.Context, audioFilePath string) (*TranscriptionResponse, error)
}
func DetectTranscriber ¶ added in v0.2.1
func DetectTranscriber(cfg *config.Config) Transcriber
DetectTranscriber inspects cfg and returns the appropriate Transcriber, or nil if no supported transcription provider is configured.
type TranscriptionResponse ¶
Click to show internal directories.
Click to hide internal directories.