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 ¶
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 ¶
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 ¶
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.