from voicebox.effects.effect import Effect
__all__ = ["RemoveDcOffset"]
[docs]
class RemoveDcOffset(Effect):
"""Removes any DC offset from the audio signal by subtracting the mean."""
[docs]
def apply(self, audio):
audio.signal -= audio.signal.mean()
return audio