class_docstr: This class implements the interface for the PIQ posthoc interpreter for an audio classifier.
  
  Example
  -------
  >>> from speechbrain.inference.interpretability import PIQAudioInterpreter
  >>> tmpdir = getfixture("tmpdir")
  >>> interpreter = PIQAudioInterpreter.from_hparams(
  ...     source="speechbrain/PIQ-ESC50",
  ...     savedir=tmpdir,
  ... )
  >>> signal = torch.randn(1, 16000)
  >>> interpretation, _ = interpreter.interpret_batch(signal)
class_docstr_tok: ["This","class","implements","the","interface","for","the","PIQ","posthoc","interpreter","for","an","audio","classifier",".","Example","--","--","--","-",">",">",">","from","speechbrain.inference.interpretability","import","PIQAudioInterpreter",">",">",">","tmpdir","=","getfixture","(","``","tmpdir","''",")",">",">",">","interpreter","=","PIQAudioInterpreter.from_hparams","(","...","source=","''","speechbrain\/PIQ-ESC50","''",",","...","savedir=tmpdir",",","...",")",">",">",">","signal","=","torch.randn","(","1",",","16000",")",">",">",">","interpretation",",","_","=","interpreter.interpret_batch","(","signal",")"]
docstr: Inverts STFT spectra given phase.
docstr_tok: ["Inverts","STFT","spectra","given","phase","."]
code: def invert_stft_with_phase(self, X_int, X_stft_phase):
      """Inverts STFT spectra given phase."""
      X_stft_phase_sb = torch.cat(
          (
              torch.cos(X_stft_phase).unsqueeze(-1),
              torch.sin(X_stft_phase).unsqueeze(-1),
          ),
          dim=-1,
      )
  
      X_stft_phase_sb = X_stft_phase_sb[:, : X_int.shape[1], :, :]
      if X_int.ndim == 3:
          X_int = X_int.unsqueeze(-1)
      X_wpsb = X_int * X_stft_phase_sb
      x_int_sb = self.mods.compute_istft(X_wpsb)
      return x_int_sb
  
file_path: speechbrain/speechbrain/inference/interpretability.py
imports: import torch
  import torchaudio
  import torch.nn.functional
  import speechbrain
  from speechbrain.utils.fetching import fetch
  from speechbrain.utils.data_utils import split_path
  from speechbrain.processing.NMF import spectral_phase
  from speechbrain.inference.interfaces import Pretrained
label_desc: Use image node_id 4 for calling the PIQAudioInterpreter obj's underlying member method code with example usage: obj.invert_stft_with_phase(X_int, X_stft_phase) and returns: x_int_sb