How quancut244-jpg/live-business-translator works
This is a Vietnamese–English live business-meeting translator with a React interface and FastAPI backend. In the live workflow, the meeting page captures microphone audio and uses a socket service to exchange audio and transcript events with backend routes; backend processing validates audio, transcribes it, translates text, and can synthesize spoken output. The interface also presents conversation messages and meeting controls. Source excerpts show frontend component use and backend service imports, but omit key route and socket implementations, so some cross-process links remain unverified.
Main entry points: main.py HTTP and socket routes · LiveMeetingPage.tsx Live meeting · ConversationList.tsx Conversation list · speech_pipeline.py Speech pipeline
Components 16
Meeting interface
- Live meeting
UIandUX/src/pages/LiveMeetingPage/LiveMeetingPage.tsx - App shell
UIandUX/src/App.tsx - Conversation list
UIandUX/src/components/conversation/ConversationList.tsx - Message card
UIandUX/src/components/conversation/MessageCard.tsx - Sample messages
UIandUX/src/data/mockMessages.ts - Microphone capture
UIandUX/src/services/microphone.ts - Live socket
UIandUX/src/services/liveSocket.ts - API client
UIandUX/src/services/api.ts
API processing
- HTTP and socket routes
backend/app/main.py - Audio validation
backend/app/validators/audio_validator.py - Backend configuration
backend/app/config.py
Speech services
- Speech recognition
backend/app/services/speech_to_text.py - Text translation
backend/speech/translation_service.py - Speech synthesis
backend/speech/tts_service.py - Speech pipeline
backend/speech/speech_pipeline.py
Other components
- Meeting participant
Connections 16
- Meeting participant → Live meeting: uses
UIandUX/src/pages/LiveMeetingPage/LiveMeetingPage.tsx - App shell → Live meeting: renders
UIandUX/src/App.tsx - Live meeting → Microphone capture: captures audio
UIandUX/src/pages/LiveMeetingPage/LiveMeetingPage.tsx - Live meeting → Live socket: exchanges events
UIandUX/src/pages/LiveMeetingPage/LiveMeetingPage.tsx - Live meeting → Conversation list: renders
UIandUX/src/pages/LiveMeetingPage/LiveMeetingPage.tsx - Conversation list → Message card: renders
UIandUX/src/components/conversation/ConversationList.tsx - Conversation list → Sample messages: loads samples
UIandUX/src/components/conversation/ConversationList.tsx - API client → HTTP and socket routes: HTTP requests
- Live socket → HTTP and socket routes: socket events
- HTTP and socket routes → Audio validation: validates uploads
backend/app/main.py - Audio validation → Backend configuration: reads limits
backend/app/validators/audio_validator.py - HTTP and socket routes → Speech recognition: transcribes audio
backend/app/main.py - HTTP and socket routes → Text translation: translates text
backend/app/main.py - HTTP and socket routes → Speech synthesis: synthesizes speech
backend/app/main.py - Speech pipeline → Text translation: uses translator
backend/speech/speech_pipeline.py - Speech pipeline → Speech synthesis: speaks translation
backend/speech/speech_pipeline.py