Skip to main content
Community STT Engines lets you bring your own speech-to-text engine to Telnyx. Register a WebSocket STT server you run (a domain-specific ASR, a self-hosted Whisper, a language pack the built-in vendors do not cover), and Telnyx streams call audio to it and delivers its transcripts to your AI Assistant, TeXML app, or webhook, the same way it does for a built-in vendor. Registering an engine takes four steps:
  1. Build a WebSocket server that speaks the wire protocol.
  2. Register it. It starts as a draft.
  3. Try it on your own calls, with your own key.
  4. Optionally, make it public and get it approved, so other organizations can use it.
To use an engine, yours or one another organization published, see Use an engine at the end of this page.

How it works

A caller selects your engine by its name (unique across Telnyx), where they would otherwise name a built-in vendor: a name that is not a built-in vendor’s is a community engine’s. Telnyx connects to the websocket_url you registered for as long as the call lasts. Every call brings its own key for your engine, which you issued to the caller; Telnyx holds no key for your engine and sends the caller’s key to it (see Authentication).

Before you register

  • A WebSocket server that speaks the community STT wire protocol (see Wire protocol below)
  • A public wss:// URL reachable from Telnyx’s infrastructure (use a tunnel like cloudflared or ngrok for development). Private, loopback and internal addresses are not accepted — see Fields
  • A Telnyx account with an API key
  • A way to issue keys: callers bring their own key for your engine, so your engine decides which keys it accepts (see Authentication). Telnyx stores none.

Register an engine

The engine starts at status: draft. Your organization can use it right away with its own key (see Try your engine before approval); other organizations can use it only once it is public and approved.

Fields

Engine names

The name is the engine’s address. A caller selects the engine by sending its name as the engine — the start of model on an assistant (<engine> or <engine>/<model>), transcription_engine on Call Control and WebSocket streaming, transcriptionEngine in TeXML — together with their key.
  • Format: 1–64 characters — lowercase letters, digits, hyphens (-) and underscores (_) — starting with a letter or digit. my-whisper-engine is valid; My Whisper Engine is not.
  • Unique across all Telnyx accounts. A name identifies one engine for everyone, which is how another organization refers to your engine if you make it public. Registering a name that is already taken returns a 422 (see the example below).
  • Not a vendor’s name. These names are reserved and cannot be registered: custom, deepgram, azure, telnyx, google, xai, assemblyai, speechmatics, soniox, parakeet, nvidia, omi-health, humain, reson8, cohere, openai and distil-whisper. So are the names Deepgram’s models go by without the vendor: flux, flux-multi, nova-2, nova-3 and nova-3-medical, as are a and b, the legacy codes for the Google and Telnyx engines. Choosing one of those would reach another engine, not yours. A reserved name counts under either spelling, with a hyphen or an underscore (omi-health and omi_health, deepgram-flux and deepgram_flux). A name that is not a built-in vendor’s is looked up as an engine, so a vendor’s name must never be an engine’s. A reserved name returns a 422 with "is reserved".
  • Immutable. A name cannot be changed after the engine is created. Sending a different name on update returns a 422; sending the current name unchanged is fine. To use a different name, delete the engine and register a new one.
A duplicate name returns:
The engine’s id is used in the API paths (/stt_integrations/{id}). It is not what a caller puts in model or transcription_engine — they use the name.

Models

An engine offers one or more models — a size, a language pack, a version — the way Deepgram offers nova-2 and nova-3. List them in models, each with the languages it supports. A caller chooses one by sending its name as model, next to the engine’s name (on an AI Assistant, as <engine>/<model> in model):
  • An engine needs at least one model. With one, it is the default and you need not set default_model; with several, set default_model to the one a caller that names none should get.
  • Models are part of what Telnyx reviews. Adding or removing one, or changing the languages a model lists, invalidates an existing approval (see the note under Status lifecycle).
  • Model names are validated like engine names, but may also contain dots and are limited to 32 characters. They cannot contain /.

Languages per model

Models differ in the languages they handle, so each model lists its own in supported_languages:
  • A session on a model is admitted only for a language in that model’s list. With the example above, large-v3 accepts es, base does not, and experimental accepts any language because it lists none.
  • A model that lists no languages is unrestricted. Languages belong to models, not to the engine.
  • language: "auto" needs the selected model to list multi, unless it lists no languages at all; otherwise set a language it supports.

See your engines

Your organization’s engines are listed in every status, drafts included:
The STT providers listing also shows every engine you can use right now, next to the built-in models: your own draft and active engines, and every engine another organization has published. Each engine model is one entry marked community: true, with the engine’s name as provider and <engine>/<model> as model:
An engine that is disabled, suspended or deleted is not in the providers listing, because it cannot be used.

Try your engine before approval

You do not need approval to try your own engine. While it is draft, your organization can use it exactly as a call would: name it, send a key for it (api_key_ref), and place a call or open a WebSocket session. Nobody else can use it until it is approved and public. Check your endpoint against the wire protocol first, then try it end to end:
If something is wrong, the session ends with an error that names the cause (engine_not_found, model_not_found, api_key_missing, api_key_unavailable, engine_unavailable). Telnyx does not publish network-level details of a failed connection to your endpoint.

Update or delete an engine

PUT and PATCH on /stt_integrations/{id} change only the fields you send. models is replaced as a whole: send every model you want to keep, with its languages. Changing websocket_url, a supported_* field, models (including any model’s languages), default_model, or making an engine public invalidates an existing approval (see the note under Status lifecycle). DELETE on /stt_integrations/{id} removes the engine from every listing and lookup, and it can no longer serve traffic. Its name stays reserved for your organization: no other organization can register it, and you can register it again yourself later. An assistant or call still configured with the engine’s name cannot use it until an engine with that name exists again.

Private or public

visibility decides who can use an engine. Engine names are unique across Telnyx, so a name always means one engine, whoever sends it. A public engine is what makes your engine part of the marketplace: once it is active it is listed for every organization, and calls from other organizations reach your websocket_url, in the same wire protocol as your own traffic. Every caller authenticates with a key of their own, which your engine issued to them: Telnyx stores no key for your engine, and sends the caller’s key to it as described under Authentication. Making the engine private, or disabling or deleting it, stops other organizations from using it from then on, and calls that name it stop transcribing with it.

Review and approval

An engine you make public goes through review before other organizations can use it. This is by design: a community engine runs on infrastructure its publisher operates and receives other organizations’ audio, so Telnyx reviews it before allowing it to serve other people’s traffic. Review is manual; Telnyx does not run an automated check against your engine. A private engine is yours alone, so you can use it while it is still draft.

Submit for review and approval

When your engine works, it needs approval before it can serve other organizations. To request a review, email Telnyx support at [email protected] with your engine ID. You can check the status any time:
Look for status: active and review_status: approved — your engine is usable by other organizations when both are set.

Status lifecycle

Updating websocket_url or other sensitive fields invalidates an existing approval — the engine reverts to draft and must be re-reviewed. This is intentional: a URL change means a different endpoint, which needs a new review.

Suspension

Telnyx does not run health checks against your engine, and does not suspend it automatically. It can suspend an engine administratively, for example after an abuse report or an SLA breach (status: suspended). A suspended engine cannot serve traffic and the owner cannot re-enable it: contact the Telnyx platform team, who can reinstate it. Monitor your own endpoint: a call that cannot reach your engine ends its transcription with engine_unavailable. contact_email is stored only so the platform team can reach you.

Wire protocol

Your WebSocket server receives a connect request with query parameters identifying the session’s negotiated settings:
model is the model the caller selected, or your default_model when the caller names none. It is the model only — never the engine name.

Frames your engine sends to Telnyx

Ready

Sent once on connection, before any audio arrives. Confirms the engine is ready to receive audio.
The provider, model, language, encoding, and sample_rate fields are informational — Telnyx uses its own negotiated values, not the engine’s self-reported ones, to prevent misreporting.

Transcript

Sent for each transcribed utterance. is_final: true marks the end of a turn; is_final: false marks an interim (in-progress) result.
Telnyx works out turn boundaries from your frames: a turn starts with the first Transcript after the previous turn closed and ends with the one that has is_final: true. Your engine only sends Transcript frames; it does not send any turn events. words, confidence, start_time and end_time are optional.

errors

Sent when the engine encounters an error:

Frames Telnyx sends to your engine

Binary audio

Audio in the session’s encoding at its sample_rate (both in the connect query), sent as WebSocket binary frames:
  • Calls and AI Assistants (Call Control, TeXML, AI Assistant conversations): always linear32 (32-bit float PCM) at 16 kHz. This is why supported_encodings must include linear32 and supported_sample_rates must include 16000.
  • WebSocket streaming: the format and sample rate the client sends, unchanged, when your engine declares both. linear16 is 16-bit signed little-endian PCM; mulaw and alaw are G.711; opus, amr_nb and speex arrive as the client’s codec packets, for your engine to decode. Otherwise, if your engine declares linear16, 8 kHz mulaw, alaw or linear16 is decoded to linear16 first: at 8 kHz when your engine lists 8000, at 16 kHz when it does not. Any other format or rate is refused before your engine is connected.

Finalize

Sent when the caller pauses or the turn is ending. Your engine should flush any in-progress transcription and send a final Transcript with is_final: true.

CloseStream

Sent when the call is ending. Your engine should flush and close the WebSocket connection.

KeepAlive

Sent periodically while no audio is flowing, for example while a call is wrapping up before CloseStream, to keep the connection alive. You receive none while audio is arriving, even silent audio. Your engine should ignore it (or send nothing back — a no-op is fine).

vad_silence (Telnyx extension)

A Telnyx-specific extension (lowercase, not in the base spec) signaling that the caller has stopped speaking. It is sent once when a burst of speech ends, not repeatedly during silence. Your engine can use it as a turn boundary hint (flush what it has) but is not required to act on it.

Authentication

Your engine is called with a key the caller brought: the caller stores the key you issued to them as an Integration Secret in their organization and references it as api_key_ref. Telnyx reads it when their call starts and sends it as:
  • Authorization: Bearer <key> header
  • X-Telnyx-Signature: t=<timestamp>,v1=<hmac> header — an HMAC-SHA256 signature over <timestamp>.<stream_id>.<query_string>, binding the signature to this specific session
  • X-Telnyx-Stream-Id: <stream_id> header — the session’s unique stream ID, used as part of the signed payload
Your engine accepts a connection only for a key it issued, which is also how it knows who is calling. To verify the signature, use that key as the HMAC key: read the X-Telnyx-Stream-Id header and the query string from the incoming WebSocket request, recompute HMAC-SHA256(key, "<timestamp>.<stream_id>.<query_string>"), hex-encode it in lowercase, and compare it to the v1 digest in the X-Telnyx-Signature header. Reject if the timestamp is more than 300 seconds from the current time (replay protection). Every call has a key, so Authorization and X-Telnyx-Signature are always sent, along with X-Telnyx-Stream-Id. Put how a caller gets a key in your engine’s documentation_url.

TLS

Telnyx requires TLS 1.2 or 1.3 with a CA-verified, hostname-matched certificate when it connects to a community engine. Self-signed certificates are rejected. Use a tunnel (cloudflared, ngrok) or a real certificate (Let’s Encrypt, Cloudflare) for your engine’s public URL.

Use an engine

Any engine you can use, your own or one another organization published, is selected by its name where a built-in vendor’s would go, with your own key for it: the key the engine’s publisher issued to you, stored as an Integration Secret and sent as api_key_ref. To find published engines, list them with GET /v2/stt_integrations/discoverable, or look for community: true in the STT providers listing. The publisher’s documentation_url says how to get a key. For example, on an AI Assistant:
  • The key belongs to the engine: switching to another engine needs that engine’s key, and a <Language> on <ConversationRelay> or a conversation flow node that names another engine needs its own key.
  • An AI Assistant on a community engine takes no fallback_models, challenger, region or settings.
  • On the WebSocket, sample_rate is required. input_format and sample_rate must be ones the engine declares, or 8 kHz mulaw, alaw or linear16 for an engine that declares linear16, which Telnyx decodes for it.
  • A name that matches no engine you can use fails when the call starts, with a clear “not found” error. A mistyped built-in vendor does the same.
Using someone else’s engine sends your callers’ audio to the publisher’s server, and the transcripts come back from there. Telnyx reviews an engine before it can go active; it does not audit what the publisher does with audio. Check the publisher’s data_retention_policy_url, and only use engines you trust with your callers’ speech. If the publisher makes the engine private, disables or deletes it, or Telnyx suspends it, calls that name it stop transcribing with it; they do not fall back to another engine.

API reference