How xialeistudio/echoic works
Echoic is an AI speaking-practice application. Learners import audio or choose a curated episode, practice sentence by sentence, and review pronunciation scores and history; a separate oral-practice flow generates prompts and evaluates responses. The graph preserves the documented collection, gallery, analytics, and optional sentence-analysis capabilities. Source excerpts establish selected backend routing and service-factory relationships; unsampled feature routes and frontend API wiring are represented cautiously using README evidence.
Main entry points: audio.py Audio workflows · factory.py Service selection · main.py FastAPI application · oral.py Oral workflows
Components 24
Learner interface
- Page router
frontend/src/App.jsx - Audio library
frontend/src/pages/AudioLibrary.jsx - Content gallery
frontend/src/pages/Gallery.jsx - Sentence practice
frontend/src/pages/Practice.jsx - Oral practice
frontend/src/pages/OralPractice.jsx - Oral session hook
frontend/src/hooks/useOralPractice.js - Progress overview
frontend/src/pages/Overview.jsx
Application workflows
- Audio workflows
backend/app/api/routes/audio.py - Oral workflows
backend/app/api/routes/oral.py - Practice history
backend/app/api/routes/practice.py - Gallery imports
backend/app/api/routes/gallery.py - Collections
backend/app/api/routes/collections.py - Activity statistics
backend/app/api/routes/stats.py - FastAPI application
backend/app/main.py
Speech processing
- Transcription
backend/app/services/asr/whisperx.py - Word alignment
backend/app/services/alignment/wav2vec2.py - Phoneme scoring
backend/app/services/scoring/phoneme.py - Service selection
backend/app/services/factory.py
AI and content
- VOA and BBC sources
backend/app/services/gallery - LLM services
backend/app/services/llm
Persistence and media
- Application database
backend/app/db.py - Audio storage
backend/app/services/storage/local.py - Audio and attempt records
backend/app/models
Other components
- Learner
Connections 37
- Learner → Page router: uses
README.md - Page router → Audio library: routes to
frontend/src/App.jsx - Page router → Content gallery: routes to
frontend/src/App.jsx - Page router → Sentence practice: routes to
frontend/src/App.jsx - Page router → Oral practice: routes to
frontend/src/App.jsx - Learner → Progress overview: reviews progress
README.md - Audio library → Audio workflows: imports audio
README.md - Content gallery → Gallery imports: imports episodes
README.md - Sentence practice → Practice history: records attempts
README.md - Oral practice → Oral session hook: uses session flow
- Oral practice → Oral workflows: submits responses
README.md - FastAPI application → Audio workflows: mounts routes
backend/app/main.py - FastAPI application → Oral workflows: mounts routes
backend/app/main.py - FastAPI application → Practice history: mounts routes
backend/app/main.py - FastAPI application → Gallery imports: mounts routes
backend/app/main.py - FastAPI application → Collections: mounts routes
backend/app/main.py - FastAPI application → Activity statistics: mounts routes
backend/app/main.py - Audio workflows → Transcription: transcribes audio
backend/app/api/routes/audio.py - Audio workflows → Service selection: resolves services
backend/app/api/routes/audio.py - Oral workflows → Service selection: resolves services
backend/app/api/routes/oral.py - Service selection → Transcription: creates backend
backend/app/services/factory.py - Service selection → Word alignment: creates backend
backend/app/services/factory.py - Service selection → Phoneme scoring: creates backend
backend/app/services/factory.py - Service selection → LLM services: selects provider
backend/app/services/factory.py - Service selection → Audio storage: selects backend
backend/app/services/factory.py - Audio workflows → Word alignment: aligns speech
- Audio workflows → Phoneme scoring: scores pronunciation
- Oral workflows → LLM services: generates and evaluates
backend/app/api/routes/oral.py - Audio workflows → LLM services: analyzes sentences
backend/app/api/routes/audio.py - Gallery imports → VOA and BBC sources: imports episodes
- Audio workflows → Application database: reads and writes
backend/app/api/routes/audio.py - Oral workflows → Application database: saves attempts
backend/app/api/routes/oral.py - Audio workflows → Audio storage: stores audio
backend/app/api/routes/audio.py - Audio workflows → Audio and attempt records: persists audio records
backend/app/api/routes/audio.py - Oral workflows → Audio and attempt records: persists oral attempts
backend/app/api/routes/oral.py - Practice history → Audio and attempt records: uses practice records
- Gallery imports → Application database: saves imported items