Ye project tumhare phone assistant idea ka starter architecture deta hai:
- Android (Kotlin, Android Studio): Wake word, STT, TTS, phone controls, foreground background service.
- Spring Boot API (Kotlin): Command understanding, response generation, memory, history analytics, future heavy processing integration.
- Foreground service wake-word listener chalata hai.
- Wake word trigger hone ke baad STT user command text banata hai.
- Android app command ko Spring Boot API ko bhejta hai.
- API NLP intent map karta hai aur response/action-plan banata hai.
- Android app action-plan execute karta hai (call, flashlight, volume, app open).
- Reply ko TTS se बोलता hai.
- Saari interactions history aur analytics store me jati hain.
Path: backend/
Run (if Gradle installed):
cd backend
gradle bootRunMain endpoints:
POST /api/v1/assistant/command- command parsing + response generation.POST /api/v1/memory/preferences- user preference store.GET /api/v1/memory/preferences/{userId}- user preferences read.GET /api/v1/history/{userId}- command history.GET /api/v1/history/analytics/overview- top intents + totals.
Path: android/app/src/main/java/com/example/phoneassistant/
Included starter classes:
AssistantForegroundService- background continuous listening architecture.VoicePipeline- wake word + STT + TTS abstraction.AssistantApiClient- backend integration.PhoneControlExecutor- action plan execution layer.
- LLM orchestration service + prompt guardrails.
- Queue based async processing (Kafka/RabbitMQ).
- Vector memory (user preference + context retrieval).
- Voice biometrics and personalization.
- On-device/off-device hybrid intent routing.