diff --git a/ivas_processing_scripts/generation/process_ism_items.py b/ivas_processing_scripts/generation/process_ism_items.py index 800f12a17b2264cb63d51654a6f816c8cee4d311..4b28e08af9bbae59d1741f440c191a854e00cc86 100644 --- a/ivas_processing_scripts/generation/process_ism_items.py +++ b/ivas_processing_scripts/generation/process_ism_items.py @@ -79,7 +79,7 @@ def generate_ism_items( cfg.add_low_level_random_noise = False for scene_name, scene in cfg.scenes.items(): - logger.info(f"Processing {scene_name} out of {N_scenes} scenes") + logger.info(f"Processing {scene_name} out of {N_scenes} scenes, name: {scene['name']}") # extract the number of audio sources N_sources = len(np.atleast_1d(scene["source"])) @@ -323,7 +323,7 @@ def generate_ism_items( y.audio += noise # write individual ISM audio streams to the output file in an interleaved format - output_filename = scene_name + output_filename = scene["name"] audiofile.write( os.path.join(cfg.output_path, output_filename), y.audio, y.fs ) # !!!! TBD: replace all os.path.xxx operations with the Path object diff --git a/ivas_processing_scripts/generation/process_stereo_items.py b/ivas_processing_scripts/generation/process_stereo_items.py index ff3ec5922b6e27d068ff45bb5db199b2678fbc59..dd8db76bd4dce0a9f402aa0588eff5b89948a529 100644 --- a/ivas_processing_scripts/generation/process_stereo_items.py +++ b/ivas_processing_scripts/generation/process_stereo_items.py @@ -88,10 +88,8 @@ def generate_stereo_items( # repeat for all source files for scene_name, scene in cfg.scenes.items(): - logger.info( - f"Processing scene: {scene_name} out of {N_scenes} scenes, name: {scene_name}" - ) - + logger.info(f"Processing scene: {scene_name} out of {N_scenes} scenes, name: {scene['name']}") + # extract the number of audio sources N_sources = len(np.atleast_1d(scene["source"])) @@ -213,7 +211,7 @@ def generate_stereo_items( y.audio += noise # write the reverberated audio into output file - output_filename = scene_name + output_filename = scene["name"] audiofile.write( os.path.join(cfg.output_path, output_filename), y.audio, y.fs ) # !!!! TBD: replace all os.path.xxx operations with the Path object