Loading scripts/pyivastest/IvasModeRunner.py +4 −4 Original line number Diff line number Diff line Loading @@ -602,7 +602,8 @@ class IvasModeRunner(IvasModeCollector.IvasModeCollector): # read signal and sampling rate from file sig, fs = af.readfile(in_file_name_transformed) out_len = None out_fs = int(sample_rate_in) * 1000 # check if the given length with -U is longer than the file itself and avoid cutting then if do_limit_duration: cut_len_samples = int(float(self.max_duration) * fs) Loading @@ -621,9 +622,8 @@ class IvasModeRunner(IvasModeCollector.IvasModeCollector): pcm_name_transformed = self.transform_path(pcm_name) out_fs = int(sample_rate_in) * 1000 pcm_log.write("Resampling to {} with length: {}".format(out_fs, out_len)) af.convertfile(resamp_in_path, pcm_name_transformed, out_fs=out_fs, out_len_samples=out_len) pcm_log.write("Resampling to {}".format(out_fs)) af.convertfile(resamp_in_path, pcm_name_transformed, in_fs=fs, out_fs=out_fs) in_config = config["cmd"]["in_config"].upper() chn_arg = [] Loading Loading
scripts/pyivastest/IvasModeRunner.py +4 −4 Original line number Diff line number Diff line Loading @@ -602,7 +602,8 @@ class IvasModeRunner(IvasModeCollector.IvasModeCollector): # read signal and sampling rate from file sig, fs = af.readfile(in_file_name_transformed) out_len = None out_fs = int(sample_rate_in) * 1000 # check if the given length with -U is longer than the file itself and avoid cutting then if do_limit_duration: cut_len_samples = int(float(self.max_duration) * fs) Loading @@ -621,9 +622,8 @@ class IvasModeRunner(IvasModeCollector.IvasModeCollector): pcm_name_transformed = self.transform_path(pcm_name) out_fs = int(sample_rate_in) * 1000 pcm_log.write("Resampling to {} with length: {}".format(out_fs, out_len)) af.convertfile(resamp_in_path, pcm_name_transformed, out_fs=out_fs, out_len_samples=out_len) pcm_log.write("Resampling to {}".format(out_fs)) af.convertfile(resamp_in_path, pcm_name_transformed, in_fs=fs, out_fs=out_fs) in_config = config["cmd"]["in_config"].upper() chn_arg = [] Loading