Component evidence

TextAggregationMode (services/tts_service.py)

pipecat · src/pipecat/services/tts_service.py · python · BSD-2-Clause
voice

Configures text aggregation strategy for TTS services, balancing latency and speech quality.

Source preview first 800 characters · full source over MCP
# Source: https://github.com/pipecat-ai/pipecat | License: BSD-2-Clause | Copyright 2024–2026, Daily
# Provided via justclaw.it.com; keep this notice with the code.
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

"""Base classes for Text-to-speech services."""

import asyncio
import uuid
from abc import abstractmethod
from collections.abc import AsyncGenerator, AsyncIterator, Mapping, Sequence
from dataclasses import dataclass, field
from enum import StrEnum
from typing import (
    Any,
)

from loguru import logger
from websockets.protocol import State

from pipecat.adapters.tts.base_expression_adapter import BaseExpressionAdapter
from pipecat.audio.utils import create_stream_resampler
from pipecat.expressive.formatter import (
    EXPRESSION_TAG_PA

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