- fix false alarm when checking recorded audio is good
This commit is contained in:
parent
59d38975e3
commit
c186badb43
|
|
@ -147,8 +147,8 @@ def run_analyze(file_test: str, file_reference: str, number: str) -> bool:
|
|||
utils.log(f'Recorded audio call duration: {test_audio_length}s, reference audio length: {ref_audio_length}s')
|
||||
|
||||
# Check if audio length is strange - skip such calls. Usually this is missed call.
|
||||
is_caller_audio_big = is_caller and test_audio_length > ref_audio_length * 1.5
|
||||
is_answerer_audio_big = is_answerer and test_audio_length > ref_audio_length * 1.5
|
||||
is_caller_audio_big = is_caller and test_audio_length > ref_audio_length * 3
|
||||
is_answerer_audio_big = is_answerer and test_audio_length > ref_audio_length * 3
|
||||
|
||||
if is_caller_audio_big or is_answerer_audio_big:
|
||||
utils.log_error(f'Recorded call is too big - looks like mobile operator prompt, skipping analysis')
|
||||
|
|
|
|||
Loading…
Reference in New Issue