Skip to content

Skip fade and pad when postprocess_output is disabled#197

Open
SanjayMuthuswamy wants to merge 1 commit into
k2-fsa:masterfrom
SanjayMuthuswamy:feature/disable-audio-post-process
Open

Skip fade and pad when postprocess_output is disabled#197
SanjayMuthuswamy wants to merge 1 commit into
k2-fsa:masterfrom
SanjayMuthuswamy:feature/disable-audio-post-process

Conversation

@SanjayMuthuswamy

@SanjayMuthuswamy SanjayMuthuswamy commented Jun 25, 2026

Copy link
Copy Markdown

Summary

When postprocess_output=False, this PR makes sure that all audio post-processing is skipped.

Changes

  • Include fade_and_pad_audio() in the current if postprocess_output: condition.
  • Modify the docstring to make it clear that all post-processing operations, such as fade-in/out, silence padding, and silence removal, are managed by postprocess_output.

Inspiration

In the past, even when postprocess_output=False, fade_and_pad_audio() was always used. Consequently, silence removal was skipped when post-processing was disabled, although fade-in/out and silent padding were still applied.

This modification maintains the current default behavior (postprocess_output=True) while making the behavior consistent.

Fixes #194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

need option in config to disable fade_in and _fade out

1 participant