2 Commits

Author SHA1 Message Date
e06636132b - fix None reference 2023-09-17 18:23:38 +01:00
3efc3d076c - fix the utils_sevana.py 2023-09-17 19:40:06 +03:00
2 changed files with 9 additions and 7 deletions

View File

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

View File

@@ -82,7 +82,9 @@ def load_config_and_licenses(server: str):
def find_binaries(bin_directory: Path, license_server: str = None) -> bool:
# Update path to pvqa/aqua-wb
global PVQA_CFG_PATH, PVQA_LIC_PATH, AQUA_LIC_PATH, PVQA_PATH, AQUA_PATH, PVQA_CMD, AQUA_CMD, SILER_PATH, SPEECH_DETECTOR_PATH
global PVQA_CFG_PATH, PVQA_LIC_PATH, AQUA_LIC_PATH, AQUA_CFG_PATH
global PVQA_PATH, AQUA_PATH, PVQA_CMD, AQUA_CMD
global SILER_PATH, SPEECH_DETECTOR_PATH
# Find platform prefix
platform_prefix = platform.system().lower()
@@ -95,7 +97,7 @@ def find_binaries(bin_directory: Path, license_server: str = None) -> bool:
AQUA_PATH = bin_directory / platform_prefix / AQUA_PATH
AQUA_CFG_PATH = bin_directory / AQUA_CFG_PATH
AQUA_LIC_PATH = bin_directory / AQUA_LIC_PATH
SILER_PATH = bin_directory / platform_prefix / SILER_PATH
# SILER_PATH = bin_directory / platform_prefix / SILER_PATH
SPEECH_DETECTOR_PATH = bin_directory / platform_prefix / SPEECH_DETECTOR_PATH
utils.log(f'Looking for binaries/licenses/configs at {bin_directory}...')
@@ -123,9 +125,9 @@ def find_binaries(bin_directory: Path, license_server: str = None) -> bool:
utils.log_error(f'Failed to find aqua-wb binary.')
return False
if not SILER_PATH.exists():
utils.log_error(f'Failed to find silence_eraser binary..')
return False
# if not SILER_PATH.exists():
# utils.log_error(f'Failed to find silence_eraser binary..')
# return False
if license_server is not None:
AQUA_LIC_PATH = '"license://' + license_server + '"'