Loading scripts/ivas_pytests/tests/system_tests/test_spar_foa_bs_enc.py +4 −26 Original line number Diff line number Diff line Loading @@ -63,10 +63,7 @@ ivas_br_HOA3 = ['256000', '384000', '512000'] sample_rate_list = ['48', '32', '16'] bypass_list = [1, 2] # we need signals amplified by 24dB - until those are available, use existing 'stvFOA' agc_tag_list = ['stvFOA'] # TODO: create and use new 24dB signals # agc_tag_list = ['stvFOA_24dB_'] sample_rate_bw_idx_list = [('48', 'SWB'), ('48', 'WB'), ('32', 'WB')] Loading Loading @@ -108,7 +105,6 @@ def test_bypass_enc( dtx = '0' max_bw = "FB" agc = 0 use_agc_ref = 0 sba_order = "+1" output_config = "FOA" Loading @@ -126,7 +122,6 @@ def test_bypass_enc( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref ) Loading @@ -145,7 +140,6 @@ def test_bypass_enc( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading Loading @@ -176,7 +170,6 @@ def test_spar_foa_enc_system( max_bw = "FB" bypass = -1 agc = 0 use_agc_ref = 0 sba_order = "+1" output_config = "FOA" Loading @@ -194,7 +187,6 @@ def test_spar_foa_enc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref ) Loading @@ -213,7 +205,6 @@ def test_spar_foa_enc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading @@ -240,7 +231,6 @@ def test_spar_hoa2_enc_system( # tag = tag + '_' + fs + 'k' max_bw = "FB" bypass = -1 use_agc_ref = 0 sba_order = "+2" output_config = "HOA2" Loading @@ -258,7 +248,6 @@ def test_spar_hoa2_enc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, '.wav' Loading @@ -278,7 +267,6 @@ def test_spar_hoa2_enc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading @@ -305,7 +293,6 @@ def test_spar_hoa3_enc_system( # tag = tag + '_' + fs + 'k' max_bw = "FB" bypass = -1 use_agc_ref = 0 sba_order = "+3" output_config = "HOA3" Loading @@ -323,7 +310,6 @@ def test_spar_hoa3_enc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, '.wav' Loading @@ -343,7 +329,6 @@ def test_spar_hoa3_enc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading Loading @@ -372,7 +357,6 @@ def test_spar_foa_enc_BWforce_system( tag = tag + fs + 'c' bypass = -1 agc = 0 use_agc_ref = 0 sba_order = "+1" output_config = "FOA" Loading @@ -390,7 +374,6 @@ def test_spar_foa_enc_BWforce_system( bw, bypass, agc, use_agc_ref, sba_order, update_ref ) Loading @@ -409,7 +392,6 @@ def test_spar_foa_enc_BWforce_system( bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading Loading @@ -438,7 +420,6 @@ def test_spar_foa_enc_agc_system( max_bw = "FB" bypass = -1 agc = 1 use_agc_ref = 1 sba_order = "+1" output_config = "FOA" Loading @@ -456,7 +437,6 @@ def test_spar_foa_enc_agc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, cut_gain="16.0" Loading @@ -476,7 +456,6 @@ def test_spar_foa_enc_agc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading @@ -497,7 +476,6 @@ def spar_foa_enc( ivas_max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, in_extension = '.pcm', Loading @@ -520,7 +498,7 @@ def spar_foa_enc( tag_out = f"{tag}_ivasbr{ivas_br[:-3]}k_DTX{dtx}" short_tag_ext = "" if agc == 1 and use_agc_ref == 1: if agc == 1: short_tag_ext += '_AGC1' # we update only bypass = 0/2 (bypass 1 is the same as the baseline) if bypass in [0, 2]: Loading @@ -536,7 +514,8 @@ def spar_foa_enc( dtx_mode = dtx == '1' if in_extension == '.pcm': # cut input PCM file - currently with fixed (i.e. not test dependant) values # use shortened and potentially gain adjusted input PCM file - create if not present # cut input PCM file: currently with mostly fixed (i.e. not test dependant) values num_channels = "4" # currently only FOA inputs end up, here cut_from = "0.0" cut_len = "5.0" Loading Loading @@ -591,7 +570,6 @@ def spar_foa_dec( ivas_max_bw, bypass, agc, use_agc_ref, output_config, update_ref, keep_files=False Loading @@ -607,7 +585,7 @@ def spar_foa_dec( tag_out = f"{tag}_ivasbr{ivas_br[:-3]}k_DTX{dtx}" short_tag_ext = "" if agc == 1 and use_agc_ref == 1: if agc == 1: short_tag_ext += '_AGC1' # we update only bypass = 0/2 (bypass 1 is the same as the baseline) if bypass in [0, 2]: Loading Loading
scripts/ivas_pytests/tests/system_tests/test_spar_foa_bs_enc.py +4 −26 Original line number Diff line number Diff line Loading @@ -63,10 +63,7 @@ ivas_br_HOA3 = ['256000', '384000', '512000'] sample_rate_list = ['48', '32', '16'] bypass_list = [1, 2] # we need signals amplified by 24dB - until those are available, use existing 'stvFOA' agc_tag_list = ['stvFOA'] # TODO: create and use new 24dB signals # agc_tag_list = ['stvFOA_24dB_'] sample_rate_bw_idx_list = [('48', 'SWB'), ('48', 'WB'), ('32', 'WB')] Loading Loading @@ -108,7 +105,6 @@ def test_bypass_enc( dtx = '0' max_bw = "FB" agc = 0 use_agc_ref = 0 sba_order = "+1" output_config = "FOA" Loading @@ -126,7 +122,6 @@ def test_bypass_enc( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref ) Loading @@ -145,7 +140,6 @@ def test_bypass_enc( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading Loading @@ -176,7 +170,6 @@ def test_spar_foa_enc_system( max_bw = "FB" bypass = -1 agc = 0 use_agc_ref = 0 sba_order = "+1" output_config = "FOA" Loading @@ -194,7 +187,6 @@ def test_spar_foa_enc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref ) Loading @@ -213,7 +205,6 @@ def test_spar_foa_enc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading @@ -240,7 +231,6 @@ def test_spar_hoa2_enc_system( # tag = tag + '_' + fs + 'k' max_bw = "FB" bypass = -1 use_agc_ref = 0 sba_order = "+2" output_config = "HOA2" Loading @@ -258,7 +248,6 @@ def test_spar_hoa2_enc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, '.wav' Loading @@ -278,7 +267,6 @@ def test_spar_hoa2_enc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading @@ -305,7 +293,6 @@ def test_spar_hoa3_enc_system( # tag = tag + '_' + fs + 'k' max_bw = "FB" bypass = -1 use_agc_ref = 0 sba_order = "+3" output_config = "HOA3" Loading @@ -323,7 +310,6 @@ def test_spar_hoa3_enc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, '.wav' Loading @@ -343,7 +329,6 @@ def test_spar_hoa3_enc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading Loading @@ -372,7 +357,6 @@ def test_spar_foa_enc_BWforce_system( tag = tag + fs + 'c' bypass = -1 agc = 0 use_agc_ref = 0 sba_order = "+1" output_config = "FOA" Loading @@ -390,7 +374,6 @@ def test_spar_foa_enc_BWforce_system( bw, bypass, agc, use_agc_ref, sba_order, update_ref ) Loading @@ -409,7 +392,6 @@ def test_spar_foa_enc_BWforce_system( bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading Loading @@ -438,7 +420,6 @@ def test_spar_foa_enc_agc_system( max_bw = "FB" bypass = -1 agc = 1 use_agc_ref = 1 sba_order = "+1" output_config = "FOA" Loading @@ -456,7 +437,6 @@ def test_spar_foa_enc_agc_system( max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, cut_gain="16.0" Loading @@ -476,7 +456,6 @@ def test_spar_foa_enc_agc_system( max_bw, bypass, agc, use_agc_ref, output_config, update_ref ) Loading @@ -497,7 +476,6 @@ def spar_foa_enc( ivas_max_bw, bypass, agc, use_agc_ref, sba_order, update_ref, in_extension = '.pcm', Loading @@ -520,7 +498,7 @@ def spar_foa_enc( tag_out = f"{tag}_ivasbr{ivas_br[:-3]}k_DTX{dtx}" short_tag_ext = "" if agc == 1 and use_agc_ref == 1: if agc == 1: short_tag_ext += '_AGC1' # we update only bypass = 0/2 (bypass 1 is the same as the baseline) if bypass in [0, 2]: Loading @@ -536,7 +514,8 @@ def spar_foa_enc( dtx_mode = dtx == '1' if in_extension == '.pcm': # cut input PCM file - currently with fixed (i.e. not test dependant) values # use shortened and potentially gain adjusted input PCM file - create if not present # cut input PCM file: currently with mostly fixed (i.e. not test dependant) values num_channels = "4" # currently only FOA inputs end up, here cut_from = "0.0" cut_len = "5.0" Loading Loading @@ -591,7 +570,6 @@ def spar_foa_dec( ivas_max_bw, bypass, agc, use_agc_ref, output_config, update_ref, keep_files=False Loading @@ -607,7 +585,7 @@ def spar_foa_dec( tag_out = f"{tag}_ivasbr{ivas_br[:-3]}k_DTX{dtx}" short_tag_ext = "" if agc == 1 and use_agc_ref == 1: if agc == 1: short_tag_ext += '_AGC1' # we update only bypass = 0/2 (bypass 1 is the same as the baseline) if bypass in [0, 2]: Loading