Defines PCM format and helpers for streaming TTS sessions.
# Source: https://github.com/NousResearch/hermes-agent | License: MIT | Copyright 2025 Nous Research
# Provided via justclaw.it.com; keep this notice with the code.
"""Streaming-TTS format descriptor, handle and turn-scoped suppression helpers (#60671).
Re-exported from ``gateway.platforms.base``; no imports from it (base imports this module).
"""
from dataclasses import dataclass, field
from typing import Any
@dataclass
# --------------------------------------------------------------------------- Streaming TTS format
# descriptor and handle (#60671) ---------------------------------------------------------------------------
class AudioFormat:
"""Declared PCM format for a streaming-TTS session: every ``write_streaming_tts``
chunk must be raw little-endian PCM at this rate / cha
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key