feat: extend transcript languages (#36964)
This commit is contained in:
@@ -724,7 +724,9 @@ def get_all_transcript_languages():
|
||||
third_party_transcription_languages.update(cielo_fidelity['PREMIUM']['languages'])
|
||||
third_party_transcription_languages.update(cielo_fidelity['PROFESSIONAL']['languages'])
|
||||
|
||||
all_languages_dict = dict(settings.ALL_LANGUAGES, **third_party_transcription_languages)
|
||||
# combines ALL_LANGUAGES with additional languages that should be supported for transcripts
|
||||
extended_all_languages = settings.ALL_LANGUAGES + settings.EXTENDED_VIDEO_TRANSCRIPT_LANGUAGES
|
||||
all_languages_dict = dict(extended_all_languages, **third_party_transcription_languages)
|
||||
# Return combined system settings and 3rd party transcript languages.
|
||||
all_languages = []
|
||||
for key, value in sorted(all_languages_dict.items(), key=lambda k_v: k_v[1]):
|
||||
|
||||
@@ -1563,6 +1563,9 @@ YOUTUBE = {
|
||||
|
||||
YOUTUBE_API_KEY = 'PUT_YOUR_API_KEY_HERE'
|
||||
|
||||
# Additional languages that should be supported for video transcripts, not included in ALL_LANGUAGES
|
||||
EXTENDED_VIDEO_TRANSCRIPT_LANGUAGES = []
|
||||
|
||||
############################# SETTINGS FOR VIDEO UPLOAD PIPELINE #############################
|
||||
|
||||
VIDEO_UPLOAD_PIPELINE = {
|
||||
|
||||
Reference in New Issue
Block a user