Loading ivas_processing_scripts/generation/process_ism_items.py +2 −2 Original line number Diff line number Diff line Loading @@ -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"])) Loading Loading @@ -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 Loading ivas_processing_scripts/generation/process_stereo_items.py +3 −5 Original line number Diff line number Diff line Loading @@ -88,9 +88,7 @@ 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"])) Loading Loading @@ -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 Loading Loading
ivas_processing_scripts/generation/process_ism_items.py +2 −2 Original line number Diff line number Diff line Loading @@ -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"])) Loading Loading @@ -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 Loading
ivas_processing_scripts/generation/process_stereo_items.py +3 −5 Original line number Diff line number Diff line Loading @@ -88,9 +88,7 @@ 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"])) Loading Loading @@ -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 Loading