bazarr/custom_libs/subliminal_patch
JayZed 5749971d67
Improved whisper provider to not throttle when unsupported audio language is encountered. #2474
As we have noted before, bad input data should be no reason to throttle a provider.
In this case, if the input language was not supported by whisper, we were raising a ValueError that was never caught and causing an error in the whisper provider for which it was throttled.
Instead, we are now detecting this case and logging an error message.
However, given that the input language was not one of the 99 currently known to whisper, it's probably a mislabeled audio track. If the user desired output language is English, then we will tell whisper that the input audio is also English and ask it to transcribe it. Whisper does a very good job of transcribing almost anything to English, so it's worth a try.
This should address the throttling in issue #2474.
2024-04-29 22:11:47 -04:00
..
converters Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
providers Improved whisper provider to not throttle when unsupported audio language is encountered. #2474 2024-04-29 22:11:47 -04:00
refiners Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
__init__.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
core.py Fixed SyntaxWarning with Python 3.12. #2462 2024-04-24 06:49:38 -04:00
core_persistent.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
exceptions.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
extensions.py Added animetosho provider 2024-04-14 08:19:13 -04:00
http.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
language.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
pitcher.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
score.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
subtitle.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
utils.py Updated multiple Python modules (now in libs and custom_libs directories) and React libraries 2024-03-03 12:15:23 -05:00
video.py Added animetosho provider 2024-04-14 08:19:13 -04:00