How dbsrhks85/voice-complaint-ai works
Smart Minwon 24 is a voice-first civic complaint service: residents authenticate, record a complaint, review its transcription and AI classification, add location or attachments, and submit it; officials manage cases in a web dashboard. The backend coordinates speech recognition, classification, persistence, status updates, statistics, and notifications. The README documents mobile capabilities whose Flutter implementation files are not present in this tree, so those mobile subsystems are represented at the enclosing app path; backend integration details are limited to the sampled sources and documented endpoints.
Main entry points: App.jsx Admin dashboard · mobile-app Mobile app · main.py Complaint API · database.py Database client
Components 26
Citizen app
- Mobile app
mobile-app - Voice capture
mobile-app - Review and submit
mobile-app - Location and files
mobile-app - Push alerts
mobile-app
Backend services
- Complaint API
backend-server/main.py - Speech recognition
backend-server/stt_engine.py - AI classification
backend-server/nlp_engine.py - Kakao login
backend-server/routers/auth.py - User accounts
backend-server/services/user_service.py - Admin authentication
backend-server/routers/admin_auth.py - Token security
backend-server/core/security.py - Admin access control
backend-server/core/admin_auth.py - Case workflow
backend-server/main.py - Status notifications
backend-server/main.py - Kakao services
backend-server/services/kakao_service.py - Firebase FCM
- Live case events
backend-server/main.py
AI and data
- Database client
backend-server/database.py - Supabase records
- OpenAI APIs
Administration
- Admin dashboard
admin-web/src/App.jsx - Case management
admin-web/src/App.jsx - Statistics and map
admin-web/src/App.jsx
Other components
- Resident
- Public official
Connections 30
- Resident → Mobile app: uses
- Mobile app → Voice capture: records audio
- Mobile app → Review and submit: reviews results
- Mobile app → Location and files: adds context
- Mobile app → Complaint API: submits requests
- Complaint API → Speech recognition: transcribes audio
backend-server/main.py - Complaint API → AI classification: classifies text
backend-server/main.py - Complaint API → Case workflow: handles submissions
backend-server/main.py - Speech recognition → OpenAI APIs: calls Whisper
backend-server/stt_engine.py - AI classification → OpenAI APIs: calls GPT
backend-server/nlp_engine.py - AI classification → Database client: reads departments
backend-server/nlp_engine.py - Case workflow → Database client: stores cases
backend-server/main.py - Database client → Supabase records: accesses records
- Resident → Kakao login: authenticates
- Kakao login → Kakao services: fetches profile
backend-server/routers/auth.py - Kakao login → User accounts: resolves account
backend-server/routers/auth.py - User accounts → Database client: reads and writes
backend-server/services/user_service.py - Public official → Admin dashboard: uses
- Admin dashboard → Admin authentication: signs in
- Admin authentication → Token security: issues tokens
backend-server/routers/admin_auth.py - Admin authentication → Admin access control: checks identity
backend-server/routers/admin_auth.py - Admin dashboard → Case management: manages cases
admin-web/src/App.jsx - Case management → Complaint API: updates status
- Admin dashboard → Statistics and map: views statistics
admin-web/src/App.jsx - Admin dashboard → Live case events: subscribes events
admin-web/src/App.jsx - Live case events → Admin dashboard: refreshes cases
admin-web/src/App.jsx - Case workflow → Status notifications: sends status alerts
backend-server/main.py - Status notifications → Firebase FCM: delivers push
- Firebase FCM → Push alerts: delivers alerts
- Push alerts → Resident: notifies