gateway

module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT

README

Speko Gateway

Speko Gateway is the open customer-side runtime for real-time voice AI. It gives agents one local streaming protocol across voice providers, keeps BYOK credentials inside your process, and can optionally use Speko for managed routing, observability, and consolidated billing.

Early preview: the protocol is versioned, but breaking changes may occur before the first stable release.

Versions and changelog

Pin a released version in production. Each release has notes on the releases page. Watch the repo with Custom → Releases to get notified.

Tag What it points to Use it for
0.1.0 One exact release. The workflow refuses to rebuild a released version. Production, when you want to choose every upgrade.
0.1 The newest 0.1.x release. Gets fixes only. Production, when you want fixes automatically.
latest, edge, sha-<commit> Every merge to main. Moves several times a day. Testing unreleased changes. Not for production.

Add Gateway to a Pipecat agent

Gateway includes native Pipecat STTService and TTSService processors with utterance commits, streaming sentence synthesis, barge-in cancellation, and a Pipecat Cloud-compatible sidecar startup hook. See the complete Pipecat integration guide.

Add Gateway to a LiveKit agent

The public image contains both the Gateway binary and its Python integration. Apply this diff to the official LiveKit Python agent starter Dockerfile:

 ARG PYTHON_VERSION=3.14
+FROM spekoai/gateway:0.1 AS speko-gateway
 FROM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim AS base

 FROM base AS build
 WORKDIR /app
 COPY pyproject.toml uv.lock ./
 RUN mkdir -p src
 RUN uv sync --locked
+COPY --from=speko-gateway /opt/speko/python /opt/speko/python
+RUN uv pip install --python /app/.venv/bin/python /opt/speko/python
 RUN uv run --module livekit.agents download-files
 COPY . .

 FROM base
 ARG UID=10001
 RUN adduser \
     --disabled-password \
     --gecos "" \
     --home "/app" \
     --shell "/sbin/nologin" \
     --uid "${UID}" \
     appuser
 COPY --from=build --chown=appuser:appuser /app /app
+COPY --from=speko-gateway /usr/local/bin/speko-gateway /usr/local/bin/speko-gateway
+RUN install -d -o appuser -g appuser -m 0700 /run/speko
 WORKDIR /app
 USER appuser
-CMD ["uv", "run", "src/agent.py", "start"]
+CMD ["sh", "-c", "/usr/local/bin/speko-gateway & exec uv run src/agent.py start"]

Then select Speko for the voice legs where the agent creates its AgentSession:

from livekit.plugins import openai

from speko_gateway.livekit import STT, TTS

session = AgentSession(
    stt=STT(
        language="en",         # default
        provider="auto",       # default; set when several BYOK STT keys exist
        model="auto",          # default: the provider's catalog default
        credential_source="auto", # or "byok" / "managed"
        sample_rate=16_000,    # default
    ),
    llm=openai.LLM(model="gpt-4.1-mini"),  # any LiveKit LLM plugin
    tts=TTS(
        provider="auto",       # default: the configured BYOK vendor, or the managed plan's pick
        model="auto",          # default: the provider's catalog default
        voice="",              # default: request, configured fallback, or catalog default
        language="en",         # default
        sample_rate=24_000,    # default
        credential_source="auto", # or "byok" / "managed"
    ),
)

With a Speko API key the LLM can come from Speko too, served by the hosted Router (router.speko.dev):

from speko_gateway.livekit import LLM, STT, TTS

session = AgentSession(
    stt=STT(),
    llm=LLM(
        provider="auto",          # default: relay picks; set with model= to pin a route
        model="auto",             # default: GET router.speko.dev/v1/models lists the options
        objective="balanced",     # default: or "quality", "latency", "cost"
        max_output_tokens=8_192,  # default
        reasoning_effort=None,    # default: provider default; or "none" ... "xhigh"
    ),
    tts=TTS(),
)

reasoning_effort is the Router's reasoning control. Use "none" to turn reasoning off. "minimal" asks for the least reasoning the routed model allows (the Router maps it onto each provider's own scale), and "low", "medium", "high" and "xhigh" ask for more. Unset, no field is sent and the provider default applies. Any other value raises ValueError when the LLM is constructed. While reasoning is enabled (any value but "none") the Router refuses temperature and top_p.

"none" is accepted on models that cannot reason, where it changes nothing, except on older Routers, which refuse it there (e.g. on gpt-4.1). Four models always reason and refuse "none"; "minimal" is their floor: Inception mercury-voice, gpt-oss-120b on Cerebras and Together, and Together zai-org/GLM-5.3-Flash. Every other value, "minimal" included, needs a model that can reason: a pinned model that cannot is refused (capability_unsupported), and auto routing considers only models that can.

STT accepts transcription options in the same canonical vocabulary as the hosted Speko API, plus a per-vendor passthrough for each provider's own settings:

stt = STT(
    provider="deepgram",             # pin provider AND model when an option is a requirement:
    model="nova-3",                  # deepgram's default is Flux, which has no diarization
    diarization=True,                # speaker labels (deepgram nova, assemblyai, soniox)
    keywords=["Speko", "Casey"],     # vocabulary biasing, every provider's own spelling
    noise_reduction=True,            # gladia enhancer, assemblyai voice focus, openai near-field
    provider_options={               # vendor-native settings, allow-listed per provider AND model
        "deepgram": {"numerals": True, "endpointing": 1200},
        "elevenlabs": {"vad_silence_threshold_secs": 0.7},
    },
)

Options fail closed: a session routed to a provider that cannot honor a canonical ask is refused at create (stt_option_unsupported) with the option named, never opened with the feature silently missing. With provider="auto", routing may pick a provider that must refuse the ask — pin the provider when an option is a requirement. Settings under provider_options never narrow routing; a provider the session does not reach simply ignores its entry, and a setting outside a provider's allow-list is refused by name. Speaker labels arrive on the raw vendor frames each event carries in extensions.

LLM() requires SPEKO_API_KEY and speaks HTTPS directly to the relay — not the local socket — under the public relayapi contract. That crosses a different trust boundary: unlike the provider-direct voice legs, the conversation history travels through the Speko Router.

Optionally, attach the conversation profiler probe to correlate STT, LLM, TTS, and playback into per-turn latency traces. It emits content-free timing markers only (see TRUST.md), never raises into the agent, and is suppressed by SPEKO_TELEMETRY_DISABLED=true:

from speko_gateway.probe import ConversationProbe

session = AgentSession(stt=STT(), llm=LLM(), tts=TTS())
probe = ConversationProbe(session)
probe.start()                  # before session.start()

await session.start(...)
...
await probe.aclose()           # during shutdown

Set a local token plus one credential choice:

# Speko-managed routing, observability, and consolidated billing
lk agent update-secrets \
  --secrets "SPEKO_LOCAL_AUTH_TOKEN=$(openssl rand -hex 32)" \
  --secrets "SPEKO_API_KEY=your-speko-api-key"

# BYOK. SPEKO_API_KEY may remain set for LLM/managed traffic when the voice
# classes use credential_source="byok".
lk agent update-secrets \
  --secrets "SPEKO_LOCAL_AUTH_TOKEN=$(openssl rand -hex 32)" \
  --secrets "SPEKO_DEEPGRAM_BYOK_API_KEY=your-deepgram-key"

Both choices can coexist through the same local socket and LiveKit integration. With BYOK, provider credentials stay in the Gateway process and anonymous telemetry remains on unless explicitly disabled. The local image serves provider-direct routes; the hosted Speko Router (router.speko.dev) is a separate, generally available Speko-operated surface whose public wire contract lives in this repository's relayapi package (OpenAPI + AsyncAPI). Any Speko organization can route relay requests to any model in the published catalog.

Because the LiveKit agent and Gateway share one container in this setup, the agent process can inspect the container environment. Use separate containers when process-level credential isolation is required.

Anonymous telemetry and opt-out

Speko Gateway sends anonymous, content-free usage telemetry by default, including when only BYOK is configured. Without SPEKO_API_KEY, telemetry is unauthenticated and is not associated with a Speko account. Disable it with:

SPEKO_TELEMETRY_DISABLED=true

Telemetry contains session lifecycle markers, timings, error classifications, and provider request correlation IDs. It never contains audio, transcripts, prompts, generated text, tool names/arguments/results, or credentials.

When Speko supplies the provider credential, minimum usage and terminal records are still required for consolidated billing even if optional telemetry is disabled. The exact payloads and trust boundaries are documented in Trust and data flow.

Configuration

Variable Default Purpose
SPEKO_LOCAL_AUTH_TOKEN required Local API bearer token
SPEKO_API_KEY unset Enables managed routing, relay, and billing; explicit BYOK remains local
SPEKO_<PROVIDER>_BYOK_TTS_VOICE catalog default Operator-selected fallback voice; request voice wins
SPEKO_TELEMETRY_DISABLED false Opts out of telemetry
SPEKO_SOCKET_PATH /run/speko/runtime.sock Absolute Unix socket path
SPEKO_LOCAL_MAX_SESSION_DURATION 24h Local BYOK session ceiling
SPEKO_CONTROL_PLANE_URL https://gateway.speko.dev Speko control plane
SPEKO_JWKS_URL <control-plane>/.well-known/jwks.json Signing keys
SPEKO_PLAN_ISSUER control-plane URL Required plan issuer
SPEKO_PLAN_AUDIENCE speko-runtime Required plan audience
SPEKO_RUNTIME_INSTANCE_ID hostname Non-secret process identity; hosted reports use protocol-2 incarnation/sequence fencing
SPEKO_GATEWAY_REGION unset Cloud region this gateway runs in (asia-southeast1, ap-northeast-1). Managed routing uses it to pick a provider deployment nearby; today an Asia-Pacific region gets Soniox's Japan hosts
SPEKO_WORKLOAD_TYPE agent when an ID is set Dashboard workload category
SPEKO_WORKLOAD_ID unset Stable Agent or custom workload ID
SPEKO_MAX_SESSIONS 100 Per-process session capacity
SPEKO_INSTANCE_HEARTBEAT_INTERVAL 20s Hosted dashboard worker heartbeat interval
SPEKO_WARM_PLAN_TARGET 4 Prefetched session plans kept per route; 0 disables prefetching
SPEKO_WARM_ROUTES unset Routes to warm at startup, kind:provider[:model[:language]], comma-separated
SPEKO_WARM_TTS_MAX_CHARACTERS 100000 Character allowance requested for warmed TTS routes

Every catalog provider has a BYOK credential variable:

Provider Credential variable Notes
Alibaba SPEKO_ALIBABA_BYOK_API_KEY DashScope API key
AssemblyAI SPEKO_ASSEMBLYAI_BYOK_API_KEY API key
Cartesia SPEKO_CARTESIA_BYOK_API_KEY API key
Deepgram SPEKO_DEEPGRAM_BYOK_API_KEY API key
ElevenLabs SPEKO_ELEVENLABS_BYOK_API_KEY API key
Fish Audio SPEKO_FISH_BYOK_API_KEY Team API key; /v1/tts/live does not accept Fish agent session tokens
Gladia SPEKO_GLADIA_BYOK_API_KEY API key used for live-session initialization
Google SPEKO_GOOGLE_BYOK_ACCESS_TOKEN Gemini Live bearer access token; prefer _FILE for rotation
Gradium SPEKO_GRADIUM_BYOK_API_KEY API key
Hamsa SPEKO_HAMSA_BYOK_API_KEY API key
Hopper SPEKO_HOPPER_BYOK_API_KEY API key (sk_hopper_…), sent as a bearer; BYOK/Relay only because Hopper has no token exchange
Hume SPEKO_HUME_BYOK_API_KEY API key
Inworld SPEKO_INWORLD_BYOK_API_KEY Base64 portal credential (key:secret)
Maya Research SPEKO_MAYA_BYOK_API_KEY Permanent API key; BYOK/Relay only because Maya has no short-lived session token
Meta SPEKO_META_BYOK_API_KEY API key; sent as the bearer inside the realtime handshake frame
MiniMax SPEKO_MINIMAX_BYOK_API_KEY API key
Munsit SPEKO_MUNSIT_BYOK_API_KEY API key, sent as x-api-key; BYOK/Relay only because Munsit has no token exchange
Nari Labs SPEKO_NARI_BYOK_API_KEY API key; one key serves both the synthesis endpoint and the transcription socket
OpenAI SPEKO_OPENAI_BYOK_API_KEY API key
Palabra SPEKO_PALABRA_BYOK_API_KEY API key; dedicated STT/TTS sockets do not expose a scoped short-lived grant
Paxa Labs SPEKO_PAXA_BYOK_API_KEY API key
Rime SPEKO_RIME_BYOK_API_KEY API key
Smallest SPEKO_SMALLEST_BYOK_API_KEY API key
Soniox SPEKO_SONIOX_BYOK_API_KEY API key
Speechify SPEKO_SPEECHIFY_BYOK_API_KEY API key; Build access-token minting is deprecated
Speechmatics SPEKO_SPEECHMATICS_BYOK_API_KEY API key; managed direct sessions use a 60-second realtime JWT
xAI SPEKO_XAI_BYOK_API_KEY API key

Zero-overhead session setup

With Speko-managed routing, the Gateway keeps a small pool of signed session plans warm in the background. Creating a session takes one out of memory and dials the provider immediately, so using the Gateway costs the provider handshake and nothing else — no control-plane round trip on the path a caller waits on.

The pool learns route shapes from traffic, so it warms itself after the first session of each shape. SPEKO_WARM_ROUTES covers the one case that cannot learn: the first session after a deploy or a scale-up, which is the one a real person is waiting on.

SPEKO_WARM_ROUTES=stt:deepgram:nova-3:en,tts:elevenlabs::en

A miss — a cold process, an unseen route shape, an unreachable control plane — falls through to a synchronous plan request. Nothing fails that would not have failed before; it is only slower. GET /metrics reports speko_gateway_warm_plan_hits_total and speko_gateway_warm_plan_misses_total; a miss rate that does not fall toward zero after warm-up means prefetching is not working.

Prefetching does not apply to BYOK, where plans are signed inside this process and already cost nothing.

Every secret also supports an exclusive *_FILE form for Docker and Kubernetes secrets—for example, SPEKO_API_KEY_FILE=/run/secrets/speko_api_key. Single-value provider credential files are reread for every new session, so an external refresher can replace a short-lived Google OAuth token without restarting the Gateway.

Included provider adapters

Capability Provider Adapter Default model
STT Deepgram deepgram.stt.v1 flux-general-en
TTS Deepgram deepgram.tts.v1 flux-haley-en
STT ElevenLabs elevenlabs.stt.v1 scribe_v2_realtime
TTS ElevenLabs elevenlabs.tts.v1 eleven_flash_v2_5
TTS ElevenLabs (v3/v4) elevenlabs.dialogue.v1 eleven_v4_turbo
STT Cartesia cartesia.stt.v1 ink-2
TTS Cartesia cartesia.tts.v1 sonic-3
STT AssemblyAI assemblyai.stt.v1 universal-3-5-pro
STT Modulate modulate.stt.v1 velma-2-stt-streaming-english-v2
STT Gladia gladia.stt.v1 solaria-1
TTS MiniMax minimax.tts.v1 speech-2.8-hd
STT xAI xai.stt.v1 stt
TTS xAI xai.tts.v1 tts
STT Alibaba alibaba.stt.v1 qwen3-asr-flash-realtime
TTS Alibaba alibaba.tts.v1 qwen3-tts-flash-realtime
STT Gradium gradium.stt.v1 default
TTS Gradium gradium.tts.v1 default
STT Hamsa hamsa.stt.v1 s3
TTS Hamsa hamsa.tts.v1 default
TTS Rime rime.tts.v1 coda
TTS Hume hume.tts.v1 octave-2
STT Inworld inworld.stt.v1 inworld-stt-1
TTS Inworld inworld.tts.v2 inworld-tts-2
STT OpenAI openai.stt.v1 gpt-live-transcribe
TTS OpenAI openai.tts.v1 gpt-4o-mini-tts
STT Soniox soniox.stt.v1 stt-rt-v5
TTS Fish Audio fish.tts.v1 s2.1-pro (also drama-3, s2-pro, s1, s2.1-pro-free)
TTS Soniox soniox.tts.v1 tts-rt-v2
STT Smallest smallest.stt.v1 pulse
TTS Smallest smallest.tts.v1 lightning_v3.1
STT Palabra palabra.stt.v1 default
TTS Palabra palabra.tts.v1 auto
TTS Maya Research maya.tts.v1 Maya Calyx
TTS Speechify speechify.tts.v1 simba-3.0
STT Speechmatics speechmatics.stt.v1 standard
STT Meta meta.stt.v1 muse-voice-transcribe-1.0
STT Nari Labs nari.stt.v1 qwen3-asr-fast
TTS Nari Labs nari.tts.v1 qwen3-tts-fast
TTS Paxa Labs paxa.tts.v1 paxa-tts-flash-v1 (also paxa-tts-flash-v2)
STT Munsit munsit.stt.v1 munsit
TTS Munsit munsit.tts.v1 faseeh-v1-preview
STT Hopper hopper.stt.v1 nemotron-asr
TTS Hopper hopper.tts.v1 qwen3-tts

Provider endpoints are checked against exact official host allowlists before credentials are attached. Production connections require TLS and port 443.

What is open

This repository contains the complete customer-side gateway: local HTTP and WebSocket service, protocol and schema, plan verification, BYOK injection, provider adapters, bounded telemetry exporter, tests, and container build.

Speko's hosted control plane, credential broker, billing systems, databases, and infrastructure are separate and are not included.

Build

Go 1.26 or newer is required.

make check
make build
docker build -t spekoai/gateway:dev .

See SECURITY.md to report vulnerabilities and CONTRIBUTING.md to contribute. Speko Gateway is released under the MIT License and follows the Code of Conduct.

Directories

Path Synopsis
cmd
speko-gateway command
speko-gateway runs the open customer-side Speko data plane behind an owner-only Unix socket.
speko-gateway runs the open customer-side Speko data plane behind an owner-only Unix socket.
Package controlplane implements the runtime-facing Speko control-plane contract.
Package controlplane implements the runtime-facing Speko control-plane contract.
Package gateway exposes the canonical Speko Voice Protocol to local cross-language clients.
Package gateway exposes the canonical Speko Voice Protocol to local cross-language clients.
internal
batchhttp
Package batchhttp is the shared plumbing under every provider's BatchTranscriber: credential extraction, bounded HTTP exchanges, the closed status-to-ProviderError mapping, streaming multipart bodies, the poll loop for job-style APIs, and word-to-segment grouping.
Package batchhttp is the shared plumbing under every provider's BatchTranscriber: credential extraction, bounded HTTP exchanges, the closed status-to-ProviderError mapping, streaming multipart bodies, the poll loop for job-style APIs, and word-to-segment grouping.
upstream
Package upstream validates provider endpoints before any customer-owned credential is attached to a request.
Package upstream validates provider endpoints before any customer-owned credential is attached to a request.
Package metering normalizes provider evidence without falling back to submitted audio or text.
Package metering normalizes provider evidence without falling back to submitted audio or text.
Package protocol defines the versioned, provider-neutral contracts shared by the runtime, control plane, and framework integrations.
Package protocol defines the versioned, provider-neutral contracts shared by the runtime, control plane, and framework integrations.
providers
alibaba
Package alibaba implements the provider-direct Alibaba Cloud DashScope (Model Studio / Qwen) streaming STT and TTS adapters.
Package alibaba implements the provider-direct Alibaba Cloud DashScope (Model Studio / Qwen) streaming STT and TTS adapters.
assemblyai
Package assemblyai implements the provider-direct AssemblyAI Universal- Streaming v3 transcription adapter.
Package assemblyai implements the provider-direct AssemblyAI Universal- Streaming v3 transcription adapter.
azure
Package azure is the relay's integration for Microsoft's in-house MAI speech models on Azure.
Package azure is the relay's integration for Microsoft's in-house MAI speech models on Azure.
cartesia
Package cartesia implements the provider-direct Cartesia streaming TTS adapter for customer-owned credentials.
Package cartesia implements the provider-direct Cartesia streaming TTS adapter for customer-owned credentials.
deepgram
Package deepgram implements provider-direct Deepgram streaming adapters.
Package deepgram implements provider-direct Deepgram streaming adapters.
elevenlabs
Package elevenlabs implements provider-direct ElevenLabs streaming adapters.
Package elevenlabs implements provider-direct ElevenLabs streaming adapters.
fish
Package fish implements Fish Audio's MessagePack WebSocket TTS protocol and the prerecorded ASR endpoint (transcribe-1, transcribe-1-pro).
Package fish implements Fish Audio's MessagePack WebSocket TTS protocol and the prerecorded ASR endpoint (transcribe-1, transcribe-1-pro).
gemini
Package gemini is the relay's integration for Google's AI Studio speech surface: the Gemini 3.5 Transcribe family (speech-to-text, live and prerecorded) and Gemini Flash speech generation (text-to-speech), on provider "gemini": the AI Studio generative surface, a global endpoint authenticated with a raw API key in x-goog-api-key.
Package gemini is the relay's integration for Google's AI Studio speech surface: the Gemini 3.5 Transcribe family (speech-to-text, live and prerecorded) and Gemini Flash speech generation (text-to-speech), on provider "gemini": the AI Studio generative surface, a global endpoint authenticated with a raw API key in x-goog-api-key.
geminirealtime
Package geminirealtime implements provider-direct Gemini Live sessions.
Package geminirealtime implements provider-direct Gemini Live sessions.
gladia
Package gladia implements the provider-direct Gladia streaming STT adapter.
Package gladia implements the provider-direct Gladia streaming STT adapter.
gradium
Package gradium implements the provider-direct Gradium streaming adapters for speech-to-text and text-to-speech.
Package gradium implements the provider-direct Gradium streaming adapters for speech-to-text and text-to-speech.
hamsa
Package hamsa implements the Hamsa (api.tryhamsa.com) speech-to-text and text-to-speech adapters.
Package hamsa implements the Hamsa (api.tryhamsa.com) speech-to-text and text-to-speech adapters.
hopper
Package hopper is the relay's integration for Hopper, which serves NVIDIA's Nemotron ASR and Qwen3-TTS on its own inference: the nemotron-asr transcription model over a streaming socket and a prerecorded upload, and qwen3-tts over an HTTP synthesis endpoint.
Package hopper is the relay's integration for Hopper, which serves NVIDIA's Nemotron ASR and Qwen3-TTS on its own inference: the nemotron-asr transcription model over a streaming socket and a prerecorded upload, and qwen3-tts over an HTTP synthesis endpoint.
hume
Package hume implements the provider-direct Hume Octave TTS adapter.
Package hume implements the provider-direct Hume Octave TTS adapter.
inworld
Package inworld implements provider-direct Inworld STT and TTS adapters.
Package inworld implements provider-direct Inworld STT and TTS adapters.
maya
Package maya implements Maya Research's realtime WebSocket v2 text-to-speech protocol for Maya Calyx.
Package maya implements Maya Research's realtime WebSocket v2 text-to-speech protocol for Maya Calyx.
meta
Package meta is the relay's integration for Meta's Muse Voice Transcribe speech-to-text service (model muse-voice-transcribe-1.0): a realtime WebSocket for live transcription and a multipart HTTP endpoint for prerecorded WAV files.
Package meta is the relay's integration for Meta's Muse Voice Transcribe speech-to-text service (model muse-voice-transcribe-1.0): a realtime WebSocket for live transcription and a multipart HTTP endpoint for prerecorded WAV files.
minimax
Package minimax implements the MiniMax T2A v2 streaming TTS adapter.
Package minimax implements the MiniMax T2A v2 streaming TTS adapter.
mock
Package mock provides deterministic STT and TTS adapters for runtime and protocol conformance tests.
Package mock provides deterministic STT and TTS adapters for runtime and protocol conformance tests.
modulate
Package modulate implements Modulate Velma-2 streaming speech-to-text.
Package modulate implements Modulate Velma-2 streaming speech-to-text.
munsit
Package munsit is the relay's integration for Munsit, an Arabic speech platform: the munsit and munsit-en-ar transcription models over a streaming socket and a prerecorded upload, and the faseeh-v1-preview voice over an HTTP synthesis endpoint.
Package munsit is the relay's integration for Munsit, an Arabic speech platform: the munsit and munsit-en-ar transcription models over a streaming socket and a prerecorded upload, and the faseeh-v1-preview voice over an HTTP synthesis endpoint.
nari
Package nari is the relay's integration for Nari Labs, which serves the Qwen3 speech models on its own inference: Qwen3-TTS (qwen3-tts, qwen3-tts-fast) over an HTTP synthesis endpoint and Qwen3-ASR (qwen3-asr, qwen3-asr-fast) over a realtime transcription socket.
Package nari is the relay's integration for Nari Labs, which serves the Qwen3 speech models on its own inference: Qwen3-TTS (qwen3-tts, qwen3-tts-fast) over an HTTP synthesis endpoint and Qwen3-ASR (qwen3-asr, qwen3-asr-fast) over a realtime transcription socket.
openai
Package openai implements the OpenAI STT and TTS provider adapters.
Package openai implements the OpenAI STT and TTS provider adapters.
openailive
Package openailive implements GPT-Live speech-to-speech sessions for OpenAI's gpt-live-1: a full-duplex voice model that listens while it speaks and delegates reasoning to a backend (the caller's own application, or a Responses model it is configured with).
Package openailive implements GPT-Live speech-to-speech sessions for OpenAI's gpt-live-1: a full-duplex voice model that listens while it speaks and delegates reasoning to a backend (the caller's own application, or a Responses model it is configured with).
openairealtime
Package openairealtime implements provider-direct speech-to-speech sessions for OpenAI Realtime and xAI Grok Voice.
Package openairealtime implements provider-direct speech-to-speech sessions for OpenAI Realtime and xAI Grok Voice.
palabra
Package palabra implements Palabra's provider-direct realtime speech-to-text and text-to-speech WebSocket APIs.
Package palabra implements Palabra's provider-direct realtime speech-to-text and text-to-speech WebSocket APIs.
paxa
Package paxa is the relay's integration for Paxa Labs (Bangkok), whose paxa-tts-flash-v1 and paxa-tts-flash-v2 models speak over an HTTP synthesis endpoint.
Package paxa is the relay's integration for Paxa Labs (Bangkok), whose paxa-tts-flash-v1 and paxa-tts-flash-v2 models speak over an HTTP synthesis endpoint.
rime
Package rime implements the provider-direct Rime TTS adapter.
Package rime implements the provider-direct Rime TTS adapter.
smallest
Package smallest implements the provider-direct Smallest AI (Waves) STT and TTS adapters.
Package smallest implements the provider-direct Smallest AI (Waves) STT and TTS adapters.
soniox
Package soniox implements the provider-direct Soniox streaming adapters for speech-to-text and text-to-speech.
Package soniox implements the provider-direct Soniox streaming adapters for speech-to-text and text-to-speech.
speechify
Package speechify implements SpeechifyAI Build's chunked-HTTP text-to-speech stream for the Simba model family.
Package speechify implements SpeechifyAI Build's chunked-HTTP text-to-speech stream for the Simba model family.
speechmatics
Package speechmatics implements Speechmatics' realtime v2 streaming STT adapter.
Package speechmatics implements Speechmatics' realtime v2 streaming STT adapter.
ttsoptions
Package ttsoptions answers whether a TTS route can honor the caller's provider_options, in one place for both edges that ask: the local gateway's session create and the hosted relay's routing.
Package ttsoptions answers whether a TTS route can honor the caller's provider_options, in one place for both edges that ask: the local gateway's session create and the hosted relay's routing.
xai
Package xai implements the xAI STT and TTS provider adapters.
Package xai implements the xAI STT and TTS provider adapters.
Package relayapi defines the public wire contract of the Global Speko Relay: HTTP request and response bodies, WebSocket control and event frames, SSE stream events, the normalized error envelope, response headers, and the idempotency hashing rules shared by every relay endpoint.
Package relayapi defines the public wire contract of the Global Speko Relay: HTTP request and response bodies, WebSocket control and event frames, SSE stream events, the normalized error envelope, response headers, and the idempotency hashing rules shared by every relay endpoint.
Package runtime implements the embedded provider-neutral session engine.
Package runtime implements the embedded provider-neutral session engine.

Jump to

Keyboard shortcuts

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