New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creators and Learners can access voiceovers with accent #20163
base: develop
Are you sure you want to change the base?
Creators and Learners can access voiceovers with accent #20163
Conversation
…r_voice_artists
…r_voice_artists
…r_voice_artists
…r_voice_artists
…voiceovers_with_accent
…r_voice_artists
…r_voice_artists
…voiceovers_with_accent
…voiceovers_with_accent_creators
@@ -494,7 +494,7 @@ class ClassifierDict(TypedDict): | |||
ALPHANUMERIC_REGEX = r'^[A-Za-z0-9]+$' | |||
|
|||
# A regular expression for language accent code. | |||
LANGUAGE_ACCENT_CODE_REGEX = r'^(([a-z]+)-)+([A-Z]+)$' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This regex will fail for accent code zh-CN-sichuan
. Hence modified.
@@ -33,7 +33,7 @@ class VoiceoverAdminDataHandler( | |||
URL_PATH_ARGS_SCHEMAS: Dict[str, str] = {} | |||
HANDLER_ARGS_SCHEMAS: Dict[str, Dict[str, str]] = {'GET': {}} | |||
|
|||
@acl_decorators.can_access_voiceover_admin_page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Language accent master list should also be accessed in exp-player page, hence we need to make this open_access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vojtechjelinek @lkbhitesh07 @Lawful2002 can you please take a look at this PR once you are free?
Currently, I am working on fixing the tests.
Thank you
Overview
The PR introduces the changes so that creators and voiceover artists can now add voiceovers for state content in a specific accent of a language. And learners can access those voiceovers on the exploration player page.
This feature will be hidden behind the feature flag to smoothly launch the functionality.
Essential Checklist
Please follow the instructions for making a code change.
Testing doc (for PRs with Beam jobs that modify production server data)
Proof that changes are correct
Description: The below video demonstrates that voice artists can add manual voiceover using the new UI for the English language in a Canadian accent.
add_voiceover_in_a_language.mp4
Description: The below video demonstrates that voice artists can add manual voiceovers using the new UI for English in a Canadian accent and Hindi language in an Indian accent.
add_voiceover_in_two_different_languages.mp4
Description: The below video demonstrates that learners can access English voiceover in the Canadian language.
learning_in_english.online-video-cutter.com.mp4
Description: The below video demonstrates that learners can access Hindi voiceover in the Indian language.
learning_in_hindi.mp4
Proof of changes on desktop with slow/throttled network
Proof of changes on mobile phone
Proof of changes in Arabic language
PR Pointers