SpeechKit

module
v0.74.2 Latest Latest
Warning

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

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

README

SpeechKit

Go Reference License Go

SpeechKit is a local-first voice framework, server, device runtime, and the home of the shared voice contracts. The kernel is platform-neutral Go and can be embedded directly, run as a self-hosted server, or used through a device client.

Beta. Public APIs, config keys, and defaults can still change between minor releases. Use it in production only with version pins. Pre-1.0 releases use the v0.MAJOR.MINOR scheme; breaking changes are called out in each CHANGELOG.md entry.

Local testing standard: run the public verification gate before any deploy. See CONTRIBUTING.md.

Scope

This repository owns:

  • The platform-neutral Go voice kernel in pkg/speechkit: mode contracts, provider profiles, routing policy, readiness metadata, and the reusable Dictation, Assist, and Voice Agent services.
  • The self-host server target in app/cmd/speechkit-server, which wraps the same kernel behind HTTP and WebSocket APIs plus its OpenAPI/AsyncAPI contracts.
  • The agent-facing surfaces: the speechkit-mcp MCP server and the speechkit-cli command-line tool.
  • The Wails desktop device client in app/cmd/speechkit, a reference implementation of a device target — not a separate product. Windows is the supported client; macOS is a Dictation-only beta.
  • The shared voice surface contract consumed by Kombify Companion, Workbench, and embeds.

This repository does not own:

  • Product identity, tenancy, entitlement decisions, or edge policy. Those belong to kombify-Gateway and the platform standards.
  • Cloud AI provider-key custody for the platform. kombify-AI-Platform is the only cloud provider-key custodian; SpeechKit deliberately keeps its own self-contained provider layer so the open-core framework stays usable standalone.
  • The consuming client UX of Companion, Workbench, or any embedding host.

When a SpeechKit server is operated as a Kombify-hosted surface, its public traffic goes through https://api.kombify.io.

Runtime And Stack

Concern Choice
Language / runtime Go 1.26+ (kernel, server, CLI, MCP); Node.js 22+ for the client frontend
Device client Wails v3 (Windows 10/11 x64, WASAPI capture and playback; macOS 14+ arm64 beta, CoreAudio capture)
Server target Linux container, net/http + WebSocket, OpenAPI and AsyncAPI contracts
Package managers Go modules, npm, mise for the task surface
Authentication Bearer tokens or edge-auth for the server target; Auth0 JWT at api.kombify.io for the Kombify-hosted deployment
Data SQLite by default (pure-Go driver); optional PostgreSQL 17; Render Managed Postgres for the hosted server target
Voice providers whisper.cpp, Piper, OpenAI, Groq, Deepgram, AssemblyAI, Hugging Face, OpenRouter, Ollama; Google Cloud STT/TTS and Gemini Live as opt-in BYOK (never a default)
Delivery GitHub Releases (Windows installer and portable, ad-hoc signed macOS arm64 bundle), ghcr.io/kombifyio/speechkit-server container

SpeechKit imports no Kombify Go modules — it has no dependency on kombify-go-common and does not call /v1/ai/*. That self-containment is a deliberate open-core exception. The relationships that do exist are contract and edge relationships: shared client and voice contracts, and kombify-Gateway as the edge for the Kombify-hosted server target consumed by Companion and Workbench.

Module layout (ADR 0004): the public SDK pkg/speechkit/... is the root module github.com/kombifyio/SpeechKit (import paths unchanged, no app-only dependencies in its go.mod); the reference apps (app/cmd, app/internal, app/tools) are the nested module github.com/kombifyio/SpeechKit/app, which requires the root module. The committed root go.work joins both, so run Go commands for the apps from the repository root with ./app/... paths (for example go test ./app/internal/server/...); a bare ./... covers only the SDK module.

Public dependency and export rules are documented in the SDK surface boundary. Most of pkg/speechkit is pure Go; the few packages that need cgo (WASAPI capture, sherpa-onnx wake word) or an external binary (whisper-server) are listed in its Native Requirements table and fail closed with a sentinel error when the dependency is absent.

Repository Context

flowchart LR
  CORE["Shared client + voice contracts"] --> SK["kombify-SpeechKit"]
  HOST["Go host apps<br/>self-hosted servers"] --> SK
  SK --> GW["kombify-Gateway<br/>api.kombify.io"]
  GW --> COMP["kombify-Mobile<br/>Companion"]
  GW --> WB["kombify-Workbench"]

The public kernel and adapter boundary is documented in the SDK surface boundary.

Modes

The runtime targets share the same three strict modes:

Mode Purpose Boundary
Dictation Turn speech into text. STT only. No LLM rewriting, no utilities, no codewords.
Assist Turn speech or text into one useful result. Codeword, utility, or LLM output with optional TTS and explicit UI surface metadata.
Voice Agent Run realtime audio-to-audio dialogue. Live conversation for brainstorming, support, and fast follow-ups.

Hands-Free is not a fourth mode. It is an activation and voice-output layer over the three modes: wake activation, microphone capture, auto-end policy, and optional speaker output.

Meeting is not a fourth mode either. It is a separate recording service that captures the microphone and the system loopback as two channels, shares only the STT transcriber with Dictation, and writes the meeting up into a Meeting Review. Its public shape is pkg/speechkit/meeting plus one REST and SSE contract served by the desktop and the server; see Meeting Mode architecture.

Words and Replacements are the first-class customization axis over the same three modes. Words teach SpeechKit terms to recognize; Replacements define deterministic text, command, snippet, synonym, and template transformations. See the Words And Replacements standard.

Speaker diarization, identification, and attribution are add-on capabilities. Provider support and auth status are tracked in the voice capability matrix.

Targets

Target Entry point Use it when
Local-first Go kernel pkg/speechkit You embed voice into your own Go product, internal tool, prototype, or automation host.
Self-host server app/cmd/speechkit-server You need a durable Linux process for your own clients, teams, browsers, or centrally managed provider configuration.
Agent tools app/cmd/speechkit-mcp, app/cmd/speechkit-cli An agent or operator should inspect the framework, generate starters, validate payloads, or operate a self-hosted server.
Desktop device client app/cmd/speechkit You want a ready-to-run desktop reference host for local use, provider testing, or server-connected workflows.

Windows 10/11 x64 is the supported desktop client. macOS 14+ on Apple Silicon is a beta: an ad-hoc signed SpeechKit.app bundle that does Dictation — microphone capture, global hotkeys, text injection, a menu-bar item, the bundled local whisper-server and the cloud STT providers. Meeting system audio, screen snapshots, wake word, and the local LLM are not ported to macOS: each refuses with a typed error and its UI is hidden. Voice Agent and Assist are not verified there yet. Because the bundle carries no Developer ID, the download needs one documented xattr step before it opens and macOS asks for Microphone and Accessibility again after every update; UNSIGNED-MACOS-RELEASE.txt ships beside it and explains both.

Linux is a server runtime, not a desktop capture client. Default device hotkeys are Ctrl+Win (Dictation), Win+Alt (Assist), and Ctrl+Shift (Voice Agent); the stored values are the same on macOS, where they read as Command, Option, and Control.

Public Windows builds are published on GitHub Releases. A fresh clone also carries current installer metadata in release/latest/windows/, including canonical download URLs and SHA-256 hashes; the GitHub Release assets remain canonical.

Quick Start

Embed the Go kernel:

go get github.com/kombifyio/SpeechKit

Import only the components your host needs: pkg/speechkit/dictation for dictation, pkg/speechkit/wakeword for activation, pkg/speechkit/tts for spoken output, pkg/speechkit/companion plus Assist/TTS adapters for one-shot Voice Companion hosts, pkg/speechkit/speaker for speaker-aware apps, and pkg/speechkit/client for server-connected apps.

To drive the framework from a config.toml instead of building settings by hand, pkg/speechkit/hostconfig turns a config file into the public ModeSettings and a starting RuntimePolicy in one call:

settings, policy, err := hostconfig.Load("config.toml")

A missing file yields the shipped defaults (local-only, zero cloud keys); a broken file returns an error wrapping hostconfig.ErrMalformedConfig. The package owns the loader semantics and the desktop app delegates to it, so an embedder and the reference app read the same config.toml identically.

Real providers run in-process — no SpeechKit server required. A runnable reference:

# in-process Voice Agent (OpenAI Realtime), no server:
OPENAI_API_KEY=... go run ./examples/voice-agent/in-process

Scaffold a single-prompt Go starter, run the server image, or drive the agent tools:

speechkit-cli init --template go-assist-voice-companion ./my-companion
docker pull ghcr.io/kombifyio/speechkit-server:latest
go run ./app/cmd/speechkit-mcp --mode=docs,test
go run ./app/cmd/speechkit-cli status --server "$SPEECHKIT_SERVER_URL" --token "$SPEECHKIT_SERVER_TOKEN"

More starting points: Framework API, Adding a custom provider, Voice Companion, and examples/.

Common Commands

Public source verification:

go test ./pkg/... ./app/cmd/speechkit-cli/... ./app/cmd/speechkit-mcp/... ./examples/...
GOOS=linux CGO_ENABLED=0 go build ./app/cmd/speechkit-server ./app/cmd/speechkit-mcp ./app/cmd/speechkit-cli

The complete public-clone gate is documented in CONTRIBUTING.md.

Local Gate

The repository gate runs locally before CI or any deploy dispatch. CI does not replace it.

mise run test:e2e:local          # the canonical bounded exact-source gate
mise run doctor:container        # confirm a container engine is reachable first

test:e2e:local is a real gate, not a wrapper: it runs the bounded device-agent → Home Assistant → state-verify → Piper process end-to-end (test:device-agent-ha-local-e2e) and the headless dictation hold-to-talk capture gate (test:dictation-hold-gate, which needs no microphone, keyboard or Docker).

Any Docker-API engine satisfies the container requirement — Docker Desktop, Podman, colima or a remote DOCKER_HOST. Docker Desktop is one option, never a prerequisite.

Two surfaces need a different path. The Server-Target is //go:build linux and cannot run natively on a Windows host; run it in a golang:1.26 container, which needs pkg-config, libopus-dev, libopusfile-dev and libsoxr-dev installed before the audio-dependent packages will build. The Windows Device-Target builds through powershell -ExecutionPolicy Bypass -File scripts/build.ps1 -SkipInstaller; a raw go build ./app/cmd/speechkit/ bypasses required CGo and ldflags.

Gate contract and evidence rules: workspace LOCAL-E2E-DEPLOYMENT-STANDARD.md. While the product version is below 1.0.0 the fast-pre-1.0 profile defers this gate to stable promotion and production deploys; fail-closed production receipt gates and provider/secret safety invariants stay mandatory regardless.

Repository Layout

pkg/speechkit/          Public Go kernel and SDK surface
app/cmd/speechkit/          Desktop device client, Windows and macOS (reference implementation)
app/cmd/speechkit-server/   Self-host server entry point
app/cmd/speechkit-mcp/      MCP server for agent docs, validation, and management
app/cmd/speechkit-cli/      CLI diagnostics, scaffolding, and quick actions
app/internal/           Implementation packages behind the public binaries
app/go.mod              Nested module for the reference apps (cmd/, internal/, tools/)
go.work                 Joins the root SDK module and ./app for local development
docs/                   Detailed documentation
deploy/                 Container and server configuration
scripts/                Install and release-note helpers

Standards

Documentation

Document Purpose
docs/README.md Documentation index
docs/sdk/README.md SDK in 10 minutes: first transcript and where to go next
docs/sdk/custom-provider.md Add your own STT/TTS/live provider
docs/architecture/sdk-surface-boundary.md Public SDK and export boundary
docs/architecture/android-sdk-surface-boundary.md Android Gradle module cut for hosts
android/README.md Android modules: which to depend on, consume, build
docs/speechkit-framework-api.md Public framework API contracts
docs/api/openapi.v1.yaml Local control-plane OpenAPI
docs/server/README.md Server target documentation
docs/server/openapi.v1.yaml Server OpenAPI contract
docs/mcp/README.md MCP server documentation
docs/agent/llms.txt Agent entrypoint
CONTRIBUTING.md Public development and verification workflow
CHANGELOG.md Release notes

Generated agent documentation never overrides this README or the detailed public documentation.

Issue Tracking

Public issues and contributions use the GitHub repository. Internal planning metadata is not part of the public source export.

Dual-Repo

The consumer-facing source repository is kombifyio/SpeechKit: the go get path, Go Reference badge, container image, and release assets all use that identity. The public source tree is produced by an allowlist-based export from governed working source. Exported code and documentation must remain usable without access to that working repository; the three identities (working repository, public mirror, Go module path) and the rules that follow are spelled out in CONTRIBUTING.md; the package boundary is in the SDK surface boundary.

Trust

Public releases include checksums and an unsigned-artifact notice while the no-cost unsigned release path is active: UNSIGNED-WINDOWS-RELEASE.txt for the Windows assets, and UNSIGNED-MACOS-RELEASE.txt for the macOS bundle, which is ad-hoc signed rather than notarized. Download only from the official kombifyio/SpeechKit releases.

License

Apache-2.0. See LICENSE.

Directories

Path Synopsis
examples module
agentbridge-codex command
Command agentbridge-codex demonstrates the External Coding Agent Bridge in exec mode: one prompt in, normalized events out.
Command agentbridge-codex demonstrates the External Coding Agent Bridge in exec mode: one prompt in, normalized events out.
assist/in-process command
Example: fully in-process Assist — text in, one answer out, no SpeechKit server.
Example: fully in-process Assist — text in, one answer out, no SpeechKit server.
box-evidence-harness command
Command box-evidence-harness is a headless "fake box": it drives the exact Voice-Agent WebSocket path the kombify-Box firmware uses and reports the two runtime facts the firmware hardcodes against.
Command box-evidence-harness is a headless "fake box": it drives the exact Voice-Agent WebSocket path the kombify-Box firmware uses and reports the two runtime facts the firmware hardcodes against.
embed-companion command
embed-event-bus command
embed-tts command
kombify-box-satellite command
Der kombify-box-Companion ist ein Windows-USB-Host (malgo/WASAPI, sherpa-onnx KWS, CDC-COM-Port) und braucht cgo.
Der kombify-box-Companion ist ein Windows-USB-Host (malgo/WASAPI, sherpa-onnx KWS, CDC-COM-Port) und braucht cgo.
library command
Example: wiring SpeechKit with a fake provider, not real speech recognition.
Example: wiring SpeechKit with a fake provider, not real speech recognition.
local-dictation command
Local dictation through the public SDK, using a WAV file or explicit microphone capture.
Local dictation through the public SDK, using a WAV file or explicit microphone capture.
meeting/synthetic-host command
Example: embed the public Meeting runtime in a Go host with synthetic input.
Example: embed the public Meeting runtime in a Go host with synthetic input.
provider-catalog command
Example: reading SpeechKit's public mode and provider catalog.
Example: reading SpeechKit's public mode and provider catalog.
voice-agent/game-instructor command
Example: 15-minute Voice-Agent game instructor.
Example: 15-minute Voice-Agent game instructor.
voice-agent/in-process command
Example: fully in-process Voice Agent — no SpeechKit server in the path.
Example: fully in-process Voice Agent — no SpeechKit server in the path.
voice-agent/provider-switching command
Package main demonstrates provider/profile/model selection without live credentials.
Package main demonstrates provider/profile/model selection without live credentials.
pkg
speechkit
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.
speechkit/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").
speechkit/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.
speechkit/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):
speechkit/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.
speechkit/assist
Package assist provides an embeddable Assist Mode service.
Package assist provides an embeddable Assist Mode service.
speechkit/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.
speechkit/assist/shortcuts
Package shortcuts implements pattern-matched intent shortcuts used by Assist Mode.
Package shortcuts implements pattern-matched intent shortcuts used by Assist Mode.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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).
speechkit/catalog
Package catalog ships the built-in SpeechKit provider and model catalog.
Package catalog ships the built-in SpeechKit provider and model catalog.
speechkit/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).
speechkit/companion
Package companion provides small composers for hands-free SpeechKit hosts.
Package companion provides small composers for hands-free SpeechKit hosts.
speechkit/customize
Package customize defines SpeechKit's public Words/Replacements contract.
Package customize defines SpeechKit's public Words/Replacements contract.
speechkit/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.
speechkit/dictation
Package dictation provides an embeddable strict Dictation runtime.
Package dictation provides an embeddable strict Dictation runtime.
speechkit/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).
speechkit/internal/logutil
Package logutil resolves optional per-instance loggers for SpeechKit library types.
Package logutil resolves optional per-instance loggers for SpeechKit library types.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/meeting
Package meeting owns the runtime behind Meeting 2.0 capture.
Package meeting owns the runtime behind Meeting 2.0 capture.
speechkit/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).
speechkit/pipeline
Package pipeline is the composable capture-to-transcript engine of SpeechKit.
Package pipeline is the composable capture-to-transcript engine of SpeechKit.
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.
speechkit/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.
speechkit/speaker
Package speaker defines SpeechKit's public speaker diarization and attribution contracts.
Package speaker defines SpeechKit's public speaker diarization and attribution contracts.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/tts
Package tts exposes the embeddable SpeechKit text-to-speech surface.
Package tts exposes the embeddable SpeechKit text-to-speech surface.
speechkit/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.
speechkit/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.
speechkit/voiceagent
Package voiceagent provides an embeddable Voice Agent service.
Package voiceagent provides an embeddable Voice Agent service.
speechkit/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.
speechkit/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.
speechkit/voiceagent/live
Package live exposes the low-level Voice Agent realtime-protocol types.
Package live exposes the low-level Voice Agent realtime-protocol types.
speechkit/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.
speechkit/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.
speechkit/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).
speechkit/voiceagent/live/foundry
Package foundry adapts the OpenAI Realtime provider to Microsoft Foundry.
Package foundry adapts the OpenAI Realtime provider to Microsoft Foundry.
speechkit/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.
speechkit/voiceagent/live/livecontract
Package livecontract provides reusable conformance checks for LiveProvider implementations.
Package livecontract provides reusable conformance checks for LiveProvider implementations.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/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.
speechkit/wakeword/training
Package training captures wake-word activations for model training.
Package training captures wake-word activations for model training.
speechkit/x module

Jump to

Keyboard shortcuts

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