src/transformers/models/speecht5/feature_extraction_speecht5.py/SpeechT5FeatureExtractor/_windowing
class SpeechT5FeatureExtractor:    def _windowing(frames, window_length, window):
        if frames.size % window_length != 0:
            raise ValueError(
                f"`frames` is supposed to have length divisble by `window_length`, but is {frames.size} with"
                f" window_length={window_length}."
            )

        shaped = frames.reshape(-1, window_length)
        shaped = window * shaped
        return shaped