跳到正文
DEV Community· Aristide Bienvenu EMCTHEU·· 1 小時前AI 評分35

BioArena & Éloquence Studio:原生 Android 液態玻璃派對競技場、演講教練及即時生物特徵遊戲製作工具

BioArena & Éloquence Studio: Native Android Liquid Glass Party Arena, Oratory Coach & Live Biometric Game Maker

AI 導讀

BioArena & Éloquence Studio 是以 Presage SmartSpectra Android SDK 3.5.0 開發的原生 Android 應用程式,將即時生物特徵感測融入 6 種互動體驗。應用程式包括演講教練、無需編碼的生物特徵遊戲製作工具,以及透過 QR code 連接的零安裝區域網絡多人遊戲。

正文

This is a submission for the Presage SmartSpectra SDK Challenge.

What I Built

BioArena & Éloquence Studio is a 100% native Android (Kotlin + Jetpack Compose) social party game, live public-speaking coach, and no-code Biometric Game Maker powered by the Presage SmartSpectra Android SDK (3.5.0).

Instead of building a passive biometric dashboard, BioArena turns contactless camera sensing (heart rate, HRV, breathing, gaze, blinks, talking, and micro-expressions) into 6 real-time interactive experiences wrapped in an Android 13+ AGSL RuntimeShader Liquid Glass HUD and paired with an embedded Ktor CIO local Wi-Fi server so friends can join on their own phones via QR code with zero app install:

  1. Confessions Circle (Cercle des Confessions) — Read an anonymous confession while SmartSpectra tracks pulse spikes, reflexive breath-holds, gaze drift, and blink bursts in real time. Friends bet Truth or Bluff live from their phones; the candidate holds human ground-truth authority at the verdict, followed by a forensic timeline replay and shareable souvenir card.
  2. Western Duel (Duel Western) — 1v1 staredown where every blink burst, smile, gaze shift, or heart-rate surge drains your composure bar while friends trigger live soundboard disruptions over LAN.
  3. Poker Face — Read absurd prompts straight-faced while SmartSpectra's HAPPY expression detector counts 3 strikes and triggers live mobile dare voting.
  4. Silence Radio — Cooperative bomb defusal guided by a live 4-4-4-4 box-breathing pacer: if SmartSpectra detects talking (face.talking) or your pulse jumps > +25 BPM above baseline, the timer accelerates 3×.
  5. Éloquence Studio — Real-world public-speaking and oral-exam trainer scoring 4 live biometric pillars (Gaze, Breath, Heart composure, Facial steadiness) across Pitch Chrono, Grand Oral, Sparring, and 1v1 Debate modes.
  6. Biometric Game Maker (Live Playable No-Code Studio) — Pick a 1-tap preset (Biometric Mafia, Zero Smile, Ice Heart) or wire any Presage trigger (IF Smile / Pulse Spike / Apnea / Gaze Lost / Blink Burst / Talking) to live game actions (-25 HP, Screen Flash, Audio Alert, Timer ×3, Mobile LAN Alert) and immediately play your custom game in a full-screen hardware camera arena (CustomGameRuleEngine).

Demo & Verified Pixel 7 Pro Screenshots

Demo Video Note: Full recorded walkthrough from our Pixel 7 Pro hardware run is currently being edited and uploaded to YouTube — the YouTube link will be embedded right here shortly. All screenshots below are authentic unedited captures from a real Google Pixel 7 Pro running BioArena with live Presage SmartSpectra 3.5.0.

1. Android AGSL Liquid Glass Arcade Launcher & Zero-Install LAN Lobby

BioArena Liquid Glass Home Launcher on Pixel 7 Pro

2. Explicit Opt-In Consent Gate (Strictly OFF by Default)

BioArena Consent and 15-second Calibration Screen

3. Live Front Camera Sensing in Éloquence Studio (Real 70 BPM, 4 Pillars & Presage Validation)

Notice the active Android hardware camera dot, real-time 70 BPM, live 91 Gaze / 92 Breath / 96 Heart / 94 Face pillar HUD, and Presage ValidationStatus chip (Hold still and record.).

BioArena Live SmartSpectra Camera Sensing in Eloquence Studio

4. Silence Radio — Bomb Defusal with Live Pulse, Talking Detection & Box Breathing

BioArena Silence Radio Bomb Defusal Screen


Code Repository

GitHub logo arispacco / BioArena

Native Android Kotlin/Compose social party game & oratory coach powered by Presage SmartSpectra SDK 3.5.0 with AGSL Liquid Glass UI, embedded Ktor LAN multiplayer, and live no-code Biometric Game Maker.

BioArena & Éloquence Studio

Native Android party games & public-speaking studio powered by the Presage SmartSpectra Android SDK 3.5.0 + an embedded zero-install Ktor LAN companion server.

Built for The Presage SmartSpectra SDK Challenge (2026) — targeting:

  • Best Overall Human-Sensing Experience
  • Most Creative or Delightful Use (BioArena Party Games + No-Code Biometric Game Maker + Zero-Install QR LAN Multiplayer)
  • Best Thoughtful Real-World Use (Éloquence Studio 4-Pillar Speech Coach + Consent-First 15s Pact)

Why BioArena Stands Out

  1. Native Android (Kotlin 2.2 + Jetpack Compose) + Official SmartSpectra Android SDK 3.5.0 — real-time optical photoplethysmography (rPPG) and facial sensing directly on an Android smartphone or tablet.
  2. Zero-Install LAN Multiplayer via QR Code — the Android host embeds a Ktor CIO HTTP + WebSocket server on port 4821, renders a live ZXing QR code (http://<LAN-IP>:4821/play/4821), and serves a responsive web controller so everyone in the room…

Direct link: https://github.com/arispacco/BioArena

Setup & Judge Verification Instructions

  1. Clone the repository:
   git clone https://github.com/arispacco/BioArena.git
   cd BioArena/src
  1. Add your Presage SmartSpectra API key in src/local.properties (gitignored):
   sdk.dir=<path-to-your-Android-SDK>
   PRESAGE_API_KEY=your_presage_api_key_here
  1. Run the full 153-test JVM verification suite:
   ./gradlew :app:testDebugUnitTest
  1. Build & install on an Android device (API 28+, camera recommended):
   ./gradlew :app:assembleDebug
   adb install -r app/build/outputs/apk/debug/app-debug.apk
  1. Inspect raw live SmartSpectra Protobuf telemetry (Judge Proof Panel):
    • Long-press the BioArena logo in the top navigation bar (or toggle Proof Panel in Settings) to display raw live packet counts, pulse + confidence + stability, real HRV RMSSD, breathing rate, dominant expression, talking flag, validation status, and telemetry=false.
  2. Test Zero-Install Multiplayer:
    • Tap the QR pill on the Home screen and scan it with any smartphone on the same Wi-Fi/hotspot to open the embedded Ktor WebSocket companion controller (http://<device-ip>:4821/play/4821).
  3. Testing without a Presage key or on an emulator:
    • BioArena gracefully falls back to an explicitly labeled SIM simulator mode (never masquerading as live sensor data) so judges can inspect all 6 game modes and the Game Maker rule engine even offline.

How I Used the Presage SmartSpectra SDK

BioArena integrates com.presagetech:smartspectra:3.5.0 natively in SmartSpectraProvider.kt and consumes real Protobuf streams from SmartSpectraSdk.metricsFlow:

SmartSpectra Protobuf Signal In-App Real-Time Usage
cardio.pulseRate (value, confidence, stable) Live BPM HUD, delta vs. 15s personal baseline, Pressure Index, Silence Radio 3× timer acceleration, Game Maker HEART_RATE_SPIKE trigger
cardio.hrv (rmssd, sdnn) Resting HRV readout during 15s calibration & Proof Panel
cardio.arterialPressureTrace Live PPG waveform trace & forensic round replay
breathing.rate + upperTrace / lowerTrace Local ApneaAnalyzer breath-hold detection (suppressed automatically while speaking) & Éloquence Breath pillar
face.blinking Rolling BlinkAnalyzer blink-rate burst detection (Western Duel penalties & Game Maker BLINK_BURST)
face.talking Real-time speech detection in Silence Radio & Game Maker TALKING_DETECTED
face.expression (HAPPY, etc.) SmileAnalyzer 3-strike detection in Poker Face & Game Maker SMILE_DETECTED
face.landmarks (474-pt mesh) GazeStabilityAnalyzer eye-contact stability & off-camera tracking
validationStatus Live framing & lighting feedback pill overlaid cleanly on the full-screen camera HUD

Engineering Highlights

  • Native 60 FPS Hardware Camera Pipeline: Eliminated CameraX PreviewView recomposition restart loops by binding surfaceProvider strictly once in AndroidView.factory, switching to hardware PreviewView.ImplementationMode.PERFORMANCE (SurfaceView), and throttling ring-buffer snapshot copies.
  • Custom Android 13+ AGSL Liquid Glass Shader: Built a zero-allocation RuntimeShader (LiquidGlass.kt) rendering optical rounded-box bevel refraction, directional specular highlights, and subtle chromatic edge sheen floating cleanly over live full-screen video.
  • Playable No-Code Rule Engine: CustomGameRuleEngine evaluates all 6 Presage triggers and executes all 5 actions deterministically with per-rule cooldowns, verified by 153 JUnit tests across 29 test suites.

Prize Categories

I am entering BioArena & Éloquence Studio for Best Overall Human-Sensing Experience as well as both prize categories:

  • Most Creative or Delightful Use: BioArena transforms a single Android smartphone's front camera into a 6-mode living-room social party console with zero-install LAN mobile controllers—and goes one step further with a live playable no-code Biometric Game Maker where anyone can invent and immediately play custom games driven by pulse, breathing, smiles, blinks, gaze, and speech.
  • Best Thoughtful Real-World Use: Éloquence Studio applies the exact same contactless sensing stack to a real everyday challenge—public speaking, job interviews, and oral exams—scoring Gaze, Breath, Heart composure, and Facial steadiness in real time under strict consent-first, RAM-only privacy guarantees.

Camera Consent, Privacy & Data Handling

BioArena was engineered around strict privacy-by-design invariants (automatically enforced by unit tests in LegalAndPrivacyComplianceTest.kt and SmartSpectraConfigTest.kt):

  • Explicit Opt-In Consent: The camera consent switch on the Pact screen starts strictly OFF (false) on every session and resets to false after each round. Camera capture never starts without explicit user activation.
  • 100% Ephemeral RAM Processing — Zero Persistence: Video frames and derived biometric metrics exist strictly in a bounded volatile in-memory ring buffer (BiometricRingBuffer) and are unconditionally purged when a round ends (finishRoundAndPurge()). No video, photos, or biometric histories are ever written to disk, SharedPreferences, or external databases.
  • SDK Telemetry Disabled: SmartSpectraConfigFactory explicitly sets enableTelemetry = false and avoids unsupported metrics.
  • Presage SDK Network Disclosure: The Presage SmartSpectra Android SDK requires an internet connection to validate the developer API key and process physiological signal summaries per Presage's SDK architecture; raw video is never stored or uploaded by BioArena itself.
  • No External AI Services or Analytics: BioArena does not integrate third-party LLM APIs, cloud analytics, or ad trackers; all 6 behavioral analyzers and the Game Maker rule engine run 100% locally on-device in Kotlin.
  • Non-Medical & Non-Polygraph Disclaimer: Every screen permanently displays a non-dismissible disclaimer ("Outil ludique et d'auto-évaluation · ni dispositif médical ni polygraphe"). BioArena makes zero medical, diagnostic, treatment, or lie-detection claims—sensors reflect physiological arousal, while players always hold ground-truth authority.

來源:DEV Community · dev.to