@staticmethod
def _check_length(x, c, hop_size, context_window):
    """Assert the audio and feature lengths are correctly adjusted for upsamping."""
    assert len(x) == (len(c) - 2 * context_window) * hop_size
