catalog

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package catalog is speech.cpp's model catalog for the pinned release, embedded in the module: each model's name, task, languages and weight files, and per file its Hugging Face URL pinned to a revision, size and SHA-256.

The manifest is generated from `speech models --json` by cmd/speech-catalog; see that command for the regeneration steps. Nothing here runs the speech binary or reaches the network.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownModel = errors.New("unknown catalog model")
	ErrUnknownType  = errors.New("unknown weight type")
)

Set of errors the lookups return.

Functions

func LookupFile

func LookupFile(name, weightType string) (Model, File, error)

LookupFile returns the model called name and its file of weightType; an empty weightType means the model's default type.

func Version

func Version() string

Version returns the speech.cpp release the catalog was generated from.

Types

type File

type File struct {
	Type   string // weight type, e.g. "q8_0", "f16"
	Name   string // file name, e.g. "silero-vad-309K-v6.2-F32.gguf"
	URL    string // Hugging Face URL pinned to the model's revision
	Size   int64  // bytes
	SHA256 string // lowercase hexadecimal
}

File is one weight file of a model.

type Model

type Model struct {
	Name       string
	Task       Task
	Repository string // Hugging Face repository, owner/name
	Revision   string // the commit the URLs are pinned to
	Languages  []string
	// StartLanguages are the languages speech.cpp names this model as the
	// one to start with for.
	StartLanguages []string
	VoiceFiles     bool
	DefaultType    string // the type the model's name alone means
	Files          []File
}

Model is one catalog model.

func ByTask

func ByTask(task Task) []Model

ByTask returns the models of task in catalog order.

func Lookup

func Lookup(name string) (Model, error)

Lookup returns the model called name.

func Models

func Models() []Model

Models returns every model in catalog order.

func (Model) File

func (m Model) File(weightType string) (File, error)

File returns the model's file of weightType; an empty weightType means the model's default type.

func (Model) Types

func (m Model) Types() []string

Types returns the model's weight types in catalog order.

type Task

type Task string

Task is what a model does.

const (
	TaskSynthesis   Task = "synthesis"
	TaskRecognition Task = "recognition"
	TaskDetection   Task = "detection"
	TaskDiarization Task = "diarization"
	TaskEnhancement Task = "enhancement"
	TaskDialogue    Task = "dialogue"
)

The tasks of speech.cpp's models.

Jump to

Keyboard shortcuts

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