mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 15:36:08 +00:00
Update subgen.py
This commit is contained in:
1 parent
fd2e785631
commit
b1b1c2e4de
1 file changed
+1
-1
+1
-1
@@ -361,7 +361,7 @@ def detect_language(
|
||||
if(hf_transformers):
|
||||
detected_lang_code = model.transcribe(whisper.pad_or_trim(audio_data, input_sr=16000, batch_size=hf_batch_size).language
|
||||
else:
|
||||
detected_lang_code = model.transcribe_stable(whisper.pad_or_trim(np.frombuffer(audio_data, input_sr=16000).language
|
||||
detected_lang_code = model.transcribe_stable(whisper.pad_or_trim(audio_data, input_sr=16000).language
|
||||
|
||||
except Exception as e:
|
||||
logging.info(f"Error processing or transcribing Bazarr {audio_file.filename}: {e}")
|
||||
|
||||
Reference in new issue
Block a user