How soroush-mohammadi/study-room works
Word-Sync Transcript Player lets a user upload audio, request a word-timestamped transcript, play the audio with synchronized word highlighting, and build a translated vocabulary list. The frontend coordinates these steps through App; the backend validates and caches requests before calling external transcription or translation services. The README documents the upload-to-playback workflow and animation-frame synchronization. Some frontend API wiring and translation HTTP details were not excerpted, so those links are left unverified rather than inferred.
Main entry points: App.jsx Workflow state · transcribe.js Transcription route · api.js API client · translate.js Translation route
Components 21
React client
- Workflow state
client/src/App.jsx - Audio selection
client/src/components/UploadPanel.jsx - Audio player
client/src/components/AudioPlayer.jsx - Word sync
client/src/hooks/useAudioSync.js - Transcript view
client/src/components/Transcript.jsx - Word count
client/src/components/WordCount.jsx - Mobile menu
client/src/components/MobileMenu.jsx - Vocabulary page
client/src/components/WordListPage.jsx - Vocabulary list
client/src/components/WordList.jsx - Language choice
client/src/components/LanguageSelect.jsx - API client
client/src/api.js
Express API
- HTTP server
server/src/index.js - Transcription route
server/src/routes/transcribe.js - Transcript cache
server/src/cache.js - Translation route
server/src/routes/translate.js - Translation cache
server/src/translateCache.js
External services
- Transcription service
server/src/services/assemblyai.js - Translation provider
server/src/services/mymemory.js - AssemblyAI
- MyMemory
Other components
- Audio learner
Connections 25
- Audio learner → Audio selection: selects audio
README.md - Audio selection → Workflow state: reports selection
client/src/App.jsx - Audio learner → Workflow state: requests transcription
README.md - Workflow state → API client: requests transcription
client/src/App.jsx - API client → Transcription route: posts audio
- HTTP server → Transcription route: mounts route
server/src/index.js - Transcription route → Transcript cache: hashes and caches
server/src/routes/transcribe.js - Transcription route → Transcription service: transcribes file
server/src/routes/transcribe.js - Transcription service → AssemblyAI: uploads and polls
server/src/services/assemblyai.js - Transcription route → Workflow state: returns word timings
- Workflow state → Audio player: sets audio source
client/src/App.jsx - Workflow state → Word sync: tracks playback
client/src/App.jsx - Workflow state → Transcript view: passes active word
client/src/App.jsx - Word sync → Audio player: reads playback time
client/src/hooks/useAudioSync.js - Workflow state → Vocabulary list: renders vocabulary
client/src/App.jsx - Workflow state → Language choice: handles language choice
client/src/App.jsx - Workflow state → API client: requests translation
client/src/App.jsx - API client → Translation route: posts word
- HTTP server → Translation route: mounts route
server/src/index.js - Translation route → Translation cache: reads and writes
server/src/routes/translate.js - Translation route → Translation provider: translates text
server/src/routes/translate.js - Translation provider → MyMemory: queries provider
server/src/services/mymemory.js - Workflow state → Mobile menu: passes vocabulary
client/src/App.jsx - Mobile menu → Word count: renders count
client/src/App.jsx - Workflow state → Vocabulary page: shows vocabulary page
client/src/App.jsx