espnet2.gan_svs.utils.expand_f0.expand_f0
Less than 1 minute
espnet2.gan_svs.utils.expand_f0.expand_f0
espnet2.gan_svs.utils.expand_f0.expand_f0(f0_frame, hop_length, method='interpolation')
Expand f0 to output wave length.
- Parameters:
- f0_frame (Tensor) – Input tensor (B, 1, frame_len).
- hop_length (Tensor) – Hop length.
- method (str) – Method to expand f0. Choose either ‘interpolation’ or ‘repeat’.
- Returns: Output tensor (B, 1, wav_len).
- Return type: Tensor