Skip to content

Fix latest pydub AudioSegment merge crash - #274

Open
mcgrof wants to merge 1 commit into
souzatharsis:mainfrom
mcgrof:main
Open

Fix latest pydub AudioSegment merge crash#274
mcgrof wants to merge 1 commit into
souzatharsis:mainfrom
mcgrof:main

Conversation

@mcgrof

@mcgrof mcgrof commented Jul 9, 2025

Copy link
Copy Markdown

When AudioSegment.empty() is used we end up with some empty parameters which then in turn mean we can't use this variable to += a real audio content on the latest pydub present on debian testin. To address this just use AudioSegment.silent() with proper settings.

While at it add a few new cli options to let us debug things easily:

  • --debug flag: Enables verbose logging across the application to assist with troubleshooting.
  • --keep-files: Preserves temporary audio files used in TTS synthesis for inspection. Useful when debugging audio generation or concatenation issues.

When AudioSegment.empty() is used we end up with some empty parameters
which then in turn mean we can't use this variable to += a real audio
content on the latest pydub present on debian testin. To address this just
use AudioSegment.silent() with proper settings.

While at it add a few new cli options to let us debug things easily:

  * --debug flag: Enables verbose logging across the application to assist
                  with troubleshooting.
  * --keep-files: Preserves temporary audio files used in TTS synthesis for
                  inspection. Useful when debugging audio generation or
                  concatenation issues.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
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.

1 participant