Versions in this module Expand all Collapse all v0 v0.2.0 Oct 9, 2026 Changes in this version + const SampleRate + func CatalogJSON() []byte + func SetWorkers(n int) + type Catalog struct + Default string + Models []Model + func LoadCatalog() (Catalog, error) + type Engine struct + func Load(name string, weights, tokenizerData []byte) (*Engine, error) + func LoadDir(root, name string) (*Engine, error) + func (e *Engine) Close() + func (e *Engine) DefaultOptions() Options + func (e *Engine) Name() string + func (e *Engine) Synthesize(ctx context.Context, input string, voice *Voice, opts Options) ([]float32, error) + type File struct + Path string + SHA256 string + Size int64 + URL string + type Model struct + DefaultTemperature float64 + DefaultText string + DefaultVoice string + Label string + Language string + Layers int + Name string + Tokenizer File + Voices []VoiceFile + Weights File + func LookupModel(name string) (Model, error) + func (m Model) Files() []File + func (m Model) Voice(id string) (VoiceFile, bool) + type Options struct + EOSThreshold float64 + Progress func(Progress) + SamplerSteps int + Seed uint64 + Temperature float64 + type Progress struct + Chunk int + Chunks int + MaxSteps int + Step int + type Voice struct + func LoadVoiceDir(root, name, id string) (*Voice, error) + func ParseVoice(data []byte) (*Voice, error) + type VoiceFile struct + ID string