Files
Memoh/internal/audio/adapter.go
Acbox 7376bc5adb fix: separate audio domain and restore transcription templates
Move speech and transcription internals into the audio domain, restore template-driven transcription providers, and regenerate Swagger/SDK so the frontend can stop hand-calling /transcription-* APIs.
2026-04-21 23:33:36 +08:00

21 lines
468 B
Go

package audio
import "context"
type TtsType string
type TtsMeta struct {
Provider string
Description string
}
type TtsAdapter interface {
Type() TtsType
Meta() TtsMeta
DefaultModel() string
Models() []ModelInfo
ResolveModel(model string) (string, error)
Synthesize(ctx context.Context, text string, model string, config AudioConfig) ([]byte, error)
Stream(ctx context.Context, text string, model string, config AudioConfig) (chan []byte, chan error)
}