voice

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 14 Imported by: 0

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

type TranscriptionResponse struct {
	Text     string  `json:"text"`
	Language string  `json:"language,omitempty"`
	Duration float64 `json:"duration,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL