STT (stt/assemblyai.py)

Patter · libraries/python/getpatter/stt/assemblyai.py · python · MIT
voice, Voice / Speech

AssemblyAI streaming STT wrapper for Patter pipeline.

# Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""AssemblyAI streaming STT for Patter pipeline mode."""

from __future__ import annotations

import os
from typing import ClassVar

from getpatter.providers.assemblyai_stt import AssemblyAISTT as _AssemblyAISTT

__all__ = ["STT"]


class STT(_AssemblyAISTT):
    """AssemblyAI Universal Streaming STT.

    Example::

        from getpatter.stt import assemblyai

        stt = assemblyai.STT()              # reads ASSEMBLYAI_API_KEY
        stt = assemblyai.STT(api_key="...", model="universal-streaming-multilingual")
    """

    provider_key: ClassVar[str] = "assemblyai"

    def __init__(
        self,
        api_key: str | None 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key