[GH-ISSUE #2317] Minor output alignment issue #1599

Open
opened 2026-10-20 10:10:30 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @matthew99a on GitHub (Sep 20, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2317

When there are more than one segments in vc.pipeline, every new segment makes subsequent audio output out of place by one frame (i.e. length of self.window = 0.01s). The final audio is thereby also slightly shorter. This effect is barely perceptible, but can be verified using audio editing software.

After experimenting with several attempted fixes, this effect can be drastically reduced after changing line 388, 405, 423 and 440 of infer/modules/vc/pipeline.py from "self.t_pad_tgt : -self.t_pad_tgt" to "(self.t_pad_tgt - self.window) : -(self.t_pad_tgt - self.window)."

I was able to cut the input vs output length difference of a 4-minute audio from 0.04 seconds down to 0.002 seconds.

Originally created by @matthew99a on GitHub (Sep 20, 2024). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2317 When there are more than one segments in vc.pipeline, every new segment makes subsequent audio output out of place by one frame (i.e. length of self.window = 0.01s). The final audio is thereby also slightly shorter. This effect is barely perceptible, but can be verified using audio editing software. After experimenting with several attempted fixes, this effect can be drastically reduced after changing line 388, 405, 423 and 440 of infer/modules/vc/pipeline.py from "self.t_pad_tgt : -self.t_pad_tgt" to "(self.t_pad_tgt - self.window) : -(self.t_pad_tgt - self.window)." I was able to cut the input vs output length difference of a 4-minute audio from 0.04 seconds down to 0.002 seconds.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#1599
No description provided.