Loading README.md +2 −4 Original line number Diff line number Diff line Loading @@ -133,6 +133,8 @@ postprocessing: # delete_tmp: true ### Master seed for random processes like bitstream error pattern generation; default = 0 # master_seed: 5 ### Additional seed to specify number of preruns (used for background noise delay and FER bitstream processing); default = 0 # prerun_seed: 2 ### Any relative paths will be interpreted relative to the working directory the script is called from! ### Usage of absolute paths is recommended. Loading Loading @@ -241,8 +243,6 @@ input: # snr: 10 ### REQUIRED: Path to background noise, must have same format and sampling rate as input signal(s) # background_noise_path: ".../noise.wav" ### Seed for delay offest; default = 0 # seed_delay: 10 ``` </details> Loading Loading @@ -275,8 +275,6 @@ input: # error_pattern: "path/pattern.192" ### Error rate in percent # error_rate: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ``` </details> Loading examples/TEMPLATE.yml +3 −5 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ # delete_tmp: true ### Master seed for random processes like bitstream error pattern generation; default = 0 # master_seed: 5 ### Additional seed to specify number of preruns (used for background noise delay and FER bitstream processing); default = 0 # prerun_seed: 2 ### Any relative paths will be interpreted relative to the working directory the script is called from! ### Usage of absolute paths is recommended. Loading Loading @@ -108,8 +110,6 @@ input: # snr: 10 ### REQUIRED: Path to background noise, must have same format and sampling rate as input signal(s) # background_noise_path: ".../noise.wav" ### Seed for delay offest; default = 0 # seed_delay: 10 ################################################# ### Bitstream processing Loading @@ -136,8 +136,6 @@ input: # error_pattern: "path/pattern.192" ### Error rate in percent # error_rate: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ################################################ ### Configuration for conditions under test Loading Loading @@ -248,7 +246,7 @@ conditions_to_generate: # - 9600 - [13200, 13200, 8000, 13200, 9600] ### for multi-channel configs, code LFE with 9.6 kbps NB (as mandated by IVAS-3) evs_lfe_9k6bps_nb: true # evs_lfe_9k6bps_nb: true ### Encoder options cod: ### Path to encoder binary; default search for EVS_cod in bin folder (primary) and PATH (secondary) Loading ivas_processing_scripts/audiotools/convert/__init__.py +2 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,8 @@ def process_audio( """delay audio""" if delay is not None: if isinstance(x, audio.ObjectBasedAudio): raise ValueError("Delay not possible for ISM input") if logger: logger.debug(f"Delaying audio by {delay} ms") x.audio = audioarray.delay(x.audio, x.fs, delay) Loading ivas_processing_scripts/audiotools/wrappers/bs1770.py +8 −2 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import copy import logging import re from pathlib import Path from tempfile import TemporaryDirectory from typing import Optional, Tuple, Union Loading Loading @@ -131,8 +132,13 @@ def bs1770demo( result = run(cmd) # parse output measured_loudness = float(result.stdout.splitlines()[3].split(":")[1]) scale_factor = float(result.stdout.splitlines()[-3].split(":")[1]) # we are looking for the (floating-point) number after the search string - '( )' around the number denotes the first group measured_loudness = float( re.search(r"Input level:\s+([-+]?(?:\d*\.*\d+))", result.stdout).group(1) ) scale_factor = float( re.search(r"Scaling factor:\s+([-+]?(?:\d*\.*\d+))", result.stdout).group(1) ) return measured_loudness, scale_factor Loading ivas_processing_scripts/constants.py +1 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ DEFAULT_CONFIG = { "multiprocessing": True, "delete_tmp": False, "master_seed": 0, "prerun_seed": 0, "metadata_path": None, # postprocessing "postprocessing": { Loading Loading
README.md +2 −4 Original line number Diff line number Diff line Loading @@ -133,6 +133,8 @@ postprocessing: # delete_tmp: true ### Master seed for random processes like bitstream error pattern generation; default = 0 # master_seed: 5 ### Additional seed to specify number of preruns (used for background noise delay and FER bitstream processing); default = 0 # prerun_seed: 2 ### Any relative paths will be interpreted relative to the working directory the script is called from! ### Usage of absolute paths is recommended. Loading Loading @@ -241,8 +243,6 @@ input: # snr: 10 ### REQUIRED: Path to background noise, must have same format and sampling rate as input signal(s) # background_noise_path: ".../noise.wav" ### Seed for delay offest; default = 0 # seed_delay: 10 ``` </details> Loading Loading @@ -275,8 +275,6 @@ input: # error_pattern: "path/pattern.192" ### Error rate in percent # error_rate: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ``` </details> Loading
examples/TEMPLATE.yml +3 −5 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ # delete_tmp: true ### Master seed for random processes like bitstream error pattern generation; default = 0 # master_seed: 5 ### Additional seed to specify number of preruns (used for background noise delay and FER bitstream processing); default = 0 # prerun_seed: 2 ### Any relative paths will be interpreted relative to the working directory the script is called from! ### Usage of absolute paths is recommended. Loading Loading @@ -108,8 +110,6 @@ input: # snr: 10 ### REQUIRED: Path to background noise, must have same format and sampling rate as input signal(s) # background_noise_path: ".../noise.wav" ### Seed for delay offest; default = 0 # seed_delay: 10 ################################################# ### Bitstream processing Loading @@ -136,8 +136,6 @@ input: # error_pattern: "path/pattern.192" ### Error rate in percent # error_rate: 5 ### Additional seed to specify number of preruns; default = 0 # prerun_seed: 2 ################################################ ### Configuration for conditions under test Loading Loading @@ -248,7 +246,7 @@ conditions_to_generate: # - 9600 - [13200, 13200, 8000, 13200, 9600] ### for multi-channel configs, code LFE with 9.6 kbps NB (as mandated by IVAS-3) evs_lfe_9k6bps_nb: true # evs_lfe_9k6bps_nb: true ### Encoder options cod: ### Path to encoder binary; default search for EVS_cod in bin folder (primary) and PATH (secondary) Loading
ivas_processing_scripts/audiotools/convert/__init__.py +2 −0 Original line number Diff line number Diff line Loading @@ -214,6 +214,8 @@ def process_audio( """delay audio""" if delay is not None: if isinstance(x, audio.ObjectBasedAudio): raise ValueError("Delay not possible for ISM input") if logger: logger.debug(f"Delaying audio by {delay} ms") x.audio = audioarray.delay(x.audio, x.fs, delay) Loading
ivas_processing_scripts/audiotools/wrappers/bs1770.py +8 −2 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import copy import logging import re from pathlib import Path from tempfile import TemporaryDirectory from typing import Optional, Tuple, Union Loading Loading @@ -131,8 +132,13 @@ def bs1770demo( result = run(cmd) # parse output measured_loudness = float(result.stdout.splitlines()[3].split(":")[1]) scale_factor = float(result.stdout.splitlines()[-3].split(":")[1]) # we are looking for the (floating-point) number after the search string - '( )' around the number denotes the first group measured_loudness = float( re.search(r"Input level:\s+([-+]?(?:\d*\.*\d+))", result.stdout).group(1) ) scale_factor = float( re.search(r"Scaling factor:\s+([-+]?(?:\d*\.*\d+))", result.stdout).group(1) ) return measured_loudness, scale_factor Loading
ivas_processing_scripts/constants.py +1 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,7 @@ DEFAULT_CONFIG = { "multiprocessing": True, "delete_tmp": False, "master_seed": 0, "prerun_seed": 0, "metadata_path": None, # postprocessing "postprocessing": { Loading