Reading parallel-text short stories is one of the fastest ways to absorb a new language—especially tonal languages like Vietnamese—but static PDFs have two annoying limitations:

  1. You can't click to hear pronunciation in English or Vietnamese.
  2. Your eyes automatically cheat by reading the translation column before your brain tries to decode the sentence.

To solve both problems with zero servers, zero API costs, and 100% offline reliability, I built a single-file interactive HTML bilingual reader using pure vanilla JavaScript and the browser's built-in Web Speech API (window.speechSynthesis).

Core Architecture (Works 100% Offline in Chrome, Edge & Safari)

1. Bilingual Read-Aloud Engine (en-US & vi-VN) with Speed Control

Instead of shipping 100 MB of heavy MP3 files, we map each paragraph tuple [englishText, vietnameseText] to a clean SpeechSynthesisUtterance helper with a 0.75x slow-learner speed option:

function speakText(text, lang, rate = 0.95) { if (!('speechSynthesis' in window)) { alert('Web Speech API not supported in this browser.'); return; } window.speechSynthesis.cancel(); const utterance = new SpeechSynthesisUtterance(text); utterance.lang = lang; // 'en-US' or 'vi-VN' utterance.rate = rate; // 0.75 for slow learners, 0.95 natural const voices = window.speechSynthesis.getVoices(); const match = voices.find(v => v.lang?.toLowerCase().startsWith(lang.slice(0, 2))); if (match) utterance.voice = match; window.speechSynthesis.speak(utterance); } 

2. Zero-Cheat CSS Blur Toggle (Active Recall Study Mode)

Adding a single CSS class lets learners blur either the Vietnamese or English column—and simply hover/tap any paragraph to peek when stuck:

.hidden-text { filter: blur(7px); user-select: none; cursor: pointer; transition: filter 0.2s ease; } .hidden-text:hover { filter: none; } 

3. Click-to-Flip Vocabulary Cards + Anki .CSV Export

Each story pairs 12 curated words/idioms (with IPA pronunciation and bilingual context sentences) into interactive HTML flip-cards AND exports a UTF-8-BOM .csv ready for 1-click import into Anki or Quizlet.

Sample Parallel Excerpt Inside the Reader (B1 Cozy Mystery — Saigon)

EN: At ten minutes past closing time, cafe owner Trang noticed that the antique silver pocket watch displayed inside her glass counter had vanished. Only three customers had sat near the counter during the evening rainstorm: a quiet violinist, an art dealer, and a hurried tourist.

VI: Mười phút sau giờ đóng cửa, Trang — chủ quán cà phê sách — bỗng phát hiện chiếc đồng hồ bỏ túi bằng bạc cổ trưng bày trong tủ kính đã biến mất. Suốt cơn mưa dông buổi tối chỉ có đúng ba vị khách ngồi gần quầy: một nghệ sĩ vĩ cầm trầm lặng, một người buôn tranh và một du khách vội vã.

Try the Free Sample Stories or Grab the Complete 30-Story Library

I packaged this offline HTML Audio Reader alongside 3 original English–Vietnamese bilingual short-story volumes (covering A1 Beginner through B2 Upper-Intermediate):

Transparency Note: All 30 stories and companion study decks are 100% original works authored with AI-assisted drafting and bilingual human curation by LingoBridge Studio.