Compare commits
2 Commits
e512f7a643
...
mos
| Author | SHA1 | Date | |
|---|---|---|---|
| e06636132b | |||
| 3efc3d076c |
@@ -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
|
||||||
|
|||||||
@@ -82,7 +82,9 @@ def load_config_and_licenses(server: str):
|
|||||||
|
|
||||||
def find_binaries(bin_directory: Path, license_server: str = None) -> bool:
|
def find_binaries(bin_directory: Path, license_server: str = None) -> bool:
|
||||||
# Update path to pvqa/aqua-wb
|
# 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
|
# Find platform prefix
|
||||||
platform_prefix = platform.system().lower()
|
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_PATH = bin_directory / platform_prefix / AQUA_PATH
|
||||||
AQUA_CFG_PATH = bin_directory / AQUA_CFG_PATH
|
AQUA_CFG_PATH = bin_directory / AQUA_CFG_PATH
|
||||||
AQUA_LIC_PATH = bin_directory / AQUA_LIC_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
|
SPEECH_DETECTOR_PATH = bin_directory / platform_prefix / SPEECH_DETECTOR_PATH
|
||||||
|
|
||||||
utils.log(f'Looking for binaries/licenses/configs at {bin_directory}...')
|
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.')
|
utils.log_error(f'Failed to find aqua-wb binary.')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not SILER_PATH.exists():
|
# if not SILER_PATH.exists():
|
||||||
utils.log_error(f'Failed to find silence_eraser binary..')
|
# utils.log_error(f'Failed to find silence_eraser binary..')
|
||||||
return False
|
# return False
|
||||||
|
|
||||||
if license_server is not None:
|
if license_server is not None:
|
||||||
AQUA_LIC_PATH = '"license://' + license_server + '"'
|
AQUA_LIC_PATH = '"license://' + license_server + '"'
|
||||||
|
|||||||
Reference in New Issue
Block a user