class_docstr: A ready-to-use model for speech enhancement.
  
  Arguments
  ---------
  See ``Pretrained``.
  
  Example
  -------
  >>> from speechbrain.inference.enhancement import WaveformEnhancement
  >>> # Model is downloaded from the speechbrain HuggingFace repo
  >>> tmpdir = getfixture("tmpdir")
  >>> enhancer = WaveformEnhancement.from_hparams(
  ...     source="speechbrain/mtl-mimic-voicebank",
  ...     savedir=tmpdir,
  ... )
  >>> enhanced = enhancer.enhance_file(
  ...     "speechbrain/mtl-mimic-voicebank/example.wav"
  ... )
docstr: Enhance a batch of noisy waveforms.
  
  Arguments
  ---------
  noisy : torch.Tensor
      A batch of waveforms to perform enhancement on.
  lengths : torch.Tensor
      The lengths of the waveforms if the enhancement model handles them.
  
  Returns
  -------
  torch.Tensor
      A batch of enhanced waveforms of the same shape as input.
docstr_tok: ["Enhance","a","batch","of","noisy","waveforms",".","Arguments","--","--","--","--","-","noisy",":","torch.Tensor","A","batch","of","waveforms","to","perform","enhancement","on",".","lengths",":","torch.Tensor","The","lengths","of","the","waveforms","if","the","enhancement","model","handles","them",".","Returns","--","--","--","-","torch.Tensor","A","batch","of","enhanced","waveforms","of","the","same","shape","as","input","."]
code: def enhance_batch(self, noisy, lengths=None):
      """Enhance a batch of noisy waveforms.
  
      Arguments
      ---------
      noisy : torch.Tensor
          A batch of waveforms to perform enhancement on.
      lengths : torch.Tensor
          The lengths of the waveforms if the enhancement model handles them.
  
      Returns
      -------
      torch.Tensor
          A batch of enhanced waveforms of the same shape as input.
      """
      noisy = noisy.to(self.device)
      enhanced_wav, _ = self.mods.enhance_model(noisy)
      return enhanced_wav
  
file_path: speechbrain/speechbrain/inference/enhancement.py
imports: import torch
  import torchaudio
  from speechbrain.inference.interfaces import Pretrained
  from speechbrain.utils.callchains import lengths_arg_exists
label_desc: Use image node_id 1 for calling the WaveformEnhancement obj's underlying member method code with example usage: obj.enhance_batch(noisy, lengths) and returns: enhanced_wav