Ë
    ÿÍ:jà  ã                   ó&  — d Z ddlmZmZ ddlZej
                  j                  «       Zddlm	Z	 e	de
fd„«       Ze	de
fd„«       Ze	d	e
fd
„«       Ze	defd„«       Ze	deeef   fd„«       Ze	dee   fd„«       Ze	dee   fd„«       Ze	de
fd„«       Zy)aB  Module to change the configuration of libsox, which is used by I/O functions like
:py:mod:`~torchaudio.backend.sox_io_backend` and :py:mod:`~torchaudio.sox_effects`.

.. warning::
    Starting with version 2.8, we are refactoring TorchAudio to transition it
    into a maintenance phase. As a result:

    - Some APIs are deprecated in 2.8 and will be removed in 2.9.
    - The decoding and encoding capabilities of PyTorch for both audio and video
      are being consolidated into TorchCodec.

    Please see https://github.com/pytorch/audio/issues/3902 for more information.
é    )ÚDictÚListN)Údropping_supportÚseedc                 ó.   — t         j                  | «       y)z’Set libsox's PRNG

    Args:
        seed (int): seed value. valid range is int32.

    See Also:
        http://sox.sourceforge.net/sox.html
    N)Úsox_extÚset_seed)r   s    úo/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/torchaudio/utils/sox_utils.pyr	   r	      s   € ô ×Ñ�TÕó    Ú	verbosityc                 ó.   — t         j                  | «       y)aD  Set libsox's verbosity

    Args:
        verbosity (int): Set verbosity level of libsox.

            * ``1`` failure messages
            * ``2`` warnings
            * ``3`` details of processing
            * ``4``-``6`` increasing levels of debug messages

    See Also:
        http://sox.sourceforge.net/sox.html
    N)r   Úset_verbosity)r   s    r
   r   r   $   s   € ô ×Ñ˜)Õ$r   Úbuffer_sizec                 ó.   — t         j                  | «       y)zÊSet buffer size for sox effect chain

    Args:
        buffer_size (int): Set the size in bytes of the buffers used for processing audio.

    See Also:
        http://sox.sourceforge.net/sox.html
    N)r   Úset_buffer_size)r   s    r
   r   r   6   s   € ô ×Ñ˜KÕ(r   Úuse_threadsc                 ó.   — t         j                  | «       y)a>  Set multithread option for sox effect chain

    Args:
        use_threads (bool): When ``True``, enables ``libsox``'s parallel effects channels processing.
            To use mutlithread, the underlying ``libsox`` has to be compiled with OpenMP support.

    See Also:
        http://sox.sourceforge.net/sox.html
    N)r   Úset_use_threads)r   s    r
   r   r   C   s   € ô ×Ñ˜KÕ(r   Úreturnc                  ó<   — t        t        j                  «       «      S )zxList the available sox effect names

    Returns:
        Dict[str, str]: Mapping from ``effect name`` to ``usage``
    )Údictr   Úlist_effects© r   r
   r   r   Q   s   € ô ”×$Ñ$Ó&Ó'Ð'r   c                  ó*   — t         j                  «       S )zoList the supported audio formats for read

    Returns:
        List[str]: List of supported audio formats
    )r   Úlist_read_formatsr   r   r
   r   r   [   s   € ô ×$Ñ$Ó&Ð&r   c                  ó*   — t         j                  «       S )zpList the supported audio formats for write

    Returns:
        List[str]: List of supported audio formats
    )r   Úlist_write_formatsr   r   r
   r   r   e   s   € ô ×%Ñ%Ó'Ð'r   c                  ó*   — t         j                  «       S )zxGet buffer size for sox effect chain

    Returns:
        int: size in bytes of buffers used for processing audio.
    )r   Úget_buffer_sizer   r   r
   r   r   o   s   € ô ×"Ñ"Ó$Ð$r   )Ú__doc__Útypingr   r   Ú
torchaudioÚ
_extensionÚlazy_import_sox_extr   Ú!torchaudio._internal.module_utilsr   Úintr	   r   r   Úboolr   Ústrr   r   r   r   r   r   r
   ú<module>r)      s  ðñ÷ ã à
×
Ñ
×
3Ñ
3Ó
5€å >àð	�3ò 	ó ð	ð ð%˜Sò %ó ð%ð" ð	) ò 	)ó ð	)ð ð
) ò 
)ó ð
)ð ð(�d˜3 ˜8‘nò (ó ð(ð ð'˜4 ™9ò 'ó ð'ð ð(˜D ™Iò (ó ð(ð ð%˜ò %ó ñ%r   