docstr: compute right padding (final frame) or both sides padding (first and final frames)
          
docstr_tok: ["compute","right","padding","(","final","frame",")","or","both","sides","padding","(","first","and","final","frames",")"]
code: def compute_stft_paddings(self, x, pad_sides=1):
      """compute right padding (final frame) or both sides padding (first and final frames)"""
      assert pad_sides in (1, 2)
      pad = (
          x.shape[0] // self.hop_length + 1
      ) * self.hop_length - x.shape[0]
      if pad_sides == 1:
          return 0, pad
      return pad // 2, pad // 2 + pad % 2
  
imports: import librosa
  import soundfile
  import numpy
  import scipy.io.wavfile
  import scipy.signal
  from TTS.tts.utils.data import StandardScaler
label_desc: Use image node_id 22 for calling the AudioProcessor obj's underlying member method code with example usage: obj.compute_stft_paddings(x, pad_sides) and returns: unknown,  unknown, int,  pad