From 29b1004e525382c0a0ec313bc6f2896f3cd3e057 Mon Sep 17 00:00:00 2001 From: Treffehn Date: Mon, 4 Sep 2023 17:35:09 +0200 Subject: [PATCH] added binaural room ir and reverb as output formats --- .../audiotools/binaural_datasets/binaural_dataset.py | 4 ++++ ivas_processing_scripts/audiotools/constants.py | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ivas_processing_scripts/audiotools/binaural_datasets/binaural_dataset.py b/ivas_processing_scripts/audiotools/binaural_datasets/binaural_dataset.py index 37008adf..c51566ee 100755 --- a/ivas_processing_scripts/audiotools/binaural_datasets/binaural_dataset.py +++ b/ivas_processing_scripts/audiotools/binaural_datasets/binaural_dataset.py @@ -118,6 +118,10 @@ def load_ir( dataset_suffix = None if out_fmt.startswith("BINAURAL") and "ROOM" in out_fmt: + + if "_IR" in out_fmt or "_REVERB" in out_fmt: + warn("For reference rendering _IR and _REVERB extensions of BINAURAL_ROOM are ignored") + dataset_prefix = "BRIR" if dataset is None: dataset = "IISofficialMPEG222UC" diff --git a/ivas_processing_scripts/audiotools/constants.py b/ivas_processing_scripts/audiotools/constants.py index a77dcce7..1157a8fb 100755 --- a/ivas_processing_scripts/audiotools/constants.py +++ b/ivas_processing_scripts/audiotools/constants.py @@ -36,7 +36,13 @@ BINAURAL_AUDIO_FORMATS = { "BINAURAL": { "num_channels": 2, }, - "BINAURAL_ROOM": { + "BINAURAL_ROOM": { # for reference rendering + "num_channels": 2, + }, + "BINAURAL_ROOM_IR": { # for IVAS_dec and IVAS_rend + "num_channels": 2, + }, + "BINAURAL_ROOM_REVERB": { # for IVAS_dec and IVAS_rend "num_channels": 2, }, } -- GitLab