Added force_detected_language_to to ASR
This commit is contained in:
@@ -406,6 +406,9 @@ def asr(
|
|||||||
result = None
|
result = None
|
||||||
random_name = random.choices("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", k=6)
|
random_name = random.choices("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", k=6)
|
||||||
|
|
||||||
|
if force_detected_language_to:
|
||||||
|
language = force_detected_language_to
|
||||||
|
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
start_model()
|
start_model()
|
||||||
files_to_transcribe.insert(0, f"Bazarr-asr-{random_name}")
|
files_to_transcribe.insert(0, f"Bazarr-asr-{random_name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user