---
name: habify-english-help-spec
description: Complete HELP v1.0 specification covering manifest.json, lesson.json, all 12 interactive activity primitives, Voice Coach 5s/10s/15s idle hint state machine, and curated TTS voices.
homepage: https://english.dev.habifyhub.com/ai-agents
metadata:
  category: specification
  version: "1.0.0"
---

# HELP v1.0 Specification — Manifest, Lesson Graph & TTS Voices

Habify English Lesson Packages (**HELP v1.0**) are strictly declarative JSON + media bundles validated against `manifest.schema.json` and `lesson.schema.json`.

---

## 1. Bundle Structure (`.zip` or JSON API)

```text
lesson-package.zip
├── manifest.json       # Metadata, 2-axis targeting, skill_weights, voice_config
├── lesson.json         # Step graph (entry_step_id + steps[1..60])
├── assets/
│   ├── images/         # .webp / .png / .jpg (<= 2 MB each)
│   ├── audio/          # optional .mp3 / .ogg / .wav / .m4a (<= 5 MB each)
│   └── lottie/         # optional .json animations
└── i18n/
    ├── vi.json
    └── en.json
```

---

## 2. `manifest.json` Key Fields

- `schema_version`: `"1.0"` (const)
- `lesson_code`: lowercase kebab-case `^[a-z0-9]+(?:-[a-z0-9]+)*$` (3–100 chars)
- `semver`: `"1.0.0"`
- `title`: `{ "vi": "...", "en": "..." }` (both required)
- `subtitle`: optional `{ "vi": "...", "en": "..." }`
- `thumbnail_asset`: `"assets/images/..."`
- `estimated_minutes`: integer `2..45`
- `targeting`:
  - `age_bands`: non-empty unique array of `A1_TODDLER | A2_PRESCHOOL | A3_KINDERGARTEN | A4_LOWER_PRIMARY | A5_UPPER_PRIMARY`
  - `min_age_months` (`18..180`), `max_age_months` (`24..192`)
  - `heps_range`: `{ "min": 0..1000, "max": 0..1000 }`
  - `visual_style`: `cartoon_bold | realistic_clean | realistic_contextual | realistic_editorial | realistic_authentic | mixed_transition`
  - `pedagogy`: `tpr_chant | immersion | bilingual_scaffold | synthetic_phonics | communicative_task | story_immersive`
  - `lesson_role`: `stealth_placement | core | review_variant | milestone_quest | live_class_deck | homework_pack`
  - `similarity_group`: optional slug linking core & review variants (e.g. `"kitchen-fruits"`)
  - `topics[]`, `concepts[]`, `prerequisites[]`
  - `skill_weights`: `{ listening, vocabulary, phonics_reading, speaking, communication }` (each `0..1`)
  - `tier_access`: `free | plus | family | center_only`
- `voice_config`:
  - `mode`: `bundled_audio | tts_prebake | hybrid | live_tts`
  - `tts_profile`: `{ accent: "en-US"|"en-GB"|"en-AU", voice_id, speed: 0.65..1.2, fallback_vi_voice_id: "vi_vn_linh_gentle", prebake_accents: ["en-US","en-GB"], voice_instructions }`

---

## 3. Curated TTS Voices Catalog (`tts_voices`)

| `voice_id` | Accent | Persona | Default Speed |
|---|---|---|---:|
| `en_us_emma_warm` | `en-US` | Ms. Emma — Warm preschool/kindergarten teacher (Default US) | `0.90` |
| `en_us_leo_fun` | `en-US` | Leo — Energetic primary tutor & AI Character | `0.96` |
| `en_gb_clara_clear` | `en-GB` | Ms. Clara — Crisp RP Cambridge Starters/Movers (Default UK) | `0.92` |
| `en_gb_oliver_story` | `en-GB` | Mr. Oliver — Expressive storybook narrator | `0.94` |
| `en_au_mia_bright` | `en-AU` | Ms. Mia — Friendly Australian upper-primary voice | `0.98` |
| `vi_vn_linh_gentle` | `vi-VN` | Cô Linh — Gentle Vietnamese bilingual scaffold voice | `0.95` |

---

## 4. The 12 Activity Primitives (`steps[].type`)

1. `intro_scene` — Animated/illustrated welcome banner (`is_scored: false`, `headline_vi`, `headline_en`, `background_asset`).
2. `flashcard_explore` — Tap cards freely to hear pronunciation (`options[]` with `audio_cue`).
3. `flashcard_choose` — Listen to prompt and tap the matching visual card (`target_id`, `options[]`).
4. `listen_and_match` — Pair spoken/concept cards (`options[]`, `pairs: [{ left_id, right_id }]`).
5. `odd_one_out` — Identify the card that doesn't belong (`target_id`, `options[]`).
6. `phonics_blend` — Interactive phoneme-by-phoneme blending into target word (`phonemes[]`, `target_phrase`).
7. `tap_the_scene` — Tap interactive hotspots inside a rich background image (`background_asset`, `hotspots[{ id, label_en, x_pct, y_pct, radius_pct }]`).
8. `speak_repeat` — Child listens & speaks into mic via STT evaluation (`target_phrase`, `min_pronunciation_score`).
9. `sentence_builder` — Tap word chips in order to form a sentence (`word_tokens[]`, `expected_sentence`).
10. `mini_story_quiz` — Read/listen to a short story passage and answer (`story_text_en`, `target_id`, `options[]`).
11. `stealth_branch_gate` — Silent adaptive router evaluating prior steps (`branch_rules: { evaluate_prev_steps, high_accuracy_min, fast_latency_max_ms, low_accuracy_max, targets: { advance, steady, support } }`).
12. `celebration_reward` — Lesson finale awarding a collectible sticker (`reward_sticker_code`, `next_step_id: null`, `is_scored: false`).

---

## 5. Voice Coach Progressive Hints (`voice_coach`)

Every interactive step MUST define `voice_coach.initial_prompt` (with `tts_text`, `caption_vi`, `caption_en`). Add `idle_hints` for gentle 5s / 10s / 15s scaffolding:

```json
"voice_coach": {
  "initial_prompt": {
    "tts_text": "Tap the red apple!",
    "tts_lang": "en-US",
    "caption_vi": "Bé chạm vào quả táo đỏ nhé!",
    "caption_en": "Tap the red apple!"
  },
  "idle_hints": [
    { "after_ms": 5000, "hint_tier": 1, "visual_effect": "pulse_target" },
    {
      "after_ms": 10000,
      "hint_tier": 2,
      "visual_effect": "dim_distractors",
      "cue": {
        "tts_text": "Tìm quả táo màu đỏ tròn tròn nhé!",
        "tts_lang": "vi-VN",
        "caption_vi": "Tìm quả táo màu đỏ nhé!"
      }
    },
    { "after_ms": 15000, "hint_tier": 3, "visual_effect": "guided_hand" }
  ],
  "on_wrong_attempt": {
    "tts_text": "Good try! Look for the bright red apple.",
    "tts_lang": "en-US",
    "caption_vi": "Gần đúng rồi! Tìm quả táo đỏ nha."
  },
  "on_correct": {
    "tts_text": "Awesome! That is a red apple!",
    "tts_lang": "en-US",
    "caption_vi": "Tuyệt vời! Đó là quả táo đỏ!"
  }
}
```
