class_docstr: A ready-to-use class for Voice Activity Detection (VAD) using a
  pre-trained model.
  
  Example
  -------
  >>> import torchaudio
  >>> from speechbrain.inference.VAD import VAD
  >>> # Model is downloaded from the speechbrain HuggingFace repo
  >>> tmpdir = getfixture("tmpdir")
  >>> VAD = VAD.from_hparams(
  ...     source="speechbrain/vad-crdnn-libriparty",
  ...     savedir=tmpdir,
  ... )
  
  >>> # Perform VAD
  >>> boundaries = VAD.get_speech_segments("tests/samples/single-mic/example1.wav")
docstr: This support function manages overlapped the case in which the
  small chunks have a 50% overlap.
docstr_tok: ["This","support","function","manages","overlapped","the","case","in","which","the","small","chunks","have","a","50","%","overlap","."]
code: def _manage_overlapped_chunks(self, small_chunks_prob):
      """This support function manages overlapped the case in which the
      small chunks have a 50% overlap."""
  
      # Weighting the frame-level probabilities with a hamming window
      # reduces uncertainty when overlapping chunks are used.
      hamming_window = torch.hamming_window(
          small_chunks_prob.shape[1], device=self.device
      )
  
      # First and last chunks require special care
      half_point = int(small_chunks_prob.shape[1] / 2)
      small_chunks_prob[0, half_point:] = small_chunks_prob[
          0, half_point:
      ] * hamming_window[half_point:].unsqueeze(1)
      small_chunks_prob[-1, 0:half_point] = small_chunks_prob[
          -1, 0:half_point
      ] * hamming_window[0:half_point].unsqueeze(1)
  
      # Applying the window to all the other probabilities
      small_chunks_prob[1:-1] = small_chunks_prob[
          1:-1
      ] * hamming_window.unsqueeze(0).unsqueeze(2)
  
      return small_chunks_prob
  
imports: import torch
  import torchaudio
  from speechbrain.utils.data_utils import split_path
  from speechbrain.utils.fetching import fetch
  from speechbrain.inference.interfaces import Pretrained
label_desc: Use image node_id 3 for calling the VAD obj's underlying member method code with example usage: obj._manage_overlapped_chunks(small_chunks_prob) and returns: small_chunks_prob