Commit 185bc2a2 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix channel number in generated noise

parent 5f0a3168
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ def setup_input_files_for_config(config, category=1):

    # create background noise files with white noise
    if "background_noise" in config.preprocessing_2:
        noise = random((48000 * 30, 2)) - 0.5
        noise = random((48000 * 30, num_channels)) - 0.5
        noise *= 2**15 - 1
        bg_noise_path = Path(
            config.preprocessing_2["background_noise"]["background_noise_path"]