parakeetworker

package
v0.1.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: GPL-3.0 Imports: 21 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

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

View Source
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

func Run

func Run(reader io.Reader, writer io.Writer, options Options) error

Run speaks the worker protocol over reader/writer until EOF or shutdown.

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

Jump to

Keyboard shortcuts

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