AssemblyAI Universal Streaming STT adapter for Patter SDK, providing async WebSocket STT via aiohttp.
# Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""
AssemblyAI Universal Streaming STT adapter for the Patter SDK pipeline mode.
Implements the STTProvider ABC using AssemblyAI's v3 streaming WebSocket API.
Pure-aiohttp transport — does NOT depend on the vendor SDK.
"""
from __future__ import annotations
import asyncio
import json
import logging
from dataclasses import dataclass
from enum import IntEnum, StrEnum
from typing import ClassVar, AsyncIterator, Literal, Union
from urllib.parse import urlencode
import aiohttp
from getpatter.providers.base import STTProvider, Transcript
logger = logging.getLogger("getpatter")
DEFAULT_BASE_URL = "wss://streaming.assemblyai.com"
DE
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key