voice

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	FileName string
	MIMEType string
	Data     []byte
}

Input is one audio payload to transcribe.

type Transcriber

type Transcriber interface {
	Transcribe(ctx context.Context, input Input) (string, error)
}

Transcriber converts audio bytes to text.

func NewOpenAITranscriber

func NewOpenAITranscriber(apiKey, baseURL, model string, timeout time.Duration) (Transcriber, error)

NewOpenAITranscriber builds an OpenAI-compatible audio transcription client.

Jump to

Keyboard shortcuts

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