Commit 5d441afa authored by Anika Treffehn's avatar Anika Treffehn
Browse files

restored functionality without preprocessing

parent 5796a0e6
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -105,7 +105,15 @@ class Preprocessing2(Processing):
        range_delay = (1, 2400000)

        # load background noise
        if self.background_noise["background_object"] is not None:
            noise_object = self.background_noise["background_object"]
        else:
            noise_object = audio.fromfile(
                self.in_fmt,
                self.background_noise["background_noise_path"],
                fs=self.in_fs,
                in_meta=in_meta,
            )

        # if noise is too short raise error
        if len(noise_object.audio) < len(audio_object.audio):