audio

package
v0.0.0-...-821b8c2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(shutdownCtx context.Context, logger *slog.Logger) fiber.Handler

Handler returns a Fiber handler for POST /audio.

Types

type TranscribeRequest

type TranscribeRequest struct {
	AudioBase64 string // bare base64, no data-URL prefix
	MimeType    string // e.g. "audio/wav"
	Model       string // overrides env default
}

type TranscribeResult

type TranscribeResult struct {
	Text string
}

func Transcribe

func Transcribe(ctx context.Context, req TranscribeRequest) (*TranscribeResult, error)

Jump to

Keyboard shortcuts

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