Commit 69285e76 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

small changes for binaural listening test

parent 3aa55bf0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ SUPPORTED_CONDITIONS = {
    "evs",
    "ivas",
    "mono_dmx",
    "spatial_distortion",
}

DEFAULT_CONFIG = {
+11 −1
Original line number Diff line number Diff line
@@ -247,7 +247,12 @@ def get_processing_chain(
    cond_cfg = cfg.conditions_to_generate[condition]

    if cond_cfg["type"] == "ref":
        pass  # no configuration necessary
        # allow list of output formats
        if (ref_fmt := cond_cfg.get("fmt", None)) is not None:
            if isinstance(ref_fmt, list):
                cond_fmt.extend(ref_fmt)
            else:
                cond_fmt.append(ref_fmt)
    elif cond_cfg["type"] == "lp3k5":
        tmp_lp_cutoff = 3500
    elif cond_cfg["type"] == "lp7k":
@@ -256,6 +261,11 @@ def get_processing_chain(
        tmp_mnru_q = cond_cfg["q"]
    elif cond_cfg["type"] == "esdru":
        tmp_esdru_alpha = cond_cfg["alpha"]
    elif cond_cfg["type"] == "spatial_distortion":
        tmp_spatial_dist_amp = cond_cfg.get("amplitude", None)
        tmp_spatial_dist_freq = cond_cfg.get("frequency", None)
        if tmp_spatial_dist_amp is None or tmp_spatial_dist_freq is None:
            raise ValueError("For spatial distortion amplitude and frequency values need to be given")
    elif cond_cfg["type"] == "mono_dmx":
        # add another postprocessing from in_fmt to mono
        chain["processes"].append(