models

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 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 models is the desktop host's view of the SpeechKit model catalog.

The catalog itself is owned by pkg/speechkit: profile shape, provider IDs, modality, execution mode, capabilities, and readiness metadata all live there. This package is a thin alias layer over that source of truth plus the host-only support entries (utility, embedding and TTS models a user never selects as a mode) that the desktop app appends.

Index

Constants

View Source
const (
	ModalitySTT           = speechkit.ModalitySTT
	ModalityTTS           = speechkit.ModalityTTS
	ModalityRealtimeVoice = speechkit.ModalityRealtimeVoice
	ModalityAssist        = speechkit.ModalityAssist
	ModalityUtility       = speechkit.ModalityUtility
	ModalityEmbedding     = speechkit.ModalityEmbedding
	ModalityReranker      = speechkit.ModalityReranker
)
View Source
const (
	ExecutionModeLocal          = speechkit.ExecutionModeLocal
	ExecutionModeSelfHostedHTTP = speechkit.ExecutionModeSelfHostedHTTP
	ExecutionModeHFRouted       = speechkit.ExecutionModeHFRouted
	ExecutionModeHFInference    = speechkit.ExecutionModeHFRouted // Legacy alias.
	ExecutionModeOpenAI         = speechkit.ExecutionModeOpenAI
	ExecutionModeGroq           = speechkit.ExecutionModeGroq
	ExecutionModeGoogle         = speechkit.ExecutionModeGoogle
	ExecutionModeDeepgram       = speechkit.ExecutionModeDeepgram
	ExecutionModeAssemblyAI     = speechkit.ExecutionModeAssemblyAI
	ExecutionModeOllama         = speechkit.ExecutionModeOllama
	ExecutionModeOpenRouter     = speechkit.ExecutionModeOpenRouter
	ExecutionModeFoundry        = speechkit.ExecutionModeFoundry
)
View Source
const (
	ProviderKindLocalBuiltIn   = speechkit.ProviderKindLocalBuiltIn
	ProviderKindLocalProvider  = speechkit.ProviderKindLocalProvider
	ProviderKindCloudProvider  = speechkit.ProviderKindCloudProvider
	ProviderKindDirectProvider = speechkit.ProviderKindDirectProvider
)
View Source
const (
	CapabilityTranscription         = speechkit.CapabilityTranscription
	CapabilitySTT                   = speechkit.CapabilitySTT
	CapabilityAudioInput            = speechkit.CapabilityAudioInput
	CapabilityLLM                   = speechkit.CapabilityLLM
	CapabilityTTS                   = speechkit.CapabilityTTS
	CapabilityRealtimeAudio         = speechkit.CapabilityRealtimeAudio
	CapabilityPipelineFallback      = speechkit.CapabilityPipelineFallback
	CapabilityToolCalling           = speechkit.CapabilityToolCalling
	CapabilityDictionaryPrompt      = speechkit.CapabilityDictionaryPrompt
	CapabilityDictionaryNativeHints = speechkit.CapabilityDictionaryNativeHints
	CapabilityWordsPrompt           = speechkit.CapabilityWordsPrompt
	CapabilityWordsNativeHints      = speechkit.CapabilityWordsNativeHints
	CapabilityPostSTTReplacements   = speechkit.CapabilityPostSTTReplacements
	CapabilitySessionSummary        = speechkit.CapabilitySessionSummary
	CapabilityTranscript            = speechkit.CapabilityTranscript
	CapabilityInterruptions         = speechkit.CapabilityInterruptions
	CapabilitySessionResume         = speechkit.CapabilitySessionResume
	CapabilityNativeContextPrompt   = speechkit.CapabilityNativeContextPrompt
	CapabilityNativeKeyterms        = speechkit.CapabilityNativeKeyterms
	CapabilityNativeDictationStream = speechkit.CapabilityNativeDictationStream
	CapabilityLanguageHints         = speechkit.CapabilityLanguageHints
	CapabilitySpeakerStreaming      = speechkit.CapabilitySpeakerStreaming
	CapabilityPrivacyRedaction      = speechkit.CapabilityPrivacyRedaction
	CapabilityVoiceFocus            = speechkit.CapabilityVoiceFocus
	CapabilityMedicalDomain         = speechkit.CapabilityMedicalDomain
	CapabilityReasoningEffort       = speechkit.CapabilityReasoningEffort
	CapabilityTranslation           = speechkit.CapabilityTranslation
	CapabilityTranscriptionOnly     = speechkit.CapabilityTranscriptionOnly
	CapabilitySpeakerDiarization    = speechkit.CapabilitySpeakerDiarization
	CapabilitySpeakerIdentification = speechkit.CapabilitySpeakerIdentification
	CapabilitySpeakerAttribution    = speechkit.CapabilitySpeakerAttribution
	CapabilitySpeakerEnrollment     = speechkit.CapabilitySpeakerEnrollment
)

Variables

This section is empty.

Functions

func BuildSTT added in v0.73.0

func BuildSTT(spec STTBuildSpec) (string, stt.STTProvider, error)

BuildSTT constructs the provider described by spec through the public registry and returns its canonical name alongside it.

Types

type Capability added in v0.22.4

type Capability = speechkit.Capability

Catalog vocabulary. These are aliases, not copies: a value produced by the framework is the same value here, so nothing has to be converted at the boundary.

type Catalog

type Catalog struct {
	Profiles []Profile
}

func DefaultCatalog

func DefaultCatalog() Catalog

DefaultCatalog is the framework catalog plus the host-only support entries, with framework defaults applied to every profile.

func (Catalog) DefaultProfile

func (c Catalog) DefaultProfile(modality Modality) (Profile, bool)

type ExecutionMode

type ExecutionMode = speechkit.ExecutionMode

Catalog vocabulary. These are aliases, not copies: a value produced by the framework is the same value here, so nothing has to be converted at the boundary.

type Modality

type Modality = speechkit.Modality

Catalog vocabulary. These are aliases, not copies: a value produced by the framework is the same value here, so nothing has to be converted at the boundary.

type ModelVariant added in v0.22.4

type ModelVariant = speechkit.ModelVariant

Catalog vocabulary. These are aliases, not copies: a value produced by the framework is the same value here, so nothing has to be converted at the boundary.

type Profile

type Profile = speechkit.ProviderProfile

Catalog vocabulary. These are aliases, not copies: a value produced by the framework is the same value here, so nothing has to be converted at the boundary.

type ProviderKind added in v0.22.4

type ProviderKind = speechkit.ProviderKind

Catalog vocabulary. These are aliases, not copies: a value produced by the framework is the same value here, so nothing has to be converted at the boundary.

type STTBuildSpec added in v0.73.0

type STTBuildSpec struct {
	ExecutionMode ExecutionMode
	Provider      string
	ModelID       string

	APIKey  string // cloud API key (OpenAI/Groq/Google/Deepgram/AssemblyAI/OpenRouter)
	Token   string // HuggingFace token
	BaseURL string // Ollama base URL (optional; defaulted when empty)

	// DiarizationModel overrides the Deepgram diarization model (optional).
	DiarizationModel string
	// Deepgram forwards provider-specific Listen options (optional).
	Deepgram deepgram.Options
	// Google streaming credential env-var names (optional), forwarded to the
	// opt-in Google STT provider so realtime transcription can authenticate.
	GoogleStreamingCredentialsEnv   string
	GoogleApplicationCredentialsEnv string
	// FoundrySpeech selects the Azure Speech fast-transcription surface of a
	// Foundry resource (optional).
	FoundrySpeech *allproviders.FoundrySpeechOpts
	// BearerToken supplies Entra bearer tokens for Foundry-hosted providers.
	BearerToken framework.BearerTokenFunc
}

STTBuildSpec carries the inputs needed to construct a cloud STT provider for a given host ExecutionMode. It mirrors allproviders.BuildSpec but is typed with the host's ExecutionMode so config-derived call sites stay in the host vocabulary.

Jump to

Keyboard shortcuts

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