code: def inv_spectrogram(postnet_output, ap, CONFIG):
      if CONFIG.model.lower() in ["tacotron"]:
          wav = ap.inv_spectrogram(postnet_output.T)
      else:
          wav = ap.inv_melspectrogram(postnet_output.T)
      return wav
  
file_path: TTS/TTS/tts/utils/synthesis.py
imports: import pkg_resources
  import torch
  import numpy
  from .text import text_to_sequence, phoneme_to_sequence
label_desc: Use image node_id 12 for calling a global function with example usage: inv_spectrogram(postnet_output, ap, CONFIG) and returns: wav