def call(self, inputs: tf.Tensor) -> tf.Tensor:
        """Computes mel-filterbanks of a batch of waveforms.

        Args:
          inputs: input audio of shape (batch_size, num_samples).

        Returns:
          Mel-filterbanks of shape (batch_size, time_frames, freq_bins).
        """
        stft = tf.signal.stft(
            inputs,
            frame_length=self._window_len,
            frame_step=self._window_stride,
            fft_length=self._n_fft,
            pad_end=True)

        spectrogram = tf.math.square(tf.math.abs(stft))

        mel_filterbanks = tf.matmul(spectrogram, self.mel_filters)
        mel_filterbanks = self._compression_fn(mel_filterbanks)
        return mel_filterbanks
Computes mel-filterbanks of a batch of waveforms.

        Args:
          inputs: input audio of shape (batch_size, num_samples).

        Returns:
          Mel-filterbanks of shape (batch_size, time_frames, freq_bins).
        
leaf_audio/frontend.py