class_docstr: Encode audio with a supported file encoding.
  
  Args:
      opts: The global options.
class_docstr_tok: ["Encode","audio","with","a","supported","file","encoding",".","Args",":","opts",":","The","global","options","."]
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      super().__init__(opts=opts, *args, **kwargs)
      self.opts = opts
      self.encoding_dtype = getattr(
          self.opts, "audio_augmentation.torchaudio_save.encoding_dtype"
      )
      self.format = getattr(
          self.opts, "audio_augmentation.torchaudio_save.format"
      )
  
file_path: ml-cvnets/data/transforms/audio_bytes.py
imports: import argparse
  import io
  import tempfile
  from typing import Dict, Union
  import numpy
  import torch
  import torchaudio
  from data.transforms import TRANSFORMATIONS_REGISTRY, BaseTransformation
label_desc: Use image node_id 1 to create a new TorchaudioSave object from inherited base classes: BaseTransformation with example: obj = TorchaudioSave(opts)