mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 23:46:08 +00:00
Added force_detected_language_to to ASR
This commit is contained in:
1 parent
0332708616
commit
3d1c9e4c2b
1 file changed
+3
@@ -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