stt

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MinWhisperModelBytes = pkgstt.MinWhisperModelBytes

Variables

View Source
var (
	ResolveTranscribeOptions    = pkgstt.ResolveTranscribeOptions
	ParseDeepgramKeyterms       = pkgstt.ParseDeepgramKeyterms
	ValidateModelPath           = pkgstt.ValidateModelPath
	FindWhisperBinary           = pkgstt.FindWhisperBinary
	SetSecretResolver           = pkgstt.SetSecretResolver
	NewGoogleSTTProvider        = pkgstt.NewGoogleSTTProvider
	NewDeepgramProvider         = pkgstt.NewDeepgramProvider
	NewAssemblyAIProvider       = pkgstt.NewAssemblyAIProvider
	NewHuggingFaceProvider      = pkgstt.NewHuggingFaceProvider
	NewOpenAISTTProvider        = pkgstt.NewOpenAISTTProvider
	NewOpenRouterSTTProvider    = pkgstt.NewOpenRouterSTTProvider
	NewGroqSTTProvider          = pkgstt.NewGroqSTTProvider
	NewLocalProvider            = pkgstt.NewLocalProvider
	NewVPSProvider              = pkgstt.NewVPSProvider
	NewVPSProviderWithModel     = pkgstt.NewVPSProviderWithModel
	NewOpenAICompatibleProvider = pkgstt.NewOpenAICompatibleProvider
	NewOllamaSTTProvider        = pkgstt.NewOllamaSTTProvider
)

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

Functions

This section is empty.

Types

type AssemblyAIProvider added in v0.42.0

type AssemblyAIProvider = pkgstt.AssemblyAIProvider

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/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 DeepgramOptions
	// Google streaming credential env-var names (optional), forwarded to the
	// Google provider so realtime transcription can authenticate.
	GoogleStreamingCredentialsEnv   string
	GoogleApplicationCredentialsEnv string
}

BuildSpec carries the inputs needed to construct a cloud STT provider for a given ExecutionMode. The host config layer resolves secrets and passes them in; the registry owns the provider's canonical name, endpoint, and constructor — the mapping that was previously duplicated across call sites.

type CapabilityReporter added in v0.42.0

type CapabilityReporter = pkgstt.CapabilityReporter

Core contracts.

type DeepgramOptions added in v0.45.0

type DeepgramOptions = pkgstt.DeepgramOptions

Concrete provider types.

type DeepgramProvider added in v0.42.0

type DeepgramProvider = pkgstt.DeepgramProvider

Concrete provider types.

type GoogleSTTProvider

type GoogleSTTProvider = pkgstt.GoogleSTTProvider

Concrete provider types.

type HuggingFaceProvider

type HuggingFaceProvider = pkgstt.HuggingFaceProvider

Concrete provider types.

type InstallStatus added in v0.17.0

type InstallStatus = pkgstt.InstallStatus

Core contracts.

type LocalProvider

type LocalProvider = pkgstt.LocalProvider

Concrete provider types.

type OpenAICompatibleProvider

type OpenAICompatibleProvider = pkgstt.OpenAICompatibleProvider

Concrete provider types.

type OpenRouterSTTProvider added in v0.28.2

type OpenRouterSTTProvider = pkgstt.OpenRouterSTTProvider

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 STTProvider

type STTProvider = pkgstt.STTProvider

Core contracts.

func Build added in v0.42.0

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

Build constructs the cloud STT provider for spec.ExecutionMode and returns its canonical Name plus the provider. It is the single source of truth for the ExecutionMode → (name, endpoint, constructor) mapping.

ExecutionModeLocal is host-managed (whisper.cpp subprocess lifecycle) and is intentionally not handled here.

type TranscribeOpts

type TranscribeOpts = pkgstt.TranscribeOpts

Core contracts.

type VPSProvider

type VPSProvider = pkgstt.VPSProvider

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