class_docstr: Apply random audio codecs to input waveforms using torchaudio.
  
  This class provides an interface for applying codec augmentation techniques to audio data.
  
  Arguments
  ---------
  sample_rate: int
      The sample rate of the input waveform.
  
  Example
  -------
  >>> waveform = torch.rand(4, 16000)
  >>> if torchaudio.list_audio_backends()[0] == 'ffmpeg':
  ...     augmenter = CodecAugment(16000)
  ...     output_waveform = augmenter(waveform)
code: def __init__(self, sample_rate=16000):
      super().__init__()
      self.sample_rate = sample_rate
      self.available_format_encoders = [
          ("wav", "pcm_mulaw"),
          ("mp3", None),
          ("g722", None),
      ]
  
file_path: speechbrain/speechbrain/augment/codec.py
imports: import random
  import torch
  import torchaudio
label_desc: Use image node_id 1 to create a new CodecAugment object from inherited base classes: torch.nn with example: obj = CodecAugment(sample_rate)