We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa616d5 commit d36bde1Copy full SHA for d36bde1
1 file changed
rvc/realtime/core.py
@@ -479,6 +479,10 @@ def process_audio(
479
audio[: self.crossfade_frame] *= self.fade_in_window
480
audio[: self.crossfade_frame] += self.sola_buffer * self.fade_out_window
481
482
+ min_len = block_size + self.crossfade_frame + self.sola_search_frame
483
+ if audio.shape[0] < min_len:
484
+ audio = F.pad(audio, (0, min_len - audio.shape[0]))
485
+
486
self.sola_buffer[:] = audio[block_size : block_size + self.crossfade_frame]
487
audio_output = audio[:block_size].detach().cpu().numpy()
488
0 commit comments