Android 15 / Java
Service Robot Voice & AI Hardware POC
Hardware Exploration | End-to-End Voice, Expression & AI Feasibility
Before committing full engineering resources, I validated live voice chat, facial expressions, and LED feedback on a physical service robot, built a diagnostic helper to speed up testing, and documented 11 undocumented vendor limitations so the team could assess real deployment risks.
Project Background
01
Development Process
Design Process
- Design Process|Technology
- Dual-Mode Interaction:Designed a default Face mode (head-tap / voice) alongside a Kiosk Chat mode with history and suggestion chips, accounting for unreported subtitle overlays and missing Back controls.
Engineering Process
- Native Hardware Integration:Integrated NuwaSDK AAR and JustAI SSE APIs using Android Studio / Java / Gradle.
- Probe-Driven Discovery:Built `FaceProbeActivity` first to isolate hardware constraints before full integration and team handover documentation.
02
Technical Challenges & Solutions
Undocumented SDK Behavior & System-Wide Unity Overlay
- Situation
- Integrating NuwaSDK AAR on Android 15 required resizing the embedded robot face and testing Chinese speech output.
- Challenge
- Kebbi 3 lacks standard Android TTS/STT and official docs claimed English-only for the global SKU; moreover, Nuwa's Unity face is a system-wide overlay shared with the launcher—leaving it shrunken on exit persisted onto the home screen, and immediate `playFaceAnimationDefault()` calls reset `mouthOn()`.
- Solution
- Isolated behaviors via `FaceProbeActivity`, empirically proving Chinese TTS works on SKU 100WW; enforced full-screen 1024:600 restoration plus `hideUnity()` in `onPause()`, and introduced a ~400ms delay before triggering mouth lip-sync.
- Result
- Eliminated launcher face corruption and restored reliable lip-sync across mode switches.
TTS Callback Race Conditions & Unreported Subtitle Insets
- Situation
- During multi-turn replies, speaking state occasionally exited prematurely while system subtitles covered bottom UI controls.
- Challenge
- `onTTSComplete` fired for previously queued utterances; additionally, Nuwa's ~52dp floating TTS subtitle bar is unreported in Android window insets and the device has no hardware Back button.
- Solution
- Gated completion behind observing `onSpeakState(START/SPEAKING)` for the active turn, reserved explicit bottom safe margins, and added dedicated on-screen navigation/keyboard controls.
- Result
- Verified the complete E2E pipeline on physical hardware while transparently documenting that live human-voice ASR accuracy in noisy rooms remained pending field tests.
03
Design & Technical Highlights
Synchronized Voice, Expressions, Lip-Sync & LEDs
Connected live AI replies with facial animations, mood LEDs, and gestures across both a full-face mode and a chat-display mode—cleaning formatting marks and URLs out of replies so the robot speaks naturally instead of reading raw symbols aloud.
Custom Hardware Diagnostic Tool for Rapid Iteration
Testing a robot by repeatedly speaking in a noisy office is slow and inconsistent. I built a dedicated diagnostic utility to inject test prompts and fine-tune face positioning and animations live, dramatically speeding up validation on unfamiliar hardware.
11 Undocumented Vendor Limitations Handover
Uncovered and documented 11 hardware and SDK behaviors missing from or contradicting official docs (such as blocked floating subtitle areas, missing Back navigation, and system LED takeovers) in a structured risk guide for the team.
04
Learning & Reflection
- Build a Probe First for Unfamiliar Hardware SDKs:A dedicated adb-driven probe isolated undocumented vendor quirks far faster than debugging inside a full app.
- A Good POC Surfaces Real Risks Honestly:Beyond proving the E2E chain worked on physical hardware, documenting all 11 SDK limits and untested field-ASR risks gave the engineering team clear decision inputs.