Loading tests/split_rendering/test_voip_be_splitrend_vs_binaural.py +9 −7 Original line number Diff line number Diff line Loading @@ -42,7 +42,6 @@ from tests.test_be_for_jbm_neutral_dly_profile import ( INPUT_FILES, get_options_cod, ) from split_rendering.isar_bstool import IsarBitstream from pyaudio3dtools import audioarray, audiofile IN_FORMATS = [ Loading @@ -67,7 +66,7 @@ def test_voip_be_splitrend_vs_binaural( delay_profile, dut_encoder_frontend, dut_decoder_frontend, bitrate=128000, ivas_bitrate=128000, ): with TemporaryDirectory() as tmp_dir: tmp_dir = Path(tmp_dir) Loading @@ -81,7 +80,7 @@ def test_voip_be_splitrend_vs_binaural( dtx = False wav_in = TESTV_DIR / INPUT_FILES[in_format] dut_encoder_frontend.run( bitrate, ivas_bitrate, sampling_rate_khz, wav_in, bitstream_file, Loading @@ -92,13 +91,16 @@ def test_voip_be_splitrend_vs_binaural( def run_decoder(out_format): options = [] # Head trajectory must be static due to the slight time shift between audio outputs of BINAURAL/SPLIT_PCM # With CLDFB pose correction (default with BINAURAL_SPLIT_PCM), a 20 ms audio frame is # rendered with only one head position (first of the 4 per frame). If we want to compare # the output from BINAURAL_SPLIT_PCM to output from BINAURAL, the head trajectory must # be static. head_traj = Path(SCRIPTS_DIR / "trajectories/const000.csv") options.extend(["-T", str(head_traj)]) wav_out = ( tmp_dir / f"{in_format}-{bitrate}-{out_format}-dly{delay_profile_id}.wav" / f"{in_format}-{ivas_bitrate}-{out_format}-dly{delay_profile_id}.wav" ).absolute() trace_out = wav_out.with_suffix(".trace") Loading @@ -122,7 +124,7 @@ def test_voip_be_splitrend_vs_binaural( return wav_out, trace_out, isar_md_file wav_out_bin, trace_out_bin, _ = run_decoder("BINAURAL") wav_out_sr, trace_out_sr, isar_md_out_sr = run_decoder("BINAURAL_SPLIT_PCM") wav_out_sr, trace_out_sr, _ = run_decoder("BINAURAL_SPLIT_PCM") # Note regarding delay alignment: both output audio files contain the same decoder delay. # Loading Loading
tests/split_rendering/test_voip_be_splitrend_vs_binaural.py +9 −7 Original line number Diff line number Diff line Loading @@ -42,7 +42,6 @@ from tests.test_be_for_jbm_neutral_dly_profile import ( INPUT_FILES, get_options_cod, ) from split_rendering.isar_bstool import IsarBitstream from pyaudio3dtools import audioarray, audiofile IN_FORMATS = [ Loading @@ -67,7 +66,7 @@ def test_voip_be_splitrend_vs_binaural( delay_profile, dut_encoder_frontend, dut_decoder_frontend, bitrate=128000, ivas_bitrate=128000, ): with TemporaryDirectory() as tmp_dir: tmp_dir = Path(tmp_dir) Loading @@ -81,7 +80,7 @@ def test_voip_be_splitrend_vs_binaural( dtx = False wav_in = TESTV_DIR / INPUT_FILES[in_format] dut_encoder_frontend.run( bitrate, ivas_bitrate, sampling_rate_khz, wav_in, bitstream_file, Loading @@ -92,13 +91,16 @@ def test_voip_be_splitrend_vs_binaural( def run_decoder(out_format): options = [] # Head trajectory must be static due to the slight time shift between audio outputs of BINAURAL/SPLIT_PCM # With CLDFB pose correction (default with BINAURAL_SPLIT_PCM), a 20 ms audio frame is # rendered with only one head position (first of the 4 per frame). If we want to compare # the output from BINAURAL_SPLIT_PCM to output from BINAURAL, the head trajectory must # be static. head_traj = Path(SCRIPTS_DIR / "trajectories/const000.csv") options.extend(["-T", str(head_traj)]) wav_out = ( tmp_dir / f"{in_format}-{bitrate}-{out_format}-dly{delay_profile_id}.wav" / f"{in_format}-{ivas_bitrate}-{out_format}-dly{delay_profile_id}.wav" ).absolute() trace_out = wav_out.with_suffix(".trace") Loading @@ -122,7 +124,7 @@ def test_voip_be_splitrend_vs_binaural( return wav_out, trace_out, isar_md_file wav_out_bin, trace_out_bin, _ = run_decoder("BINAURAL") wav_out_sr, trace_out_sr, isar_md_out_sr = run_decoder("BINAURAL_SPLIT_PCM") wav_out_sr, trace_out_sr, _ = run_decoder("BINAURAL_SPLIT_PCM") # Note regarding delay alignment: both output audio files contain the same decoder delay. # Loading