U
    %dh                     @   s   G d d dZ dS )c                   @   s.   e Zd ZdZeeeeedddZdd ZdS )AudioMetaDataa  Return type of ``torchaudio.info`` function.

    This class is used by :ref:`"sox_io" backend<sox_io_backend>` and
    :ref:`"soundfile" backend with the new interface<soundfile_backend>`.

    :ivar int sample_rate: Sample rate
    :ivar int num_frames: The number of frames
    :ivar int num_channels: The number of channels
    :ivar int bits_per_sample: The number of bits per sample. This is 0 for lossy formats,
        or when it cannot be accurately inferred.
    :ivar str encoding: Audio encoding
        The values encoding can take are one of the following:

            * ``PCM_S``: Signed integer linear PCM
            * ``PCM_U``: Unsigned integer linear PCM
            * ``PCM_F``: Floating point linear PCM
            * ``FLAC``: Flac, Free Lossless Audio Codec
            * ``ULAW``: Mu-law
            * ``ALAW``: A-law
            * ``MP3`` : MP3, MPEG-1 Audio Layer III
            * ``VORBIS``: OGG Vorbis
            * ``AMR_WB``: Adaptive Multi-Rate
            * ``AMR_NB``: Adaptive Multi-Rate Wideband
            * ``OPUS``: Opus
            * ``HTK``: Single channel 16-bit PCM
            * ``UNKNOWN`` : None of above
    sample_rate
num_framesnum_channelsbits_per_sampleencodingc                 C   s"   || _ || _|| _|| _|| _d S )Nr   )selfr   r   r   r   r    r	   =/tmp/pip-unpacked-wheel-lbdmvq91/torchaudio/backend/common.py__init__   s
    zAudioMetaData.__init__c                 C   s.   d| j  d| j d| j d| j d| j dS )NzAudioMetaData(sample_rate=z, num_frames=z, num_channels=z, bits_per_sample=z, encoding=)r   )r   r	   r	   r
   __str__,   s    ,zAudioMetaData.__str__N)__name__
__module____qualname____doc__intstrr   r   r	   r	   r	   r
   r      s   r   N)r   r	   r	   r	   r
   <module>       