stt

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: Apache-2.0 Imports: 11 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

Index

Constants

View Source
const LanguageMulti = pkgstt.LanguageMulti

LanguageMulti is the value carried when no language is pinned. Never forwarded verbatim — each provider expresses multilanguage in its own dialect. See pkg/speechkit/stt.LanguageMulti.

View Source
const MinWhisperModelBytes = local.MinWhisperModelBytes

Variables

View Source
var (
	ResolveTranscribeOptions    = pkgstt.ResolveTranscribeOptions
	ParseDeepgramKeyterms       = deepgram.ParseKeyterms
	ValidateModelPath           = local.ValidateModelPath
	FindWhisperBinary           = local.FindWhisperBinary
	NewDeepgramProvider         = deepgram.New
	NewAssemblyAIProvider       = assemblyai.New
	NewHuggingFaceProvider      = huggingface.New
	NewOpenAISTTProvider        = openaicompat.NewOpenAI
	NewOpenRouterSTTProvider    = openrouter.New
	NewGroqSTTProvider          = openaicompat.NewGroq
	NewLocalProvider            = local.New
	NewVPSProvider              = vps.New
	NewVPSProviderWithModel     = vps.NewWithModel
	NewOpenAICompatibleProvider = openaicompat.New
	NewOllamaSTTProvider        = openaicompat.NewOllama
)

Functions and constructors (function-value aliases keep signatures in sync with the public package automatically).

BuildRouter forwards to the public router assembly SSOT.

View Source
var IsMultilanguage = pkgstt.IsMultilanguage

IsMultilanguage reports whether a language value means "do not pin".

Functions

This section is empty.

Types

type AssemblyAIOpts added in v0.61.32

type AssemblyAIOpts = allproviders.AssemblyAIOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type AssemblyAIProvider added in v0.42.0

type AssemblyAIProvider = assemblyai.Provider

Concrete provider types.

type BuildSpec added in v0.42.0

type BuildSpec struct {
	ExecutionMode models.ExecutionMode
	Provider      string
	ModelID       string

	APIKey  string // cloud API key (OpenAI/Groq/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 DeepgramOptions
	// FoundrySpeech routes the Foundry provider to Azure Speech (MAI-Transcribe).
	FoundrySpeech *FoundrySpeechOpts
	// BearerToken replaces APIKey for Foundry when a Microsoft sign-in is
	// the credential (forwarded to the public BuildSpec).
	BearerToken framework.BearerTokenFunc
}

BuildSpec carries the inputs needed to construct a cloud STT provider for a given ExecutionMode. It mirrors pkg/speechkit/stt.BuildSpec but keeps the internal models.ExecutionMode type for host callers.

type CapabilityReporter added in v0.42.0

type CapabilityReporter = pkgstt.CapabilityReporter

Core contracts.

type DeepgramOptions added in v0.45.0

type DeepgramOptions = deepgram.Options

Concrete provider types.

type DeepgramOpts added in v0.61.32

type DeepgramOpts = allproviders.DeepgramOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type DeepgramProvider added in v0.42.0

type DeepgramProvider = deepgram.Provider

Concrete provider types.

type EnabledProviders added in v0.61.32

type EnabledProviders = allproviders.EnabledProviders

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type FoundryOpts added in v0.67.5

type FoundryOpts = allproviders.FoundryOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type FoundrySpeechOpts added in v0.68.24

type FoundrySpeechOpts = allproviders.FoundrySpeechOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type GroqOpts added in v0.61.32

type GroqOpts = allproviders.GroqOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type HuggingFaceOpts added in v0.61.32

type HuggingFaceOpts = allproviders.HuggingFaceOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type HuggingFaceProvider

type HuggingFaceProvider = huggingface.Provider

Concrete provider types.

type InstallStatus added in v0.17.0

type InstallStatus = local.InstallStatus

Core contracts.

type LocalOpts added in v0.61.32

type LocalOpts = allproviders.LocalOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type LocalProvider

type LocalProvider = local.Provider

Concrete provider types.

type OllamaOpts added in v0.61.32

type OllamaOpts = allproviders.OllamaOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type OpenAICompatibleProvider

type OpenAICompatibleProvider = openaicompat.Provider

Concrete provider types.

type OpenAIOpts added in v0.61.32

type OpenAIOpts = allproviders.OpenAIOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type OpenRouterOpts added in v0.61.32

type OpenRouterOpts = allproviders.OpenRouterOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type OpenRouterSTTProvider added in v0.28.2

type OpenRouterSTTProvider = openrouter.Provider

Concrete provider types.

type ResolvedTranscribeOptions added in v0.45.0

type ResolvedTranscribeOptions = pkgstt.ResolvedTranscribeOptions

Core contracts.

type Result

type Result = pkgstt.Result

Core contracts.

type RouterConfig added in v0.61.32

type RouterConfig = allproviders.RouterConfig

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type STTProvider

type STTProvider = pkgstt.STTProvider

Core contracts.

func Build added in v0.42.0

func Build(spec BuildSpec) (string, STTProvider, error)

Build forwards to the public pkg/speechkit/stt registry, converting the internal ExecutionMode to the framework enum.

type TranscribeOpts

type TranscribeOpts = pkgstt.TranscribeOpts

Core contracts.

type VPSOpts added in v0.61.32

type VPSOpts = allproviders.VPSOpts

Router assembly (single public assembly path shared by the Device- and Server-Targets; see pkg/speechkit/stt.BuildRouter).

type VPSProvider

type VPSProvider = vps.Provider

Concrete provider types.

type WordConfidence added in v0.46.0

type WordConfidence = pkgstt.WordConfidence

Core contracts.

Jump to

Keyboard shortcuts

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