Integrates Cartesia ink-whisper streaming speech-to-text for audio pipelines. Reuse when adding real-time voice transcription to voicebot or AI agent workflows.
# Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Cartesia streaming STT for Patter pipeline mode."""
from __future__ import annotations
import os
from typing import ClassVar
from getpatter.providers.cartesia_stt import CartesiaSTT as _CartesiaSTT
__all__ = ["STT"]
class STT(_CartesiaSTT):
"""Cartesia ``ink-whisper`` streaming STT.
Example::
from getpatter.stt import cartesia
stt = cartesia.STT() # reads CARTESIA_API_KEY
stt = cartesia.STT(api_key="...", language="es")
"""
provider_key: ClassVar[str] = "cartesia_stt"
def __init__(
self,
api_key: str | None = None,
*,
language:
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key