Loading ivas_processing_scripts/processing/config.py +6 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,12 @@ class TestConfig: if MISSING_KEYS: raise KeyError(f"The following key(s) must be specified : {MISSING_KEYS}") # validate preprocessing on concatenated file stage if (pre_proc_2 := getattr(cfg, "preprocessing_2", None)) is not None: bg_noise_folder = Path(pre_proc_2["background_noise_path"]).parent if bg_noise_folder.resolve().absolute() == cfg.input_path.resolve().absolute(): raise ValueError(f"Background noise file has to be placed outside the input folder!") for cond_name, cond_cfg in cfg.get("conditions_to_generate").items(): type = cond_cfg.get("type") if not type: Loading ivas_processing_scripts/processing/evs.py +3 −1 Original line number Diff line number Diff line Loading @@ -290,13 +290,15 @@ class EVS(Processing): # in case of LFE 9.6 kbps NB processing strip any "-max_band XX" from cmd.extend and amend by "-max_band NB" if proc_chan_lfe_9k6bps_nb is True: if self.cod_opts: cod_opts = self.cod_opts cod_opts = self.cod_opts.copy() # for finding index of max_band entry use lower case version cod_opts_lower = [x.lower() for x in self.cod_opts] if "-max_band" in cod_opts_lower: idx_max_band = cod_opts_lower.index("-max_band") # use original version and not lower case version due to possible paths in there cod_opts[idx_max_band + 1] = "NB" else: cod_opts.extend(["-max_band", "NB"]) else: cod_opts = ["-max_band", "NB"] else: Loading Loading
ivas_processing_scripts/processing/config.py +6 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,12 @@ class TestConfig: if MISSING_KEYS: raise KeyError(f"The following key(s) must be specified : {MISSING_KEYS}") # validate preprocessing on concatenated file stage if (pre_proc_2 := getattr(cfg, "preprocessing_2", None)) is not None: bg_noise_folder = Path(pre_proc_2["background_noise_path"]).parent if bg_noise_folder.resolve().absolute() == cfg.input_path.resolve().absolute(): raise ValueError(f"Background noise file has to be placed outside the input folder!") for cond_name, cond_cfg in cfg.get("conditions_to_generate").items(): type = cond_cfg.get("type") if not type: Loading
ivas_processing_scripts/processing/evs.py +3 −1 Original line number Diff line number Diff line Loading @@ -290,13 +290,15 @@ class EVS(Processing): # in case of LFE 9.6 kbps NB processing strip any "-max_band XX" from cmd.extend and amend by "-max_band NB" if proc_chan_lfe_9k6bps_nb is True: if self.cod_opts: cod_opts = self.cod_opts cod_opts = self.cod_opts.copy() # for finding index of max_band entry use lower case version cod_opts_lower = [x.lower() for x in self.cod_opts] if "-max_band" in cod_opts_lower: idx_max_band = cod_opts_lower.index("-max_band") # use original version and not lower case version due to possible paths in there cod_opts[idx_max_band + 1] = "NB" else: cod_opts.extend(["-max_band", "NB"]) else: cod_opts = ["-max_band", "NB"] else: Loading