o
    ÇÏi_  ã                   @   sž   d dl mZmZ d dlmZ ddlmZ ddlmZ g d¢Z	e 
¡ Ze ¡ Ze ¡ Zdee fdd	„Zed
ƒdee fdd„ƒZed
ƒdee fdd„ƒZdS )é    )ÚListÚOptional)Ú
deprecatedé   )Úutils)ÚAudioMetaData)r   ÚloadÚinfoÚsaveÚlist_audio_backendsÚget_audio_backendÚset_audio_backendÚreturnc                   C   s   t t ¡  ¡ ƒS )z®List available backends

    Returns:
        list of str: The list of available backends.

        The possible values are; ``"ffmpeg"``, ``"sox"`` and ``"soundfile"``.
    )Úlistr   Úget_available_backendsÚkeys© r   r   úP/home/ubuntu/.local/lib/python3.10/site-packages/torchaudio/_backend/__init__.pyr      s   	r   zRWith dispatcher enabled, this function is no-op. You can remove the function call.c                   C   ó   dS )zâGet the name of the current global backend

    Returns:
        str or None:
            If dispatcher mode is enabled, returns ``None`` otherwise,
            the name of current backend or ``None`` (no backend is set).
    Nr   r   r   r   r   r   %   s   	r   Úbackendc                 C   r   )a1  Set the global backend.

    This is a no-op when dispatcher mode is enabled.

    Args:
        backend (str or None): Name of the backend.
            One of ``"sox_io"`` or ``"soundfile"`` based on availability
            of the system. If ``None`` is provided the  current backend is unassigned.
    Nr   )r   r   r   r   r   2   s   r   N)Útypingr   r   Ú!torchaudio._internal.module_utilsr   Ú r   Úcommonr   Ú__all__Úget_info_funcr	   Úget_load_funcr   Úget_save_funcr
   Ústrr   r   r   r   r   r   r   Ú<module>   s    