Ignore:
Timestamp:
Jun 25, 2008 3:05:21 PM (16 years ago)
Author:
nanang
Message:

Ticket #543: added mod pesq & mod media playrec to runall.py, also added some more wav files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/test-pjsua/mod_media_playrec.py

    r2036 r2051  
    2121# WAV similarity calculator 
    2222COMPARE_WAV_EXE = "tools/cmp_wav.exe" 
     23 
     24# Threshold to declare degradation is too high when result is lower than this value 
     25COMPARE_THRESHOLD = 2 
    2326 
    2427# UserData 
     
    8790        # Evaluate the similarity value 
    8891        sim_val = mo_sim_val.group(1) 
    89         if (sim_val > 0): 
     92        if (sim_val >= COMPARE_THRESHOLD): 
    9093                endpt.trace("WAV similarity = " + sim_val) 
    9194        else: 
    92                 raise TestError("Degraded WAV heavily distorted") 
     95                raise TestError("WAV degraded heavily, similarity = " + sim_val) 
    9396 
    9497 
Note: See TracChangeset for help on using the changeset viewer.