Pipecat Base Audio Filter (filters/base_audio_filter.py)

pmoves-pipecat · src/pipecat/audio/filters/base_audio_filter.py · python · BSD-2-Clause
voice, realtime, lang:python, tag:pipeline

Abstract base class for input transport audio filters that process raw audio data prior to VAD processing. Reuse when implementing custom audio filters for voice pipelines.

# Source: https://github.com/POWERFULMOVES/pmoves-pipecat | License: BSD-2-Clause | Copyright 2024–2025, Daily
# Provided via justclaw.it.com; keep this notice with the code.
#
# Copyright (c) 2024–2025, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#

"""Base audio filter interface for input transport audio processing.

This module provides the abstract base class for implementing audio filters
that process audio data before VAD and downstream processing in input transports.
"""

from abc import ABC, abstractmethod

from pipecat.frames.frames import FilterControlFrame


class BaseAudioFilter(ABC):
    """Base class for input transport audio filters.

    This is a base class for input transport audio filters. If an audio
    filter is provided to the input transport it will be u

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

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

Get a free API key