Skip to content

Remove pydub from dependencies #3968

Open
@JasonGrace2282

Description

@JasonGrace2282

pydub is no longer actively maintained, and is now running into issues with audioop being removed in python 3.13. As such, we should try to remove it from our dependencies and implement the needed features ourselves.

From a quick look through the code, the main features needed to implement are:

  • AudioSegment.silent
  • AudioSegment.overlay
  • AudioSegment.from_file

self.audio_segment = segment.overlay(
new_segment,
position=int(1000 * time),
gain_during_overlay=gain_to_background,
)

AudioSegment.silent(int(np.ceil(diff * 1000))),

new_segment = AudioSegment.from_file(wav_file_path.name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAdditions and improvements in generalhelp wantedWe would appreciate help on this issue/PR

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions