- fix None reference

This commit is contained in:
Dmytro Bogovych 2023-09-17 18:23:38 +01:00
parent 3efc3d076c
commit e06636132b
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ def run_analyze(file_test: str, file_reference: str, number: str) -> bool:
return False return False
try: try:
bounds_signal : SignalBoundaries = None bounds_signal = SignalBoundaries()
if is_caller: if is_caller:
bounds_signal.offset_start = 10.0 # Skip ringtones bounds_signal.offset_start = 10.0 # Skip ringtones
bounds_signal.offset_finish = 1.0 # Eat possible end tone bounds_signal.offset_finish = 1.0 # Eat possible end tone
@ -297,7 +297,7 @@ def perform_answerer():
break break
# Call analyzer script # Call analyzer script
run_analyze(CONFIG.RecordFile, CONFIG.ReferenceAudio, '') run_analyze(CONFIG.RecordFile, CONFIG.PreparedReferenceAudio, '')
# Increase counter of attempts # Increase counter of attempts
attempt_idx += 1 attempt_idx += 1