Skip to content

feat: support audio in quizzes#1733

Draft
huyenltnguyen wants to merge 3 commits intofreeCodeCamp:mainfrom
huyenltnguyen:feat/quiz-audio
Draft

feat: support audio in quizzes#1733
huyenltnguyen wants to merge 3 commits intofreeCodeCamp:mainfrom
huyenltnguyen:feat/quiz-audio

Conversation

@huyenltnguyen
Copy link
Member

@huyenltnguyen huyenltnguyen commented Feb 12, 2026

Checklist:

This PR:

Note: There are currently no quizzes in prod with audio. The Language Curricula team is starting to add audio to English quizzes, but these quizzes are not yet available in prod (isUpcomingChange: true). This change is purely preparatory, but it is required in order to release the quizzes. Otherwise, quizzes will reference audio that doesn't exist in the mobile app.

Screenshot Screenshot 2026-02-13 at 05 20 56

Steps to test

Since there are no quiz challenges with audio in staging or prod, I used mock challenge data to test.

You can:

  • Revert 4b89805 to bring back the test code
  • Start the app
  • Go to A2 Spanish and pick any quiz challenge
  • Scroll down to question 2

@huyenltnguyen huyenltnguyen force-pushed the feat/quiz-audio branch 3 times, most recently from dba43aa to 286f613 Compare February 12, 2026 23:14
// English Challenges
final FillInTheBlank? fillInTheBlank;
final EnglishAudio? audio;
final EnglishScene? audio;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm adding a new QuizAudio class so I renamed EnglishAudio to EnglishScene, to better differentiate the two.


class EnglishAudio {
final String fileName;
abstract class AudioClip {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented a shared class so both scene and quiz audio can share audio logic. (I did try to make the scene and quiz audio schema as close as possible for this purpose).

@huyenltnguyen huyenltnguyen force-pushed the feat/quiz-audio branch 3 times, most recently from 5e3a386 to dfdb891 Compare February 13, 2026 00:02
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.

1 participant