Ë
    ±q±i¯  ã                   ó.   — d Z ddlmZmZ  G d„ de«      Zy)zÑBase audio resampler interface for Pipecat.

This module defines the abstract base class for audio resampling implementations,
providing a common interface for converting audio between different sample rates.
é    )ÚABCÚabstractmethodc            	       ó2   — e Zd ZdZededededefd„«       Zy)ÚBaseAudioResamplerzöAbstract base class for audio resampling implementations.

    This class defines the interface that all audio resampling implementations
    must follow, providing a standardized way to convert audio data between
    different sample rates.
    ÚaudioÚin_rateÚout_rateÚreturnc              ƒ   ó   K  — y­w)aµ  Resamples the given audio data to a different sample rate.

        This is an abstract method that must be implemented in subclasses.

        Args:
            audio: The audio data to be resampled, as raw bytes.
            in_rate: The original sample rate of the audio data in Hz.
            out_rate: The desired sample rate for the output audio in Hz.

        Returns:
            The resampled audio data as raw bytes.
        N© )Úselfr   r   r	   s       ú_/opt/pipecat/venv/lib/python3.12/site-packages/pipecat/audio/resamplers/base_audio_resampler.pyÚresamplezBaseAudioResampler.resample   s   è ø€ ð 	ùs   ‚N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚbytesÚintr   r   ó    r   r   r      s7   „ ñð ð Eð °Cð À3ð È5ò ó ñr   r   N)r   Úabcr   r   r   r   r   r   ú<module>r      s   ðñ÷ $ô˜õ r   