mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 15:36:08 +00:00
Updates on detect-language
This commit is contained in:
1 parent
e022cdbf78
commit
c8d259420d
1 file changed
+1
@@ -348,6 +348,7 @@ def detect_language(
|
||||
audio_file: UploadFile = File(...),
|
||||
#encode: bool = Query(default=True, description="Encode audio first through ffmpeg") # This is always false from Bazarr
|
||||
):
|
||||
detected_lang_code = "" # Initialize with an empty string
|
||||
try:
|
||||
#give the 'process' a random name so mutliple Bazaar transcribes can operate at the same time.
|
||||
random_name = random.choices("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", k=6)
|
||||
|
||||
Reference in new issue
Block a user