How gvahck/manavoiceai works
ManaVoice AI is a multilingual text-to-speech platform. Users sign in, choose languages, optionally translate text, generate and play speech, then revisit or bookmark recordings and inspect usage. The React client calls a FastAPI API; speech synthesis writes WAV files to local storage while generation records and user data persist in MongoDB. The README also documents language discovery, account preferences, health probes, and dashboard/analytics capabilities. Route-to-service links below use inspected source references; some backend route implementations and frontend pages were not sampled, so those links are documented or omitted where uncertain.
Main entry points: App.tsx Route application · speech.py Speech routes · main.py API application · generation_repository.py Generation repository
Components 30
Web client
- Route application
frontend/src/App.tsx - API client
frontend/src/services/apiClient.ts
Identity and profile
- Auth state
frontend/src/contexts/AuthContext.tsx - Auth client
frontend/src/services/authService.ts - Auth routes
backend/app/api/routes/auth.py - User repository
backend/app/repositories/user_repository.py
Speech generation
- Speech studio
frontend/src/pages/StudioPage.tsx - Speech client
frontend/src/services/speechService.ts - Language client
frontend/src/services/languagesService.ts - Audio player
frontend/src/components/speech/AudioPlayer.tsx - Speech routes
backend/app/api/routes/speech.py - Translation service
backend/app/services/translation_service.py - TTS engine
backend/app/services/tts_service.py - Audio storage
backend/app/services/storage_service.py
Usage and library
- Dashboard
frontend/src/pages/DashboardPage.tsx - Analytics page
frontend/src/pages/AnalyticsPage.tsx - History page
frontend/src/pages/HistoryPage.tsx - Saved audio page
frontend/src/pages/SavedAudioPage.tsx - Generation repository
backend/app/repositories/generation_repository.py - Saved audio repository
backend/app/repositories/saved_audio_repository.py - Dashboard routes
backend/app/api/routes/dashboard.py - Analytics routes
backend/app/api/routes/analytics.py - History routes
backend/app/api/routes/history.py - Saved audio routes
backend/app/api/routes/saved_audio.py
Backend foundation
- API application
backend/app/main.py - Auth dependencies
backend/app/api/deps.py - MongoDB
backend/app/db/mongodb.py
Other components
- Visitor or user
- LibreTranslate
- Hugging Face models
Connections 40
- Visitor or user → Route application: uses
frontend/src/App.tsx - Route application → Auth state: provides auth
frontend/src/App.tsx - Route application → Speech studio: routes to
frontend/src/App.tsx - Route application → Dashboard: routes to
frontend/src/App.tsx - Route application → Analytics page: routes to
frontend/src/App.tsx - Route application → History page: routes to
frontend/src/App.tsx - Route application → Saved audio page: routes to
frontend/src/App.tsx - Auth state → Auth client: calls
frontend/src/contexts/AuthContext.tsx - Auth client → API client: uses
frontend/src/services/authService.ts - Speech studio → Speech client: calls
frontend/src/pages/StudioPage.tsx - Speech studio → Language client: loads languages
frontend/src/pages/StudioPage.tsx - Speech studio → Audio player: renders
frontend/src/pages/StudioPage.tsx - Speech client → API client: sends requests
frontend/src/services/speechService.ts - Speech client → Speech routes: calls API
README.md - Language client → API client: sends requests
- API application → Auth routes: registers
backend/app/main.py - API application → Speech routes: registers
backend/app/main.py - API application → Dashboard routes: registers
backend/app/main.py - API application → Analytics routes: registers
backend/app/main.py - API application → History routes: registers
backend/app/main.py - API application → Saved audio routes: registers
backend/app/main.py - Auth routes → User repository: uses
backend/app/api/routes/auth.py - Auth dependencies → User repository: provides repository
backend/app/api/deps.py - Auth dependencies → MongoDB: gets database
backend/app/api/deps.py - Speech routes → Translation service: calls
backend/app/api/routes/speech.py - Speech routes → TTS engine: calls
backend/app/api/routes/speech.py - Speech routes → Generation repository: persists generations
backend/app/api/routes/speech.py - Speech routes → Saved audio repository: checks saved state
backend/app/api/routes/speech.py - Speech routes → Audio storage: manages audio
backend/app/api/routes/speech.py - TTS engine → Audio storage: saves WAV
backend/app/services/tts_service.py - Translation service → LibreTranslate: translates via
README.md - TTS engine → Hugging Face models: loads models
backend/app/services/tts_service.py - Dashboard routes → Generation repository: queries metrics
backend/app/api/routes/dashboard.py - Dashboard routes → Saved audio repository: queries saved audio
backend/app/api/routes/dashboard.py - Analytics routes → Generation repository: queries trends
backend/app/api/routes/analytics.py - History routes → Generation repository: queries history
backend/app/api/routes/history.py - History routes → Audio storage: deletes audio
backend/app/api/routes/history.py - Saved audio routes → Saved audio repository: manages bookmarks
- Generation repository → MongoDB: reads and writes
- Saved audio repository → MongoDB: reads and writes