Skip to content
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

Open
wants to merge 100 commits into
base: develop
Choose a base branch
from

Conversation

Nik-09
Copy link
Member

@Nik-09 Nik-09 commented Apr 15, 2024

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.

  • I have linked the issue that this PR fixes in the "Development" section of the sidebar.
  • I have checked the "Files Changed" tab and confirmed that the changes are what I want to make.
  • I have written tests for my code.
  • The PR title starts with "Fix #bugnum: " or "Fix part of #bugnum: ...", followed by a short, clear summary of the changes.
  • I have assigned the correct reviewers to this PR (or will leave a comment with the phrase "@{{reviewer_username}} PTAL" if I can't assign them directly).

Testing doc (for PRs with Beam jobs that modify production server data)

  • A testing doc has been written: ... (ADD LINK) ...
  • (To be confirmed by the server admin) All jobs in this PR have been verified on a live server, and the PR is safe to merge.

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

Copy link

oppiabot bot commented May 13, 2024

Hi @Nik-09. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!

@Nik-09 Nik-09 removed request for a team and BenHenning May 20, 2024 14:06
@Nik-09 Nik-09 changed the title Creators can add voiceovers with accent Creators and Learners can access voiceovers with accent May 21, 2024
@@ -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]+)$'
Copy link
Member Author

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
Copy link
Member Author

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

Copy link
Member Author

@Nik-09 Nik-09 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants