def hparams_frame_size(hparams):
    """Find the frame size of the input conditioned on the input type."""
    if hparams.spec_type == 'raw':
        return hparams.spec_hop_length
    return hparams.spec_n_bins