diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2008-06-25 15:05:21 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2008-06-25 15:05:21 +0000 |
commit | fcaef87b692593c89b0c062f0cf89386f76a25d3 (patch) | |
tree | 74f209c9e3ba3aa9a010220e9da5d83ad5aeb0b2 /pjsip-apps/src/test-pjsua/mod_media_playrec.py | |
parent | 1fbf252307e25cd56deb0cf68b7193c08b568f68 (diff) |
Ticket #543: added mod pesq & mod media playrec to runall.py, also added some more wav files
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2051 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/mod_media_playrec.py')
-rw-r--r-- | pjsip-apps/src/test-pjsua/mod_media_playrec.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pjsip-apps/src/test-pjsua/mod_media_playrec.py b/pjsip-apps/src/test-pjsua/mod_media_playrec.py index 30f2f6db..2fe260d2 100644 --- a/pjsip-apps/src/test-pjsua/mod_media_playrec.py +++ b/pjsip-apps/src/test-pjsua/mod_media_playrec.py @@ -21,6 +21,9 @@ cfg_file = imp.load_source("cfg_file", sys.argv[2]) # WAV similarity calculator COMPARE_WAV_EXE = "tools/cmp_wav.exe" +# Threshold to declare degradation is too high when result is lower than this value +COMPARE_THRESHOLD = 2 + # UserData class mod_media_playrec_user_data: input_filename = "" @@ -86,10 +89,10 @@ def post_func(t, ud): # Evaluate the similarity value sim_val = mo_sim_val.group(1) - if (sim_val > 0): + if (sim_val >= COMPARE_THRESHOLD): endpt.trace("WAV similarity = " + sim_val) else: - raise TestError("Degraded WAV heavily distorted") + raise TestError("WAV degraded heavily, similarity = " + sim_val) # Here where it all comes together |