From c4ea6b49256de4419abf04aac15badbe95f8843d Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Mon, 18 Aug 2025 10:33:05 +0200 Subject: [PATCH 01/15] replace masaRenderer with IVAS_rend --- .../audiotools/convert/masa.py | 26 ++++++++- .../audiotools/wrappers/masaRenderer.py | 58 +++++++++++++++++++ ivas_processing_scripts/binary_paths.yml | 2 + tests/test_binaries_present.py | 3 +- 4 files changed, 86 insertions(+), 3 deletions(-) diff --git a/ivas_processing_scripts/audiotools/convert/masa.py b/ivas_processing_scripts/audiotools/convert/masa.py index b4e099c8..6f872f5e 100755 --- a/ivas_processing_scripts/audiotools/convert/masa.py +++ b/ivas_processing_scripts/audiotools/convert/masa.py @@ -35,8 +35,7 @@ from typing import Optional, Union from warnings import warn from ivas_processing_scripts.audiotools import audio -from ivas_processing_scripts.audiotools.convert import channelbased -from ivas_processing_scripts.audiotools.wrappers.masaRenderer import masaRenderer +from ivas_processing_scripts.audiotools.wrappers.masaRenderer import ivasRendMasa """ MetadataAssistedSpatialAudio functions """ @@ -90,6 +89,8 @@ def render_masa_to_binaural( Name of binaural dataset without prefix or suffix """ + # Needed if using masaRenderer (deprecated) + """ if "ROOM" in bin.name: cba_tmp = audio.fromtype("7_1_4") cba_tmp.fs = masa.fs @@ -108,6 +109,19 @@ def render_masa_to_binaural( ) bin.audio = masaRenderer(masa, "BINAURAL") + """ + + if bin_dataset is not None: + warn( + "Binaural dataset selection not supported by IVAS_rend - please render manually" + ) + if bin.name == "BINAURAL_ROOM": + warn( + "BINAURAL_ROOM is not a valid output format for IVAS_rend. Defaulting to BINAURAL_ROOM_IR." + ) + bin.name += "_IR" + + bin.audio = ivasRendMasa(masa, bin.name, trajectory) def render_masa_to_cba( @@ -125,6 +139,8 @@ def render_masa_to_cba( Channel-based output audio """ + # Needed if using masaRenderer (deprecated) + """ if cba.name not in ["5_1", "7_1_4"]: warn( f"MasaRenderer does not support {cba.name} natively. Using 7_1_4 as an intermediate format." @@ -137,6 +153,8 @@ def render_masa_to_cba( channelbased.render_cba_to_cba(cba_tmp, cba) else: cba.audio = masaRenderer(masa, cba.name) + """ + cba.audio = ivasRendMasa(masa, cba.name) def render_masa_to_sba( @@ -154,6 +172,8 @@ def render_masa_to_sba( SBA output audio """ + # Needed if using masaRenderer (deprecated) + """ warn( f"MasaRenderer does not support {sba.name} natively. Using 7_1_4 as an intermediate format." ) @@ -163,3 +183,5 @@ def render_masa_to_sba( cba_tmp.audio = masaRenderer(masa, cba_tmp.name) channelbased.render_cba_to_sba(cba_tmp, sba) + """ + sba.audio = ivasRendMasa(masa, sba.name) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index 47ec8c6e..fec94132 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -39,9 +39,67 @@ from ivas_processing_scripts.audiotools import audio from ivas_processing_scripts.audiotools.audiofile import read, write from ivas_processing_scripts.audiotools.wrappers.filter import resample_itu from ivas_processing_scripts.constants import DEFAULT_CONFIG_BINARIES +from ivas_processing_scripts.processing.ivas import IVAS_rend from ivas_processing_scripts.utils import find_binary, run +from warnings import deprecated +def ivasRendMasa( + masa: audio.MetadataAssistedSpatialAudio, + out_fmt: str, + trajectory: Path = None, +) -> np.ndarray: + """ + Wrapper for IVAS_Rend MASA Rendering + + Parameters + ---------- + masa : MetadataAssistedSpatialAudio + Input MASA audio + out_fmt: str + Desired output format (only 5_1, 7_1_4 and BINAURAL supported) + + Returns + ------- + output : np.ndarray + MASA rendered to out_fmt + """ + if "ivas_rend" in DEFAULT_CONFIG_BINARIES["binary_paths"]: + binary = find_binary( + DEFAULT_CONFIG_BINARIES["binary_paths"]["ivas_rend"].name, + binary_path=DEFAULT_CONFIG_BINARIES["binary_paths"]["ivas_rend"].parent, + ) + else: + binary = find_binary("ivas_rend") + + rend = IVAS_rend( + { + "bin": binary, + "in_fmt": masa.name, + "in_fs": masa.fs, + "out_fmt": out_fmt, + "trajectory": trajectory, + } + ) + + with TemporaryDirectory() as tmp_dir: + tmp_dir = Path(tmp_dir) + tmp_in = tmp_dir.joinpath("tmp_masaRendIn.pcm") + tmp_out = tmp_dir.joinpath("tmp_masaRendOut.pcm") + + masa_metadata_file = masa.metadata_file + if masa_metadata_file is not None and not isinstance(masa_metadata_file, Path): + masa_metadata_file = Path(masa_metadata_file) + + rend.process(tmp_in, tmp_out, in_meta=masa_metadata_file) + + output, _ = read(tmp_out) + return output + + +@deprecated( + "This function has been replaced by ivasRendMasa, please switch code to use that instead" +) def masaRenderer( masa: audio.MetadataAssistedSpatialAudio, out_fmt: str, diff --git a/ivas_processing_scripts/binary_paths.yml b/ivas_processing_scripts/binary_paths.yml index 1c810062..d2fe99c0 100644 --- a/ivas_processing_scripts/binary_paths.yml +++ b/ivas_processing_scripts/binary_paths.yml @@ -22,6 +22,8 @@ # eid-xor: "path/to/binary/eid-xor" # ### Binary for error pattern generation # gen-patt: "path/to/binary/gen-patt" +# ### Binary for IVAS Renderer +# ivas_rend: "path/to/binary/ivas_rend" # ### Binary for random offset/seed generation # random: "path/to/binary/random" # ### Binary for JBM network similulator diff --git a/tests/test_binaries_present.py b/tests/test_binaries_present.py index 4567afa4..84790e0f 100755 --- a/tests/test_binaries_present.py +++ b/tests/test_binaries_present.py @@ -41,9 +41,10 @@ BINARIES = [ "eid-xor", "gen-patt", "filter", + "ivas_rend", "random", "networkSimulator_g192", - "masaRenderer", + # "masaRenderer", "masaAnalyzer", ] -- GitLab From f112db68bcb0ace90802879e8e1ea357b2e9d0a2 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Mon, 18 Aug 2025 10:44:07 +0200 Subject: [PATCH 02/15] resolve circular imports + formatting --- .../audiotools/wrappers/masaRenderer.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index fec94132..48560b4f 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -32,6 +32,7 @@ from pathlib import Path from tempfile import TemporaryDirectory +from warnings import warn import numpy as np @@ -39,9 +40,7 @@ from ivas_processing_scripts.audiotools import audio from ivas_processing_scripts.audiotools.audiofile import read, write from ivas_processing_scripts.audiotools.wrappers.filter import resample_itu from ivas_processing_scripts.constants import DEFAULT_CONFIG_BINARIES -from ivas_processing_scripts.processing.ivas import IVAS_rend from ivas_processing_scripts.utils import find_binary, run -from warnings import deprecated def ivasRendMasa( @@ -64,6 +63,9 @@ def ivasRendMasa( output : np.ndarray MASA rendered to out_fmt """ + # This import is needed here and not at the top of the file to avoid a circular dependency with imports! + from ivas_processing_scripts.processing.ivas import IVAS_rend + if "ivas_rend" in DEFAULT_CONFIG_BINARIES["binary_paths"]: binary = find_binary( DEFAULT_CONFIG_BINARIES["binary_paths"]["ivas_rend"].name, @@ -97,9 +99,6 @@ def ivasRendMasa( return output -@deprecated( - "This function has been replaced by ivasRendMasa, please switch code to use that instead" -) def masaRenderer( masa: audio.MetadataAssistedSpatialAudio, out_fmt: str, @@ -119,6 +118,9 @@ def masaRenderer( output : np.ndarray MASA rendered to out_fmt """ + warn( + "This function (masaRenderer) has been replaced by ivasRendMasa, please switch code to use that instead" + ) if "masaRenderer" in DEFAULT_CONFIG_BINARIES["binary_paths"]: binary = find_binary( -- GitLab From db83854f207df323d4402cd1c437e98db38b711a Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Mon, 18 Aug 2025 10:45:26 +0200 Subject: [PATCH 03/15] disable test for IVAS_rend binary --- tests/test_binaries_present.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_binaries_present.py b/tests/test_binaries_present.py index 84790e0f..043fd25b 100755 --- a/tests/test_binaries_present.py +++ b/tests/test_binaries_present.py @@ -41,7 +41,7 @@ BINARIES = [ "eid-xor", "gen-patt", "filter", - "ivas_rend", + # "ivas_rend", # TODO disabled until present on runners "random", "networkSimulator_g192", # "masaRenderer", -- GitLab From fd0de058872120cb30f684425f42fd1586b41497 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Fri, 22 Aug 2025 15:58:08 +0200 Subject: [PATCH 04/15] re-enable test for IVAS_rend binary --- tests/test_binaries_present.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_binaries_present.py b/tests/test_binaries_present.py index 043fd25b..05045fe4 100755 --- a/tests/test_binaries_present.py +++ b/tests/test_binaries_present.py @@ -41,7 +41,7 @@ BINARIES = [ "eid-xor", "gen-patt", "filter", - # "ivas_rend", # TODO disabled until present on runners + "IVAS_rend", "random", "networkSimulator_g192", # "masaRenderer", -- GitLab From 06b3ed91829100a27853ad28fc7dfcab75a9f244 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 26 Aug 2025 15:29:47 +0200 Subject: [PATCH 05/15] [fix] IVAS_rend binary name is case sensitive on unix --- .../audiotools/wrappers/masaRenderer.py | 8 ++++---- ivas_processing_scripts/binary_paths.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index 48560b4f..bb1c0db1 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -66,13 +66,13 @@ def ivasRendMasa( # This import is needed here and not at the top of the file to avoid a circular dependency with imports! from ivas_processing_scripts.processing.ivas import IVAS_rend - if "ivas_rend" in DEFAULT_CONFIG_BINARIES["binary_paths"]: + if "IVAS_rend" in DEFAULT_CONFIG_BINARIES["binary_paths"]: binary = find_binary( - DEFAULT_CONFIG_BINARIES["binary_paths"]["ivas_rend"].name, - binary_path=DEFAULT_CONFIG_BINARIES["binary_paths"]["ivas_rend"].parent, + DEFAULT_CONFIG_BINARIES["binary_paths"]["IVAS_rend"].name, + binary_path=DEFAULT_CONFIG_BINARIES["binary_paths"]["IVAS_rend"].parent, ) else: - binary = find_binary("ivas_rend") + binary = find_binary("IVAS_rend") rend = IVAS_rend( { diff --git a/ivas_processing_scripts/binary_paths.yml b/ivas_processing_scripts/binary_paths.yml index d2fe99c0..00de00dd 100644 --- a/ivas_processing_scripts/binary_paths.yml +++ b/ivas_processing_scripts/binary_paths.yml @@ -23,7 +23,7 @@ # ### Binary for error pattern generation # gen-patt: "path/to/binary/gen-patt" # ### Binary for IVAS Renderer -# ivas_rend: "path/to/binary/ivas_rend" +# IVAS_rend: "path/to/binary/IVAS_rend" # ### Binary for random offset/seed generation # random: "path/to/binary/random" # ### Binary for JBM network similulator -- GitLab From 15b08767087a479d70d9b7002806115ec8e297aa Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 26 Aug 2025 17:20:18 +0200 Subject: [PATCH 06/15] [fix] missing default attr for IVAS_rend processing class --- ivas_processing_scripts/audiotools/wrappers/masaRenderer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index bb1c0db1..0515da0c 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -81,6 +81,7 @@ def ivasRendMasa( "in_fs": masa.fs, "out_fmt": out_fmt, "trajectory": trajectory, + "use_windows_codec_binaries": False, } ) -- GitLab From 9e2d4408aca4398fea4590531ee3b7c572290048 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 26 Aug 2025 17:20:54 +0200 Subject: [PATCH 07/15] [lint] remove unused variable --- .../processing/processing_splitting_scaling.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ivas_processing_scripts/processing/processing_splitting_scaling.py b/ivas_processing_scripts/processing/processing_splitting_scaling.py index e6edc173..5f9ac34f 100644 --- a/ivas_processing_scripts/processing/processing_splitting_scaling.py +++ b/ivas_processing_scripts/processing/processing_splitting_scaling.py @@ -236,13 +236,6 @@ class Processing_splitting_scaling(Processing): ) splits, split_names, split_fs = read_splits_file(splits_info_file) - # split file - if self.ivas_jbm and not noerror: - # only use flag if IVAS JBM condition but not the loudness reference without error is processed - ivas_jbm_splitting_flag = True - else: - ivas_jbm_splitting_flag = False - file_splits, meta_splits, new_splits = concat_teardown( x, splits, -- GitLab From 1395eec6544bd753777c5e33a32986cc5b3ac77b Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 26 Aug 2025 17:33:24 +0200 Subject: [PATCH 08/15] [fix] crash due to logger being None --- ivas_processing_scripts/processing/ivas.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ivas_processing_scripts/processing/ivas.py b/ivas_processing_scripts/processing/ivas.py index 4fe80986..435b813e 100755 --- a/ivas_processing_scripts/processing/ivas.py +++ b/ivas_processing_scripts/processing/ivas.py @@ -487,8 +487,9 @@ class IVAS_rend(Processing): in_meta, logger: Optional[logging.Logger] = None, ) -> None: - logger.debug(f"IVAS rend configuration : {self.__dict__}") - logger.debug(f"IVAS rend {in_file.absolute()} -> {out_file.absolute()}") + if logger: + logger.debug(f"IVAS rend configuration : {self.__dict__}") + logger.debug(f"IVAS rend {in_file.absolute()} -> {out_file.absolute()}") # set defaults in case input sampling rate is not specified if not self.in_fs: -- GitLab From 405cae2ad40d0c749d974b319ff1a8ca34f82393 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 26 Aug 2025 17:42:16 +0200 Subject: [PATCH 09/15] [fix] metadata supplied to IVAS_rend should be a list of Path --- ivas_processing_scripts/audiotools/wrappers/masaRenderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index 0515da0c..94fda5bc 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -94,7 +94,7 @@ def ivasRendMasa( if masa_metadata_file is not None and not isinstance(masa_metadata_file, Path): masa_metadata_file = Path(masa_metadata_file) - rend.process(tmp_in, tmp_out, in_meta=masa_metadata_file) + rend.process(tmp_in, tmp_out, in_meta=[masa_metadata_file]) output, _ = read(tmp_out) return output -- GitLab From ac980de66a4b6ba43d4ec37e28d64c90df6b81c6 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 26 Aug 2025 17:57:17 +0200 Subject: [PATCH 10/15] [fix] use getattr instead of directly using the attribute --- ivas_processing_scripts/processing/ivas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivas_processing_scripts/processing/ivas.py b/ivas_processing_scripts/processing/ivas.py index 435b813e..cfedf189 100755 --- a/ivas_processing_scripts/processing/ivas.py +++ b/ivas_processing_scripts/processing/ivas.py @@ -550,7 +550,7 @@ class IVAS_rend(Processing): cmd.append("-im") cmd.extend([str(f) for f in in_meta]) - if self.opts: + if getattr(self, "opts", None): cmd.extend(self.opts) run(cmd, logger=logger) -- GitLab From a4b682b9ba985fa06167534c2667ccbdd6520c47 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 26 Aug 2025 18:18:10 +0200 Subject: [PATCH 11/15] [fix] temporary file not written --- ivas_processing_scripts/audiotools/wrappers/masaRenderer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index 94fda5bc..baf2bd48 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -89,6 +89,8 @@ def ivasRendMasa( tmp_dir = Path(tmp_dir) tmp_in = tmp_dir.joinpath("tmp_masaRendIn.pcm") tmp_out = tmp_dir.joinpath("tmp_masaRendOut.pcm") + + write(tmp_in, masa.audio, masa.fs) masa_metadata_file = masa.metadata_file if masa_metadata_file is not None and not isinstance(masa_metadata_file, Path): -- GitLab From 4fed9d3b9c23d4351b974316a825ae2fe39a7142 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Wed, 27 Aug 2025 09:29:36 +0200 Subject: [PATCH 12/15] use correct error enum --- ivas_processing_scripts/audiotools/audio.py | 6 +++--- ivas_processing_scripts/audiotools/metadata.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ivas_processing_scripts/audiotools/audio.py b/ivas_processing_scripts/audiotools/audio.py index b7274546..19b2d25f 100755 --- a/ivas_processing_scripts/audiotools/audio.py +++ b/ivas_processing_scripts/audiotools/audio.py @@ -283,7 +283,7 @@ class ObjectBasedAudio(Audio): if file_name_meta.is_file(): obj.metadata_files.append(file_name_meta) else: - raise ValueError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") warn( f"No metadata files specified: The following files were found and used: \n {*obj.metadata_files,}" ) @@ -422,7 +422,7 @@ class OMASAAudio(Audio): if file_name_meta.is_file(): obj.metadata_files.append(file_name_meta) else: - raise ValueError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") warn( f"No metadata files specified: The following files were found and used: \n {*obj.metadata_files,}" ) @@ -527,7 +527,7 @@ class OSBAAudio(Audio): if file_name_meta.is_file(): obj.metadata_files.append(file_name_meta) else: - raise ValueError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") warn( f"No metadata files specified: The following files were found and used: \n {*obj.metadata_files,}" ) diff --git a/ivas_processing_scripts/audiotools/metadata.py b/ivas_processing_scripts/audiotools/metadata.py index 8bcd4662..ec1b6166 100755 --- a/ivas_processing_scripts/audiotools/metadata.py +++ b/ivas_processing_scripts/audiotools/metadata.py @@ -586,7 +586,7 @@ def metadata_search_ISM( if file_name_meta.is_file(): list_item.append(Path(file_name_meta).resolve()) else: - raise ValueError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") if len(item_names) == 1: list_meta = list_item else: @@ -614,7 +614,7 @@ def metadata_search_MASA( if file_name_meta.is_file(): list_item.append(Path(file_name_meta).resolve()) else: - raise ValueError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") if len(item_names) == 1: list_meta = list_item else: -- GitLab From e7d2808a11ffe5ebba96d8c6d7bdc2163c41b69c Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Wed, 27 Aug 2025 09:29:58 +0200 Subject: [PATCH 13/15] [fix] use WAV instead of PCM for tempfile so that channel count is detected properly --- ivas_processing_scripts/audiotools/wrappers/masaRenderer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index baf2bd48..8abda7e9 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -87,8 +87,8 @@ def ivasRendMasa( with TemporaryDirectory() as tmp_dir: tmp_dir = Path(tmp_dir) - tmp_in = tmp_dir.joinpath("tmp_masaRendIn.pcm") - tmp_out = tmp_dir.joinpath("tmp_masaRendOut.pcm") + tmp_in = tmp_dir.joinpath("tmp_masaRendIn.wav") + tmp_out = tmp_dir.joinpath("tmp_masaRendOut.wav") write(tmp_in, masa.audio, masa.fs) -- GitLab From f002b05b198d4b0c68292f49c77d09cd693ce8e5 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Wed, 27 Aug 2025 09:36:34 +0200 Subject: [PATCH 14/15] formatting --- ivas_processing_scripts/audiotools/wrappers/masaRenderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py index 8abda7e9..b6aa1c9e 100755 --- a/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py +++ b/ivas_processing_scripts/audiotools/wrappers/masaRenderer.py @@ -89,7 +89,7 @@ def ivasRendMasa( tmp_dir = Path(tmp_dir) tmp_in = tmp_dir.joinpath("tmp_masaRendIn.wav") tmp_out = tmp_dir.joinpath("tmp_masaRendOut.wav") - + write(tmp_in, masa.audio, masa.fs) masa_metadata_file = masa.metadata_file -- GitLab From b54660bfad8093bbde39b907456549fb4e54ca27 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Wed, 27 Aug 2025 10:00:19 +0200 Subject: [PATCH 15/15] formatting --- ivas_processing_scripts/audiotools/audio.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ivas_processing_scripts/audiotools/audio.py b/ivas_processing_scripts/audiotools/audio.py index 19b2d25f..3df2de94 100755 --- a/ivas_processing_scripts/audiotools/audio.py +++ b/ivas_processing_scripts/audiotools/audio.py @@ -283,7 +283,9 @@ class ObjectBasedAudio(Audio): if file_name_meta.is_file(): obj.metadata_files.append(file_name_meta) else: - raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError( + f"Metadata file {file_name_meta} not found." + ) warn( f"No metadata files specified: The following files were found and used: \n {*obj.metadata_files,}" ) @@ -422,7 +424,9 @@ class OMASAAudio(Audio): if file_name_meta.is_file(): obj.metadata_files.append(file_name_meta) else: - raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError( + f"Metadata file {file_name_meta} not found." + ) warn( f"No metadata files specified: The following files were found and used: \n {*obj.metadata_files,}" ) @@ -527,7 +531,9 @@ class OSBAAudio(Audio): if file_name_meta.is_file(): obj.metadata_files.append(file_name_meta) else: - raise FileNotFoundError(f"Metadata file {file_name_meta} not found.") + raise FileNotFoundError( + f"Metadata file {file_name_meta} not found." + ) warn( f"No metadata files specified: The following files were found and used: \n {*obj.metadata_files,}" ) -- GitLab