diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2008-06-26 18:52:16 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2008-06-26 18:52:16 +0000 |
commit | 349f63c0e6559210b51e31a6ee01fa17ad34baeb (patch) | |
tree | 2eda1c389d2896ce9cda4efd5fc43d1fe3a28f34 /pjsip-apps/src/test-pjsua/scripts-pesq | |
parent | f81d332dac01951c95812f27c028b122e333bab0 (diff) |
Ticket #543: Updated PESQ to start/stop manually stream/record instead of using auto-rec/play/hangup, and also updated thresholds
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2063 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/scripts-pesq')
16 files changed, 63 insertions, 32 deletions
diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py b/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py index 32454d76..2901f469 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ defaults pjsua settings", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --play-file wavs/input.16.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-audio --max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --play-file wavs/input.16.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-answer 200") ] ) + +pesq_threshold = None diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/101_defaults.py b/pjsip-apps/src/test-pjsua/scripts-pesq/101_defaults.py index 16c9eff0..67b53e3f 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/101_defaults.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/101_defaults.py @@ -6,8 +6,8 @@ from inc_cfg import * test_param = TestParam( "PESQ defaults pjsua settings (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --play-file wavs/input.16.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --play-file wavs/input.16.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-answer 200") ] ) @@ -15,3 +15,4 @@ test_param = TestParam( if (HAS_SND_DEV == 0): test_param.skip = True +pesq_threshold = None diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py index 3360ba9e..9e91c963 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ codec PCMA", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec pcma --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec pcma --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) + +pesq_threshold = 3.5 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py index c50dc4fe..fa64e7a6 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ codec PCMU", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec pcmu --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec pcmu --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) + +pesq_threshold = 3.5 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py index 23f29c7e..4cb85dad 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ codec G722", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec g722 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec g722 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200") ] ) + +pesq_threshold = 3.7 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py index 8aea1ac2..221372ef 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ codec GSM", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec gsm --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec gsm --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) + +pesq_threshold = 3.0 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py index 91ac0ae9..45480b85 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ codec iLBC", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec ilbc --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec ilbc --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) + +pesq_threshold = 3.0 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py index 04e91521..448e04cb 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ codec Speex WB", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --clock-rate 16000 --add-codec speex/16000 --play-file wavs/input.16.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-sound --max-calls=1 --clock-rate 16000 --add-codec speex/16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --clock-rate 16000 --add-codec speex/16000 --play-file wavs/input.16.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --clock-rate 16000 --add-codec speex/16000 --rec-file wavs/tmp.16.wav --auto-answer 200") ] ) + +pesq_threshold = 3.7 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py index 3d89bbd1..cf4b169d 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py @@ -11,7 +11,9 @@ if (HAS_SND_DEV == 0): test_param = TestParam( "PESQ codec Speex NB", [ - InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav"), + InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) + +pesq_threshold = 3.0 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711a.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711a.py index 7b71b812..b7458c3c 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711a.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711a.py @@ -6,10 +6,12 @@ from inc_cfg import * test_param = TestParam( "PESQ codec PCMA (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --add-codec pcma --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec pcma --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) if (HAS_SND_DEV == 0): test_param.skip = True + +pesq_threshold = 3.5 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711u.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711u.py index d73ef74c..43cff651 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711u.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711u.py @@ -6,10 +6,12 @@ from inc_cfg import * test_param = TestParam( "PESQ codec PCMU (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --add-codec pcmu --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec pcmu --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) if (HAS_SND_DEV == 0): test_param.skip = True + +pesq_threshold = 3.5 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g722.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g722.py index 33be2965..24c89293 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g722.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g722.py @@ -6,10 +6,12 @@ from inc_cfg import * test_param = TestParam( "PESQ codec G722 (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --add-codec g722 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec g722 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200") ] ) if (HAS_SND_DEV == 0): test_param.skip = True + +pesq_threshold = 3.7 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_gsm.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_gsm.py index 922183ac..d250b770 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_gsm.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_gsm.py @@ -6,10 +6,12 @@ from inc_cfg import * test_param = TestParam( "PESQ codec GSM (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --add-codec gsm --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec gsm --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) if (HAS_SND_DEV == 0): test_param.skip = True + +pesq_threshold = 3.0 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_ilbc.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_ilbc.py index ad61f427..e6d4d35f 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_ilbc.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_ilbc.py @@ -6,10 +6,12 @@ from inc_cfg import * test_param = TestParam( "PESQ codec iLBC (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --add-codec ilbc --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec ilbc --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) if (HAS_SND_DEV == 0): test_param.skip = True + +pesq_threshold = 3.0 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_16000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_16000.py index 32543ccc..252e4efe 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_16000.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_16000.py @@ -6,10 +6,12 @@ from inc_cfg import * test_param = TestParam( "PESQ codec Speex WB (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --clock-rate 16000 --add-codec speex/16000 --play-file wavs/input.16.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --clock-rate 16000 --add-codec speex/16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --clock-rate 16000 --add-codec speex/16000 --play-file wavs/input.16.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --clock-rate 16000 --add-codec speex/16000 --rec-file wavs/tmp.16.wav --auto-answer 200") ] ) if (HAS_SND_DEV == 0): test_param.skip = True + +pesq_threshold = 3.7 diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_8000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_8000.py index e0049c8a..8f04dbc9 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_8000.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_8000.py @@ -6,10 +6,12 @@ from inc_cfg import * test_param = TestParam( "PESQ codec Speex NB (RX side uses snd dev)", [ - InstanceParam("UA1", "--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), - InstanceParam("UA2", "--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA1", "--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200") ] ) if (HAS_SND_DEV == 0): test_param.skip = True + +pesq_threshold = 3.0 |