A lightweight, production-ready sensory module for Android applications. This project provides a bridge between Google ML Kit Speech Recognition (Kotlin) and central application logic (Java).
- 100% Offline: Uses on-device ML models.
- Modular Design: Isolated "Sensory Department" architecture.
- Error Handling: 3-attempt recursive retry for silence/timeouts.
- Java Bridge: Clean interface for Java-based projects like JARVIS.
The project uses a Link class to act as a "Middle Manager." You simply pass a listener and wait for the text.
Link sensoryDept = new Link();
sensoryDept.startAlphaEars(text -> { System.out.println("Result: " + text); if (text.startsWith("ERROR")) { // Handle failure } else { // Process command } });
val link = Link() link.startAlphaEars(object : Link.TaskListener { override fun onHeard(text: String) { println("User said: $text") } })
- Lead Developer: Santanu Sarkar
- Project: Part of the JARVIS Ecosystem (Sensory Department).
- AI Collaborator: Gemini (Google) - Assisted with bridge logic and error-handling optimization.
-
Google ML Kit Team: For the Alpha Speech Recognition SDK.
-
Kotlin Coroutines Team: For background processing.
This project is open-source under the MIT License. If you use this module in your own application, please include the following in your "About" or "Credits" section:
Voice Recognition powered by Alpha by Santanu Sarkar
