Skip to main content

Speechmatics STT

SpeechmaticsSTT adapts the official speechmatics-voice SDK to Patter’s pipeline mode. It streams PCM audio to Speechmatics’s real-time API and yields Transcript events for partial and final segments. The Voice SDK is imported lazily so consumers that do not install the speechmatics extra can still import the rest of getpatter.

Install

Usage

Use the namespaced import (getpatter.stt.speechmatics) or the flat alias (getpatter.SpeechmaticsSTT). Both auto-resolve SPEECHMATICS_API_KEY from the environment when api_key= is omitted. Override the realtime URL via SPEECHMATICS_RT_URL for self-hosted deployments.
Plug it into an agent:

Models and rates

Speechmatics bills per minute of streamed audio. Default rate from getpatter.pricing: ($0.24/hr = $0.004/min. Override per-call via Patter(pricing={"speechmatics": {"price": ...}}).) The operating_point option toggles enhanced (higher accuracy) vs standard (lower latency); both bill at the same Pro tier rate.

Languages

language="en" by default. Speechmatics supports 50+ languages ("es", "fr", "de", "it", "pt", "nl", "ja", "zh", …). Pair with output_locale="en-GB" to bias the output spelling for a specific locale, and domain="finance" (or "medical") to apply a domain language pack when available.

Turn detection

Speechmatics supports four end-of-turn detection modes via turn_detection_mode:

Options

Low-level usage