diff --git a/src/agent_gsm.py b/src/agent_gsm.py index 152894e..af3c079 100644 --- a/src/agent_gsm.py +++ b/src/agent_gsm.py @@ -128,7 +128,7 @@ def run_analyze(file_test: str, file_reference: str, number: str) -> bool: is_caller : bool = 'caller' in BackendServer.phone.role is_answerer : bool = 'answer' in BackendServer.phone.role - utils.log(f'Recorded audio call duration: {audio_length}s') + utils.log(f'Recorded audio call duration: {round(audio_length, 3)}s') # Check if audio length is strange - skip such calls. Usually this is missed call. if (is_caller and audio_length >= utils_mcon.TIME_LIMIT_CALL) or (is_answerer and audio_length >= utils_mcon.TIME_LIMIT_CALL * 1.2): utils.log_error(f'Recorded call is too big - looks like mobile operator prompt, skipping analysis')