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 wav file.
  
  Arguments
  ---------
  filename : str
      Location on disk to load file for enhancement.
  output_filename : str
      If provided, writes enhanced data to this file.
docstr_tok: ["Enhance","a","wav","file",".","Arguments","--","--","--","--","-","filename",":","str","Location","on","disk","to","load","file","for","enhancement",".","output_filename",":","str","If","provided",",","writes","enhanced","data","to","this","file","."]
code: def enhance_file(self, filename, output_filename=None, **kwargs):
      """Enhance a wav file.
  
      Arguments
      ---------
      filename : str
          Location on disk to load file for enhancement.
      output_filename : str
          If provided, writes enhanced data to this file.
      """
      noisy = self.load_audio(filename, **kwargs)
  
      # Fake a batch:
      batch = noisy.unsqueeze(0)
      enhanced = self.enhance_batch(batch)
  
      if output_filename is not None:
          torchaudio.save(
              output_filename, enhanced, channels_first=False
          )
  
      return enhanced.squeeze(0)
  
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 2 for calling the WaveformEnhancement obj's underlying member method code with example usage: obj.enhance_file(filename, output_filename) and returns: enhanced