pkg/

directory
v0.76.9 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0

Directories

Path Synopsis
Package speechkit provides the public SDK for embedding SpeechKit voice capture, transcription, and assist/voice-agent pipelines into host applications.
Package speechkit provides the public SDK for embedding SpeechKit voice capture, transcription, and assist/voice-agent pipelines into host applications.
agentbridge
Package agentbridge defines the framework-neutral seam through which a SpeechKit host fronts an external coding agent (adopted 2026-08-10, AI-VOICE-SPEECHKIT-TARGET.md "External Coding Agent Bridge").
Package agentbridge defines the framework-neutral seam through which a SpeechKit host fronts an external coding agent (adopted 2026-08-10, AI-VOICE-SPEECHKIT-TARGET.md "External Coding Agent Bridge").
agentbridge/codex
Package codex drives the official OpenAI Codex binary as an agentbridge.Agent.
Package codex drives the official OpenAI Codex binary as an agentbridge.Agent.
agentbridge/voicetools
Package voicetools binds an agentbridge.Agent to the voice agent's tool surface with the "Call GPT" semantics (owner decision 2026-08-10, AI-VOICE-SPEECHKIT-TARGET.md External Coding Agent Bridge):
Package voicetools binds an agentbridge.Agent to the voice agent's tool surface with the "Call GPT" semantics (owner decision 2026-08-10, AI-VOICE-SPEECHKIT-TARGET.md External Coding Agent Bridge):
agentkit
Package agentkit provides a small Go harness for building SpeechKit Voice Agent hosts.
Package agentkit provides a small Go harness for building SpeechKit Voice Agent hosts.
assist
Package assist provides an embeddable Assist Mode service.
Package assist provides an embeddable Assist Mode service.
assist/genkitadapter
Package genkitadapter keeps host-specific Assist wiring out of the core public assist package.
Package genkitadapter keeps host-specific Assist wiring out of the core public assist package.
assist/shortcuts
Package shortcuts implements pattern-matched intent shortcuts used by Assist Mode.
Package shortcuts implements pattern-matched intent shortcuts used by Assist Mode.
assist/skills
Package skills exposes SpeechKit's Voice-Companion skill catalog — Time, Date, Math, Weather, Timer, Reminder, Wikipedia, Temperature, plus a fail-closed Home Assistant boundary — as a public assist.ToolMatcher + assist.ToolExecutor pair, ready to plug into an assist.Service.
Package skills exposes SpeechKit's Voice-Companion skill catalog — Time, Date, Math, Weather, Timer, Reminder, Wikipedia, Temperature, plus a fail-closed Home Assistant boundary — as a public assist.ToolMatcher + assist.ToolExecutor pair, ready to plug into an assist.Service.
assist/skills/companion
Package companion provides the Voice-Companion skill implementations behind pkg/speechkit/assist/skills.
Package companion provides the Voice-Companion skill implementations behind pkg/speechkit/assist/skills.
assist/toolbridge
Package toolbridge adapts Assist-mode tools (assist.ToolMatcher / assist.ToolExecutor — the deterministic skill layer, e.g.
Package toolbridge adapts Assist-mode tools (assist.ToolMatcher / assist.ToolExecutor — the deterministic skill layer, e.g.
audio
Package audio provides the shared PCM audio primitives for the SpeechKit capture format: 16kHz S16 mono constants, WAV framing, duration math, and RMS level estimation.
Package audio provides the shared PCM audio primitives for the SpeechKit capture format: 16kHz S16 mono constants, WAV framing, duration math, and RMS level estimation.
audio/capture
Package capture is the public microphone / system-audio capture layer of the SpeechKit framework: backend registry (RegisterBackend, Open), capture Session contract, device enumeration (ListCaptureDevices, ListOutputDevices), and the pooled PCM frame buffers (FramePool).
Package capture is the public microphone / system-audio capture layer of the SpeechKit framework: backend registry (RegisterBackend, Open), capture Session contract, device enumeration (ListCaptureDevices, ListOutputDevices), and the pooled PCM frame buffers (FramePool).
catalog
Package catalog ships the built-in SpeechKit provider and model catalog.
Package catalog ships the built-in SpeechKit provider and model catalog.
client
Package client provides a typed HTTP client for talking to a remote SpeechKit Server (the `app/cmd/speechkit-server` Linux container or any compatible deployment).
Package client provides a typed HTTP client for talking to a remote SpeechKit Server (the `app/cmd/speechkit-server` Linux container or any compatible deployment).
companion
Package companion provides small composers for hands-free SpeechKit hosts.
Package companion provides small composers for hands-free SpeechKit hosts.
customize
Package customize defines Words, Replacements and shared recognition hints.
Package customize defines Words, Replacements and shared recognition hints.
deviceagent
Package deviceagent implements the credential-minimal LAN-side SpeechKit device-agent client and its versioned wire contract.
Package deviceagent implements the credential-minimal LAN-side SpeechKit device-agent client and its versioned wire contract.
dictation
Package dictation provides an embeddable strict Dictation runtime.
Package dictation provides an embeddable strict Dictation runtime.
hostconfig
Package hostconfig turns a SpeechKit TOML configuration file into the public SDK types an embedding host drives the framework with: a speechkit.ModeSettings (which modes are on, their hotkeys and selected provider profiles) and a permissive speechkit.RuntimePolicy (which modes the host exposes and whether fallbacks are allowed).
Package hostconfig turns a SpeechKit TOML configuration file into the public SDK types an embedding host drives the framework with: a speechkit.ModeSettings (which modes are on, their hotkeys and selected provider profiles) and a permissive speechkit.RuntimePolicy (which modes the host exposes and whether fallbacks are allowed).
internal/logutil
Package logutil resolves optional per-instance loggers for SpeechKit library types.
Package logutil resolves optional per-instance loggers for SpeechKit library types.
internal/pcmresample
Package pcmresample holds the PCM16 rate conversion shared by the realtime Voice Agent providers and the realtime STT adapters, so an STT adapter does not link the Voice Agent package for it.
Package pcmresample holds the PCM16 rate conversion shared by the realtime Voice Agent providers and the realtime STT adapters, so an STT adapter does not link the Voice Agent package for it.
internal/sdkparity
Package sdkparity holds test-only parity harnesses that run the same behavioral assertions against the public SDK and reference-app implementations.
Package sdkparity holds test-only parity harnesses that run the same behavioral assertions against the public SDK and reference-app implementations.
internal/speakercontract
Package speakercontract holds test-only conformance helpers that speaker provider tests use to assert the public speaker contracts: complete diarization results, well-formed realtime frames, unknown labels left unattributed, and provider errors that name the provider without leaking credentials.
Package speakercontract holds test-only conformance helpers that speaker provider tests use to assert the public speaker contracts: complete diarization results, well-formed realtime frames, unknown labels left unattributed, and provider errors that name the provider without leaking credentials.
internal/testutil
Package testutil holds test helpers shared across SpeechKit's kernel packages — temp-dir builders, fake clocks, identity injectors.
Package testutil holds test helpers shared across SpeechKit's kernel packages — temp-dir builders, fake clocks, identity injectors.
lifecycle
Package lifecycle owns mode start/stop orchestration and refcounted shared dependencies for SpeechKit hosts.
Package lifecycle owns mode start/stop orchestration and refcounted shared dependencies for SpeechKit hosts.
localization
Package localization resolves stable SpeechKit message IDs against the repository-owned locale catalogs.
Package localization resolves stable SpeechKit message IDs against the repository-owned locale catalogs.
meeting
Package meeting owns the runtime behind Meeting 2.0 capture.
Package meeting owns the runtime behind Meeting 2.0 capture.
meeting/export
Package export is the notes export SPI of Meeting Mode: one Document that describes a finished meeting, a structural Outline built from it, Markdown and XHTML renderers of that outline, and the Target interface every sync destination implements (a Markdown file, OneNote, Notion or a host's own).
Package export is the notes export SPI of Meeting Mode: one Document that describes a finished meeting, a structural Outline built from it, Markdown and XHTML renderers of that outline, and the Target interface every sync destination implements (a Markdown file, OneNote, Notion or a host's own).
netsec
Package netsec provides centralized network security primitives used by every HTTP-based provider in SpeechKit (STT, TTS, LLM, downloads).
Package netsec provides centralized network security primitives used by every HTTP-based provider in SpeechKit (STT, TTS, LLM, downloads).
pipeline
Package pipeline is the composable capture-to-transcript engine of SpeechKit.
Package pipeline is the composable capture-to-transcript engine of SpeechKit.
procguard
Package procguard ties long-lived child processes to the lifetime of the process that spawned them.
Package procguard ties long-lived child processes to the lifetime of the process that spawned them.
provideropts
Package provideropts defines SpeechKit's provider-neutral voice option vocabulary and the manifest/resolve types used by concrete provider adapters.
Package provideropts defines SpeechKit's provider-neutral voice option vocabulary and the manifest/resolve types used by concrete provider adapters.
speaker
Package speaker defines SpeechKit's public speaker diarization and attribution contracts.
Package speaker defines SpeechKit's public speaker diarization and attribution contracts.
storage
Package storage defines the public storage-backend contract: backend capabilities and metadata, install/device/user/tenant scopes with their enforcement policies, and the configuration shape hosts use to construct a backend.
Package storage defines the public storage-backend contract: backend capabilities and metadata, install/device/user/tenant scopes with their enforcement policies, and the configuration shape hosts use to construct a backend.
stt
Package stt defines the SpeechKit speech-to-text contracts: the STTProvider interface, transcribe options and results, the Router that picks a provider per request, the AsTranscriber bridge into the pipeline, and the helpers the adapters share.
Package stt defines the SpeechKit speech-to-text contracts: the STTProvider interface, transcribe options and results, the Router that picks a provider per request, the AsTranscriber bridge into the pipeline, and the helpers the adapters share.
stt/allproviders
Package allproviders is the batteries-included STT assembly layer: it knows every provider SpeechKit ships and turns a host's resolved credentials into a ready stt.Router.
Package allproviders is the batteries-included STT assembly layer: it knows every provider SpeechKit ships and turns a host's resolved credentials into a ready stt.Router.
stt/assemblyai
Package assemblyai adapts the AssemblyAI speech-to-text products to stt.STTProvider: the synchronous endpoint on sync.assemblyai.com for short dictation clips, the async upload-and-poll API on api.assemblyai.com for everything else (diarization, speaker identification, redaction), and the v3 realtime WebSocket for live dictation and speaker streams.
Package assemblyai adapts the AssemblyAI speech-to-text products to stt.STTProvider: the synchronous endpoint on sync.assemblyai.com for short dictation clips, the async upload-and-poll API on api.assemblyai.com for everything else (diarization, speaker identification, redaction), and the v3 realtime WebSocket for live dictation and speaker streams.
stt/azurespeech
Package azurespeech implements stt.STTProvider on the Azure Speech fast-transcription surface of a Microsoft Foundry resource.
Package azurespeech implements stt.STTProvider on the Azure Speech fast-transcription surface of a Microsoft Foundry resource.
stt/deepgram
Package deepgram adapts Deepgram's speech APIs to stt.STTProvider: the Listen REST endpoint (/v1/listen) for batch transcription, the Listen WebSocket for live dictation and speaker streams, and Flux (/v2/listen) for conversational turn detection.
Package deepgram adapts Deepgram's speech APIs to stt.STTProvider: the Listen REST endpoint (/v1/listen) for batch transcription, the Listen WebSocket for live dictation and speaker streams, and Flux (/v2/listen) for conversational turn detection.
stt/geminitranscribe
Package geminitranscribe adapts Google's Gemini Transcribe model (gemini-3.5-transcribe) on the Gemini API Interactions endpoint (POST https://generativelanguage.googleapis.com/v1beta/interactions) to stt.STTProvider.
Package geminitranscribe adapts Google's Gemini Transcribe model (gemini-3.5-transcribe) on the Gemini API Interactions endpoint (POST https://generativelanguage.googleapis.com/v1beta/interactions) to stt.STTProvider.
stt/google
Package google adapts Google Cloud Speech-to-Text to stt.STTProvider: v1 batch recognition with optional word-level speaker diarization, v2 regional batch recognition for Chirp 3 (ModelChirp3) and v2 StreamingRecognize for realtime transcription.
Package google adapts Google Cloud Speech-to-Text to stt.STTProvider: v1 batch recognition with optional word-level speaker diarization, v2 regional batch recognition for Chirp 3 (ModelChirp3) and v2 StreamingRecognize for realtime transcription.
stt/huggingface
Package huggingface adapts the Hugging Face Inference API (the hf-inference route on router.huggingface.co) to stt.STTProvider for hosted ASR models such as Whisper.
Package huggingface adapts the Hugging Face Inference API (the hf-inference route on router.huggingface.co) to stt.STTProvider for hosted ASR models such as Whisper.
stt/local
Package local is the built-in speech-to-text provider: it runs a whisper.cpp whisper-server child process on loopback and speaks its OpenAI-compatible transcription route, so audio never leaves the machine.
Package local is the built-in speech-to-text provider: it runs a whisper.cpp whisper-server child process on loopback and speaks its OpenAI-compatible transcription route, so audio never leaves the machine.
stt/openaicompat
Package openaicompat adapts any server that speaks the OpenAI /v1/audio/transcriptions API to stt.STTProvider: OpenAI itself, Groq, Microsoft Foundry's OpenAI-compatible route, Ollama, and self-hosted whisper-server deployments.
Package openaicompat adapts any server that speaks the OpenAI /v1/audio/transcriptions API to stt.STTProvider: OpenAI itself, Groq, Microsoft Foundry's OpenAI-compatible route, Ollama, and self-hosted whisper-server deployments.
stt/openrouter
Package openrouter adapts OpenRouter's JSON speech-to-text endpoint (https://openrouter.ai/api/v1/audio/transcriptions) to stt.STTProvider.
Package openrouter adapts OpenRouter's JSON speech-to-text endpoint (https://openrouter.ai/api/v1/audio/transcriptions) to stt.STTProvider.
stt/sttcontract
Package sttcontract provides a reusable conformance suite that every stt.STTProvider implementation is expected to satisfy.
Package sttcontract provides a reusable conformance suite that every stt.STTProvider implementation is expected to satisfy.
stt/vps
Package vps is the self-hosted whisper-server provider for SpeechKit: an OpenAI-compatible endpoint a user runs themselves, so audio never reaches a commercial provider.
Package vps is the self-hosted whisper-server provider for SpeechKit: an OpenAI-compatible endpoint a user runs themselves, so audio never reaches a commercial provider.
telemetry
Package telemetry records named SpeechKit framework outcomes on the active OpenTelemetry span.
Package telemetry records named SpeechKit framework outcomes on the active OpenTelemetry span.
tts
Package tts exposes the embeddable SpeechKit text-to-speech surface.
Package tts exposes the embeddable SpeechKit text-to-speech surface.
tts/ttscontract
Package ttscontract provides a reusable conformance suite that every tts.Provider implementation is expected to satisfy.
Package ttscontract provides a reusable conformance suite that every tts.Provider implementation is expected to satisfy.
ttsroute
Package ttsroute holds the single source of truth that maps a Voice-Output profile ID to the provider name the TTS routers use internally.
Package ttsroute holds the single source of truth that maps a Voice-Output profile ID to the provider name the TTS routers use internally.
voiceagent
Package voiceagent provides an embeddable Voice Agent service.
Package voiceagent provides an embeddable Voice Agent service.
voiceagent/a2a
Package a2a adapts a registered A2A agent to SpeechKit's cascaded voice pipeline.
Package a2a adapts a registered A2A agent to SpeechKit's cascaded voice pipeline.
voiceagent/cascaded
Package cascaded implements a turn-based STT -> LLM -> TTS voice agent provider.
Package cascaded implements a turn-based STT -> LLM -> TTS voice agent provider.
voiceagent/live
Package live exposes the low-level Voice Agent realtime-protocol types.
Package live exposes the low-level Voice Agent realtime-protocol types.
voiceagent/live/allproviders
Package allproviders is the batteries-included realtime Voice Agent assembly layer: it knows every provider SpeechKit ships and resolves a provider id, alias or profile id to a live provider.
Package allproviders is the batteries-included realtime Voice Agent assembly layer: it knows every provider SpeechKit ships and resolves a provider id, alias or profile id to a live provider.
voiceagent/live/assemblyai
Package assemblyai adapts the AssemblyAI Voice Agent WebSocket API (wss://agents.assemblyai.com/v1/ws) to live.LiveProvider.
Package assemblyai adapts the AssemblyAI Voice Agent WebSocket API (wss://agents.assemblyai.com/v1/ws) to live.LiveProvider.
voiceagent/live/deepgram
Package deepgram adapts the Deepgram Voice Agent API (wss://agent.deepgram.com/v1/agent/converse) to live.LiveProvider: one WebSocket carries listen (Flux or Nova STT), think (a Deepgram-managed or bring-your-own LLM) and speak (Aura-2 or Flux TTS).
Package deepgram adapts the Deepgram Voice Agent API (wss://agent.deepgram.com/v1/agent/converse) to live.LiveProvider: one WebSocket carries listen (Flux or Nova STT), think (a Deepgram-managed or bring-your-own LLM) and speak (Aura-2 or Flux TTS).
voiceagent/live/foundry
Package foundry adapts the OpenAI Realtime provider to Microsoft Foundry.
Package foundry adapts the OpenAI Realtime provider to Microsoft Foundry.
voiceagent/live/gemini
Package gemini adapts the Google Gemini Live API (via the google.golang.org/genai SDK) to live.LiveProvider.
Package gemini adapts the Google Gemini Live API (via the google.golang.org/genai SDK) to live.LiveProvider.
voiceagent/live/livecontract
Package livecontract provides reusable conformance checks for LiveProvider implementations.
Package livecontract provides reusable conformance checks for LiveProvider implementations.
voiceagent/live/openai
Package openai adapts the OpenAI Realtime WebSocket API (wss://api.openai.com/v1/realtime, GA session shape) to live.LiveProvider.
Package openai adapts the OpenAI Realtime WebSocket API (wss://api.openai.com/v1/realtime, GA session shape) to live.LiveProvider.
voiceagent/live/openailive
Package openailive adapts OpenAI's full-duplex Live API (model gpt-live-1, WebSocket wss://api.openai.com/v1/live/sessions) to live.LiveProvider.
Package openailive adapts OpenAI's full-duplex Live API (model gpt-live-1, WebSocket wss://api.openai.com/v1/live/sessions) to live.LiveProvider.
voiceagent/live/voicelive
Package voicelive adapts the OpenAI Realtime provider to Microsoft Foundry's Voice Live API.
Package voicelive adapts the OpenAI Realtime provider to Microsoft Foundry's Voice Live API.
voiceagent/live/xai
Package xai adapts xAI's Grok Voice Agent API (speech-to-speech over wss://api.x.ai/v1/realtime?model=grok-voice-3.0) to live.LiveProvider.
Package xai adapts xAI's Grok Voice Agent API (speech-to-speech over wss://api.x.ai/v1/realtime?model=grok-voice-3.0) to live.LiveProvider.
voiceagent/local
Package local implements voiceagent.Provider on top of an in-process live session — realtime voice agents (Deepgram Voice Agent, Gemini Live, OpenAI Realtime, AssemblyAI, cascaded) without a speechkit-server.
Package local implements voiceagent.Provider on top of an in-process live session — realtime voice agents (Deepgram Voice Agent, Gemini Live, OpenAI Realtime, AssemblyAI, cascaded) without a speechkit-server.
voiceagent/responses
Package responses adapts one explicitly selected own endpoint to SpeechKit's existing cascaded/native conversation pipeline.
Package responses adapts one explicitly selected own endpoint to SpeechKit's existing cascaded/native conversation pipeline.
wakeword
Package wakeword exposes embeddable SpeechKit wake-word contracts: the phrase catalog, detection events, the hotkey Dispatcher, AutoEndPolicy and the engine-neutral Detector and Pipeline.
Package wakeword exposes embeddable SpeechKit wake-word contracts: the phrase catalog, detection events, the hotkey Dispatcher, AutoEndPolicy and the engine-neutral Detector and Pipeline.
wakeword/sherpa
Package sherpa is the sherpa-onnx keyword-spotting engine for pkg/speechkit/wakeword.
Package sherpa is the sherpa-onnx keyword-spotting engine for pkg/speechkit/wakeword.
wakeword/training
Package training captures wake-word activations for model training.
Package training captures wake-word activations for model training.
x module

Jump to

Keyboard shortcuts

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