voice

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASRConfig

type ASRConfig struct {
	Provider          string
	APIKey            string
	BaseURL           string
	SpeechModels      []string
	LanguageDetection bool
	PollIntervalSec   int
	TimeoutSec        int
}

ASRConfig configures speech-to-text preprocessing.

type ASRProvider

type ASRProvider interface {
	Transcribe(ctx context.Context, req ASRRequest) (ASRResult, error)
}

type ASRRequest

type ASRRequest struct {
	FilePath  string
	MimeType  string
	SessionID string
	RequestID string
}

type ASRResult

type ASRResult struct {
	Text string
}

type TTSConfig

type TTSConfig struct {
	Provider   string
	Voice      string
	Rate       string
	Volume     string
	Pitch      string
	OutputDir  string
	TimeoutSec int
}

TTSConfig configures text-to-speech postprocessing.

type TTSProvider

type TTSProvider interface {
	Synthesize(ctx context.Context, req TTSRequest) (TTSResult, error)
}

type TTSRequest

type TTSRequest struct {
	Text      string
	SessionID string
	RequestID string
}

type TTSResult

type TTSResult struct {
	FilePath string
	MimeType string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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