Convenience helpers to create STT/TTS configuration objects for various providers.
# Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Provider config helpers and adapters."""
from getpatter.models import STTConfig, TTSConfig
def deepgram(
api_key: str,
language: str = "en",
*,
model: str = "nova-3", # accepts DeepgramModel or any string for forward-compat
endpointing_ms: int = 150,
utterance_end_ms: int | None = 1000,
# Default False — matches the DeepgramSTT class default (punctuation /
# numeral formatting adds latency and the text goes into an LLM anyway).
# The helper previously defaulted True, so the two entry points behaved
# differently for the same nominal config.
smart_format: bool = False,
interim_r
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key