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 ¶
var ( ErrUnknownModel = errors.New("unknown catalog model") ErrUnknownType = errors.New("unknown weight type") )
Set of errors the lookups return.
Functions ¶
func LookupFile ¶
LookupFile returns the model called name and its file of weightType; an empty weightType means the model's default type.
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.