How johnweslykurasa/voxbridge works
VoxBridge is a web platform for audio and video localization, with a Next.js frontend and a Python AI engine. The user workflow runs from submitting media or text through project creation and processing to viewing, streaming, or downloading localized results; video merging is a further capability. The diagram preserves the documented ASR, translation, speech synthesis, and merge stages. Some backend and frontend implementation details were not sampled, so those connections are shown only where the excerpts or README support them.
Main entry points: Project.ts MongoDB records · save/route.ts Media upload and save · tts.py Speech synthesis · text-to-voice/route.ts Text-to-voice API
Components 19
Web experience
- Dashboard and upload
frontend/src/app/dashboard/upload/page.tsx
Application API
- Project APIs
frontend/src/app/api/projects/route.ts - Media upload and save
frontend/src/app/api/upload/save/route.ts - Text-to-voice API
frontend/src/app/api/text-to-voice/route.ts - Audio streaming
frontend/src/app/api/tts/stream/[id]/route.ts - Video merge API
frontend/src/app/api/video-merge/route.ts - Result downloads
frontend/src/app/api/download/srt/[id]/route.ts
AI processing
- Python AI service
backend/main.py - Speech transcription
backend/transcribe.py - Text translation
backend/translate_text.py - Speech synthesis
backend/tts.py - Audio preprocessing
backend/audio_preprocessor.py - Video composition
backend/video_merge.py
Persistence and media
- MongoDB records
frontend/src/models/Project.ts - Media records
frontend/src/models/MediaFile.ts - Translation records
frontend/src/models/Translation.ts - User records
frontend/src/models/User.ts
Other components
- Creator
- Cloudinary media
Connections 25
- Creator → Dashboard and upload: submits media
README.md - Dashboard and upload → Media upload and save: uploads through
- Media upload and save → MongoDB records: creates project
frontend/src/app/api/upload/save/route.ts - Media upload and save → Media records: stores media
frontend/src/app/api/upload/save/route.ts - Media upload and save → User records: finds or creates
frontend/src/app/api/upload/save/route.ts - Media upload and save → Speech synthesis: invokes TTS helper
frontend/src/app/api/upload/save/route.ts - Python AI service → Speech transcription: runs script
backend/main.py - Speech synthesis → Audio preprocessing: preprocesses reference
backend/tts.py - Text-to-voice API → MongoDB records: connects and creates
frontend/src/app/api/text-to-voice/route.ts - Text-to-voice API → Translation records: creates translation
frontend/src/app/api/text-to-voice/route.ts - Text-to-voice API → User records: finds or creates
frontend/src/app/api/text-to-voice/route.ts - Text-to-voice API → Speech synthesis: invokes TTS helper
frontend/src/app/api/text-to-voice/route.ts - Project APIs → MongoDB records: queries projects
frontend/src/app/api/projects/route.ts - Project APIs → User records: looks up owner
frontend/src/app/api/projects/route.ts - Video merge API → MongoDB records: connects to
frontend/src/app/api/video-merge/route.ts - Video merge API → Translation records: loads translation
frontend/src/app/api/video-merge/route.ts - Video merge API → Video composition: runs merge script
frontend/src/app/api/video-merge/route.ts - Video merge API → Cloudinary media: uploads merged video
frontend/src/app/api/video-merge/route.ts - Audio streaming → MongoDB records: loads project
frontend/src/app/api/tts/stream/[id]/route.ts - Audio streaming → Translation records: loads translation
frontend/src/app/api/tts/stream/[id]/route.ts - Result downloads → MongoDB records: serves localized results
- Python AI service → Text translation: provides translation
README.md - Python AI service → Speech synthesis: provides speech synthesis
README.md - Python AI service → Video composition: provides video merge
README.md - Speech synthesis → Cloudinary media: publishes audio