Added force_detected_language_to to ASR

This commit is contained in:
McCloudS
2024-04-10 12:57:40 -06:00
committed by GitHub
parent 0332708616
commit 3d1c9e4c2b

View File

@@ -405,6 +405,9 @@ def asr(
logging.info(f"Transcribing file from Bazarr/ASR webhook")
result = None
random_name = random.choices("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", k=6)
if force_detected_language_to:
language = force_detected_language_to
start_time = time.time()
start_model()