local

package
v0.64.0 Latest Latest
Warning

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

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

Documentation

Overview

Package local is the built-in whisper.cpp provider for SpeechKit: a subprocess the host starts and stops, so transcription never leaves the machine.

In v0.64.0 the identifiers below alias the implementation that still lives in pkg/speechkit/stt. v0.65.0 moves the implementation here and deletes the old names, so code written against this package needs no further change.

Index

Constants

View Source
const MinWhisperModelBytes = stt.MinWhisperModelBytes

MinWhisperModelBytes is the smallest file size accepted as a real model; anything smaller is a truncated or failed download.

Variables

This section is empty.

Functions

func FindWhisperBinary

func FindWhisperBinary() (string, error)

FindWhisperBinary locates the whisper-server executable without starting it, so a host can report runtime readiness.

func SetSubprocessPriorityLowered

func SetSubprocessPriorityLowered(lowered bool)

SetSubprocessPriorityLowered toggles whether the whisper.cpp subprocess is spawned at below-normal priority (default true). No-op outside Windows.

func ValidateModelPath

func ValidateModelPath(path string) error

ValidateModelPath verifies that path points at a whisper.cpp ggml model file with a safe filename: absolute, no traversal, ggml-*.bin.

Types

type InstallStatus

type InstallStatus = stt.InstallStatus

InstallStatus reports whether the binary and model a Provider needs are present and usable.

type Provider

type Provider = stt.LocalProvider

Provider transcribes through a host-managed whisper.cpp server.

func New

func New(port int, modelPath, gpu string) *Provider

New returns a whisper.cpp provider. The process is not started; lifecycle stays with the host.

Jump to

Keyboard shortcuts

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