espnet2.enh.separator.svoice_separator.overlap_and_add
espnet2.enh.separator.svoice_separator.overlap_and_add
espnet2.enh.separator.svoice_separator.overlap_and_add(signal, frame_step)
Reconstructs a signal from a framed representation.
Adds potentially overlapping frames of a signal with shape […, frames, frame_length], offsetting subsequent frames by frame_step. The resulting tensor has shape […, output_size] where
output_size = (frames - 1) * frame_step + frame_length
Args: : signal: A […, frames, frame_length] Tensor. All dimensions may be unknown, : and rank must be at least 2. <br/> frame_step: An integer denoting overlap offsets. : Must be less than or equal to frame_length.
Returns: : A Tensor with shape […, output_size] containing the : overlap-added frames of signal’s inner-most two dimensions. <br/> output_size = (frames - 1) * frame_step + frame_length
Based on