On this page
A small language course should teach a defined set of phrases before promising fluency. This brief organizes licensed lessons, vocabulary and learner progress into a repeatable daily journey. Its initial proof is modest: complete a real lesson, replay its supplied audio and find the resulting vocabulary and learning date after reopening. Pronunciation assessment is excluded unless an actual assessment integration is commissioned.
Screens
- Lessons: Browse the supplied course sequence and resume unfinished learning.
- Lesson player: Read a prompt, play licensed audio and submit a response.
- Vocabulary: Review saved words with translations and pronunciation clips.
- Streak: Inspect completed learning dates under the declared timezone rule.
Data model
| Table | Key fields | Purpose |
|---|---|---|
| lessons | id (uuid), title (text), position (int), content_version (text) | Order the supplied curriculum and identify the version a learner completed. |
| words | id (uuid), lesson_id (uuid), source_text (text), translation (text), audio_path (text) | Associate vocabulary and licensed sound files with their teaching context. |
| progress | id (uuid), lesson_id (uuid), completed_at (timestamptz), local_day (date), score (int) | Save completion and an explicitly calculated lesson score. |
| word_reviews | id (uuid), word_id (uuid), reviewed_at (timestamptz), outcome (text) | Keep vocabulary practice separate from finishing the parent lesson. |
Use local learner progress for a single-device course and keep supplied content read-only. If accounts are added, scope progress and word reviews to their learner with server-side row-level security; course editors may maintain lessons but should not browse private learning histories. Record rights and attribution for text, translations and audio before distribution. Recording a learner’s voice requires a separate consent and deletion design, not merely microphone permission. A completed lesson must not upload speech behind the learner’s back.
Native features for the language learning app
Play the selected word’s licensed recording; label missing clips rather than silently playing a different vocabulary item. Show which lesson version and recordings are available without a connection, with a deliberate remove-download action.
| Feature | Android (Kotlin) | iPhone (SwiftUI) | Notes |
|---|---|---|---|
| Vocabulary pronunciation | Media3 player with audio focus | AVAudioSession and AVPlayer | Play the selected word’s licensed recording; label missing clips rather than silently playing a different vocabulary item. |
| Lesson pack retention | Room metadata and app-private audio files | SwiftData lesson index and downloaded file storage | Show which lesson version and recordings are available without a connection, with a deliberate remove-download action. |
| Practice invitations | Notification channels for review reminders | UserNotifications review schedule | A reminder opens the due vocabulary queue, not an unrelated lesson or a fabricated streak award. |
Android notes (Kotlin and Jetpack Compose)
Display lesson sections in a LazyColumn keyed by lesson and exercise IDs. Keep the selected answer in a ViewModel so rotating during a multiple-choice exercise does not reveal the correct answer or award completion twice.
- Use one Media3 player for pronunciation previews and release it when the lesson playback owner is disposed. Handle audio focus changes so another app can interrupt a clip without advancing the learner to the next word.
- Store completed exercises and word-review outcomes in separate Room tables. A WorkManager download job can retrieve an explicitly chosen lesson pack; show queued, partial and ready states, and do not count a successful download as a completed lesson.
- Test on an Android handset with headphones: start a reference clip, interrupt it with another audio app, then resume the same word. Enable airplane mode after downloading one lesson and verify that only downloaded recordings play while new review outcomes remain saved.
iPhone notes (Swift and SwiftUI)
Route from course outline to lesson to word detail with NavigationStack. A List keyed by vocabulary identifiers should retain the learner’s position when a pronunciation control changes state; translated text must expand instead of covering the play button.
- Configure AVAudioSession for the intended short-reference listening behavior. Distinguish listening to a model recording from recording the learner: the initial player needs no microphone prompt, and it must not claim to assess pronunciation.
- Use SwiftData for exercise outcomes and keep large audio files outside the database. Offer lesson-download management in a sheet that reports missing clips and storage use instead of implying the entire course is always available offline.
- On a physical iPhone, complete half a lesson, leave through the course outline, then return after relaunch. Verify retained answers, one completion award, and the selected learning date. Increase text size and check that a long source phrase and its translation remain readable together.
Copy-paste prompt
Build a language learning app for Android with Lessons, Lesson player, Vocabulary and Streak. Use my supplied or licensed text, translations and audio rather than inventing a course. Ask for the language pair, lesson sequence, answer matching policy, completion threshold and learning-day timezone. Model versioned lessons, words, progress and vocabulary reviews. Play actual pronunciation files in the foreground and show a recoverable unavailable-audio error. Do not display a fabricated speech score or request microphone access in this version. Keep learner progress private and ask before adding accounts. Include loading, no lessons, interrupted playback, incorrect answers, persistence failure and reminder permission denied. The acceptance journey must finish a supplied lesson, reopen into its saved progress, review its words and verify a repeat completion does not improperly add another streak day. Test the real audio route and a missing file on a phone.
Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.
Acceptance test
Include a content-update check: finish lesson version one, replace a translation in version two and verify the earlier completion still identifies the version studied. Do not silently recalculate an old score using a new answer key. Try answers containing accents, alternate scripts and extra spaces against the owner-approved matching policy; provide an understandable correction instead of stripping meaningful characters automatically. An empty vocabulary list should explain that no lesson words have been saved yet, while a failed progress write should offer retry without awarding a streak day. Reset learner history only after confirmation, remove scheduled practice reminders when appropriate and preserve the licensed course assets unless the owner explicitly requests their removal. Check that lesson completion alone never requests microphone access.
- Load a short licensed lesson containing five phrases and playable pronunciation files, then confirm the intended lesson order.
- Play a phrase through the phone speaker and headphones, interrupt playback and verify returning does not layer two audio streams.
- Complete the lesson using real answers and inspect its vocabulary list, score rule and dated streak entry.
- Reopen after closing the app and confirm progress and vocabulary survive; complete the same lesson again to check the repeat-day policy.
- Make one audio file unavailable and decline reminder permission; verify an honest playback error and working text practice without any fabricated pronunciation grade.
Frequently asked questions
Can this assess whether my accent is correct?
Not in the initial scope: playing a reference recording is not speech assessment. Add assessment only with an identified service, clear consent, retention rules and tests using actual recordings.
What establishes a streak day?
Choose a minimum completed activity and one timezone, then save the resulting local learning date. Opening the app or replaying a clip should not count unless that is the declared rule.
Who supplies the lesson translations?
The owner provides or licenses the curriculum and should review translations before publication. Generated exercises still need subject review and cannot be treated as an established course solely because they compile.
Build this blueprint
The blueprint prompt, ready for your platform. Edit anything before you send it.
Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.