Documentation
¶
Overview ¶
Package parakeetworker implements the ADR 0003 worker protocol for ASR by proxying to an OpenAI-compatible transcription server. Managed mode runs parakeet.cpp; external mode remains compatible with other servers exposing POST /v1/audio/transcriptions. Pure Go, no Python, no CGo: the model runtime stays in the external server, exactly like the llama.cpp LLM runner.
Index ¶
Constants ¶
const DefaultServerPort = 8990
DefaultServerPort is the loopback port used by a managed parakeet-server when callers do not choose one explicitly.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// BaseURL of an externally managed OpenAI-compatible server.
BaseURL string
// Model is the server-side model name; empty omits the form field. Most
// local servers have one model loaded, including parakeet.cpp.
Model string
HTTPClient *http.Client
// ServerPath is the parakeet-server executable for managed mode.
ServerPath string
// ServerModel is the local GGUF file loaded by a managed server. Downloads
// stay an explicit installer action; a worker never fetches an alias.
ServerModel string
// ServerPort is the managed server's loopback port. Zero uses
// DefaultServerPort.
ServerPort int
}
Options configure one worker session. Exactly one server mode is used: external (BaseURL points at an existing OpenAI-compatible server) or managed (ServerPath + ServerModel starts the bundled parakeet.cpp server on loopback).