A privacy-first, fully local AI voice assistant for Android that connects to your own running services. No cloud dependencies, no telemetry, no data leaves your device.
- On-Device Wake Word Detection - Matches your own recorded phrases against the microphone clip on-device (no built-in phrase, no cloud, no external runtime); detection never fires on silence or room noise
- Voice Pipeline - Complete voice interaction: STT β LLM β TTS
- Continuous Conversation - One wake word opens a conversation: after every reply the mic re-arms, so you keep talking to the assistant until there is real silence
- Hands-Free Overlay Outside The App - The exchange is drawn over the home screen or whatever the device is showing, through a voice interaction session service - it stays visible while the app is minimized
- Chat History - Timestamped conversation on the chat screen, with pinning and summarization
- 100% local processing - all AI runs on your own hardware
- No cloud services, no analytics, no telemetry
- All data stays on your device
- OpenAI-compatible endpoints for maximum flexibility
- Clean Material 3 design with the Gruvbox palette
- A compact card that rises from the bottom edge, with the reply streaming into its bubble
- A status dot and label that name the current phase (Ready / Listeningβ¦ / Thinkingβ¦ / Answeringβ¦ / Speakingβ¦)
- Comprehensive settings for every configuration
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β UI Layer (Compose) β
β ββββββββββββ ββββββββββββ ββββββββββββββββββββ β
β β ChatScreenβ βSettings β β VoiceControlsBar β β
β ββββββββββββ ββββββββββββ ββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ViewModel Layer β
β ββββββββββββββββ ββββββββββββββββββββ β
β β ChatViewModelβ βSettingsViewModel β β
β ββββββββββββββββ ββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Service Layer β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β VoiceAssistantService (in-app pipeline) β β
β β audio capture β VAD β STT β LLM β TTS β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ€ β
β β WakeChatService (hands-free, a β β
β β VoiceInteractionService) β β
β β wake match β record β STT β LLM β TTS β β
β β β showSession() β re-arm mic β β
β β WakeChatSessionService (draws the card) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Data Layer β
β ββββββββββββββββ ββββββββββββββββββββ β
β β Room DB β β SharedPreferencesβ β
β β (Chat History)β β (Settings) β β
β ββββββββββββββββ ββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β External Services (Local) β
β ββββββββββββ ββββββββββββ ββββββββββββ β
β β LLM β β STT β β TTS β β
β β (OpenAI- β β (OpenAI β β (OpenAI β β
β β compat) β β audio) β β audio) β β
β ββββββββββββ ββββββββββββ ββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Android 12 (API 35) or higher -
minSdkandtargetSdkare both 35 - Microphone access
- Network access to your local AI services
- To use the hands-free overlay, the platform must host hands-free conversations: open the system's "Default digital assistant" page and select LocalAssistant. Without that selection the app still runs its own pipeline, but the system refuses to draw the card outside the app.
You need to run these services on your local network. Any OpenAI-compatible server works; the app is tested against the ones named below.
Tested against llama.cpp server;
Ollama and vLLM also work.
# llama.cpp
llama-server -m /models/Qwen3.5-4B-Q4_K_M.gguf --port 8086
# or Ollama
ollama pull llama3.1:8b && ollama serveReasoning models stream their chain of thought before the answer, so keep
max_tokensgenerous (256 or more) or the response comes back with emptycontent.
Tested against whisper.cpp server;
faster-whisper works too.
# whisper.cpp
./whisper-server -m ggml-medium.bin -t 8 --port 8088Tested against a qwentts.cpp server; Piper and Coqui TTS work
behind an OpenAI-compatible shim.
# Always send response_format - it names the container the client receives
curl -X POST http://192.168.1.100:8087/v1/audio/speech \
-H 'Content-Type: application/json' \
-d '{"model":"<model>","input":"Hello","response_format":"wav"}'Never hardcode a voice name: read
GET /v1/audio/voicesand use what it advertises. A server that answers{"voices":[]}rejects everyvoicefield, so omit it there.
cd /path/to/LocalAssistant
./gradlew assembleDebugadb install -r app/build/outputs/apk/debug/app-debug.apkOpen the app β Settings:
- LLM Base URL: e.g.
http://192.168.1.100:8086 - STT Base URL: e.g.
http://192.168.1.100:8088 - TTS Base URL: e.g.
http://192.168.1.100:8087
Base URLs may be given with or without the trailing route - the client strips a known suffix and appends the correct one.
The app will request:
- Microphone access (for voice input)
- The persistent notification required for always-listening mode
- Battery optimization exemption (recommended for continuous operation)
- Open the app β Settings β Wake Word and record one or more references of the phrase you want to say ("Record Reference"). Detection only matches those recordings; with none enrolled the wake service reports that and never fires.
- Start listening (mic button, or the home-screen widget). The service keeps running while the app is minimized.
- Say the phrase you enrolled. The card rises from the bottom edge and the chime confirms it heard you - the card is raised first, so it is already up when the chime sounds.
- Speak your request. The transcript appears in the user bubble, the reply streams into the answer bubble as it arrives, and TTS reads it aloud.
- Keep talking. After the reply the mic re-arms and the card still shows the previous turn, so you can ask a follow-up without saying the wake word again. The card closes once real silence reaches the configured timeout - listening, thinking and speaking never count down against it.
Configure all aspects of the assistant:
- API endpoints, model names and voices
- Wake word references (recorded on-device) and match sensitivity
- Voice activity detection (minimum silence, energy floor)
- System prompt for custom behavior
- Wake chat windows: the first-turn request window and the close timeout
- Generation controls:
max_tokens, reasoning budget andchat_template_kwargs
Trigger an exchange without going through the menus or saying the phrase:
adb shell "am start -W -a com.localassistant.TRIGGER_WAKE_CHAT com.localassistant.app/.ui.MainActivity"The service logs its own phase, so adb logcat filtered on the class name is the running trace:
adb logcat | grep WakeChatThe whole detection pipeline - microphone capture, the cut to the utterance, MFCC features, the
band-limited DTW match against your own recorded references, the threshold and the idle listening
loop - is documented in docs/wake-word-pipeline.md. It names every
constant and why it has that value, the log tags to filter on, and what a healthy enrollment looks
like when a wake word refuses to fire.
app/
βββ src/main/java/com/localassistant/app/
β βββ LocalAssistantApplication.kt # Application class
β βββ domain/
β β βββ model/ # Data models
β β βββ ChatMessage.kt # Message entity
β β βββ AppSettings.kt # Settings data class
β βββ data/
β β βββ local/ # Room database
β β β βββ LocalAssistantDatabase.kt
β β β βββ ChatMessageDao.kt
β β βββ remote/ # API clients
β β β βββ ApiClient.kt # HTTP client for LLM/STT/TTS
β β βββ settings/ # Settings repository
β β βββ SettingsRepository.kt
β βββ service/ # Foreground services
β β βββ VoiceAssistantService.kt # Main in-app voice pipeline
β β βββ WakeChatService.kt # Hands-free wake-word pipeline (a VoiceInteractionService)
β β βββ WakeChatSessionService.kt # Draws the exchange over the system UI (a VoiceInteractionSessionService)
β β βββ WakeChatRecognitionService.kt # Hollow RecognitionService stub required by the manifest resource
β βββ ui/ # Compose UI
β β βββ MainActivity.kt # Entry point & navigation graph
β β βββ chat/ # Chat screen components
β β β βββ ChatScreen.kt # Main chat interface & VoiceControlsBar
β β β βββ ChatViewModel.kt # Chat state management
β β βββ wake/ # Wake service plumbing (renderer only)
β β β βββ WakeChatViewModel.kt # Forwards the service's state & start/stop intents
β β βββ settings/ # Settings screen components
β β β βββ SettingsScreen.kt # Configuration UI
β β β βββ SettingsViewModel.kt # Settings state management
β β βββ common/ # Audio helpers, VAD, wake-word matcher
β β β βββ CommonUtilities.kt
β β β βββ WakeWordDetector.kt
β β β βββ DefaultAssistant.kt # Assistant-role oracle & picker intents
β β βββ theme/ # Gruvbox Material3 colour schemes
β β βββ Theme.kt
β βββ receiver/ # Broadcast receivers
β β βββ AppBootReceiver.kt # Boot completed handler
β β βββ NetworkStateReceiver.kt # Network connectivity monitor
β βββ widget/ # Home-screen widget
β βββ VoiceAssistantWidget.kt
βββ src/main/res/
β βββ values/ # Light string resources & themes
β β βββ strings.xml # All string resources
β β βββ colors.xml # Light palette (mirrors Theme.kt)
β β βββ themes.xml # App theme configuration
β βββ values-night/ # Dark variants of the same tokens
β β βββ colors.xml
β β βββ themes.xml
β βββ xml/
β βββ network_security_config.xml # Cleartext HTTP to local endpoints
β βββ voice_interaction.xml # Names the voice service and its session half
β βββ widget_voice_assistant.xml # Widget descriptor
β βββ backup_rules.xml
β βββ data_extraction_rules.xml
βββ src/main/assets/
β βββ voice_clone.wav # Bundled sample used by the TTS/STT tests
βββ build.gradle.kts # Module-level Gradle config
βββ AndroidManifest.xml # App manifest with permissions
- Check that all local services are running and accessible
- Verify network connectivity between device and services
- Ensure battery optimization is disabled for the app
The session window is drawn by the platform, so the app has to hold the assistant role. Open the
system's "Default digital assistant" page and select LocalAssistant, then start the service again -
adb install force-stops the running process. The service logs
onReady: the system has bound this app as its voice interaction service once the platform has
really bound it; if that line never appears, the selection is the problem, not the code.
- Grant microphone permission in Settings β Permissions
- Check that audio format matches your STT service requirements (16 kHz, mono, 16-bit PCM)
- TTS sample rates are tried in a fallback loop - device support varies widely
- Verify base URLs are correct and accessible from the device
- Check network security config allows cleartext HTTP to local IPs
- Ensure firewall rules allow incoming connections on service ports
- Enroll at least one reference first - the matcher has no built-in phrase
- Use the Settings "Test Wake Word" action, which prints the measured DTW cost against the current threshold, then tune the sensitivity slider
- Replace the built-in energy VAD with a model-based detector (silero-vad)
- Add barge-in support: interrupt the assistant while it is speaking
- Play TTS audio through Media3 ExoPlayer instead of
AudioTrack - Add Hilt dependency injection for better testability
- Implement encrypted storage for API keys
- Support multiple wake phrases bound to different actions
MIT License - See LICENSE file for details
- llama.cpp, Ollama and vLLM for local LLM serving
- whisper.cpp and faster-whisper for speech recognition
- Piper and Coqui TTS for text-to-speech
- Jetpack Compose for modern UI