A room-acoustics lab in mixed reality, with an AI coach that treats your room and shows you why.
AcoustiBench is a Kotlin app for PICO OS 6 built on the PICO Spatial SDK 6.2.8. You pick a room, see where sound reflects off the walls as glowing rays in 3D, ask an AI coach to fix the problems, preview its proposal as ghost panels, apply it, and flip Before / After to see the change in RT60, clarity and flutter-echo risk. All of it runs on the PICO emulator today.
Submission for the PICO Space Program hackathon: Android track, plus the Best Use of Frontier Models and Best Use of Agentic Workflow bonus categories.
Demo video (2:43, real emulator footage): https://youtu.be/EKrlcItkz6Y · Installable APK: Release v0.1.0 · Judge walkthrough: docs/TESTING.md
| AI Coach stages a plan (ghost preview) | After applying the plan: Before/After KPIs |
|---|---|
![]() |
![]() |
| Volumetric 3D Stage (rays, source spheres, floor heatmap) | Full Space (Control Deck + 3D room over passthrough) |
|---|---|
![]() |
![]() |
All four images are real screenshots captured on the PICO emulator by the automated smoke test (scripts/emu-check.sh), downscaled only. In the first one the coach proposes 4 panels for Bedroom Desk Studio and the preview line reads "1 kHz Eyring RT60: 1.94 s -> 0.70 s".
Treating a bedroom studio, a podcast booth or a bare concrete loft usually means guessing where to stick foam on a flat floor plan. You cannot see early reflections, and you cannot hear what a panel would change before you buy it. Mixed reality is the right medium: the reflections are 3D, the room is the interface, and the result is something you can walk around.
Everything in this table was exercised on the PICO emulator (PICO OS 6) by the smoke test in scripts/emu-check.sh, or by the unit tests, as the Verified how column says. See Limitations for what is not verified.
| Feature | What it does | Verified how |
|---|---|---|
| Planar Control Deck | Preset chips, Undo/Redo, Set Baseline, View: After / Before toggle, KPI strip, 2D floor plan with heat-map and rays, 3-step quick-start card. Tabs: Room & Panels, AI Coach, Audio & Presets. | Emulator smoke test |
| 4 room presets | Bedroom Desk Studio, Podcast Booth, Concrete Loft, Living Room Cinema. | Unit tests + emulator |
| Acoustic estimates | Sabine, Norris-Eyring and Fitzroy RT60 at 250 Hz / 1 kHz / 4 kHz, diffuse-field C50/C80, Schroeder frequency, critical distance, axial modes, comb-filter risk, parallel-wall flutter-echo risk. | JUnit 5 tests with hand-checked formulas |
| Image-source reflections | Direct path plus 1st and 2nd-order specular reflections, wall-panel interception, Maekawa edge diffraction for free-standing baffles, floor energy heat-map. | Unit tests + visible in the 3D stage |
| Volumetric 3D Stage | A volumetric window with the room shell, source spheres, listener marker, baffles, rays (untreated first reflections rose/red, treated ones green) and floor heat-map, built from ECS entities. Button: Open 3D Stage. | Emulator smoke test (a SpatialView node is present, screenshot reviewed) |
| Spatial audio controls | Play Audio / Pause Audio in the 3D Stage, three loops (Dry Voice, Acoustic Guitar, Ambient Synth), per-source solo with an occlusion attenuation readout. Loops are synthesised procedurally at runtime (48 kHz WAV), so no audio assets ship. Output goes through PICO ObjectAudioComponent with an Android AudioTrack stereo fallback. |
Emulator: control toggles, audio pipeline log lines, no crash. Audible result not verified (see Limitations) |
| Full Space | Full Space opens a mixed-reality Stage (StageStyle.Mixed) with the Control Deck as a separate window; Exit Full Space returns to shared space. |
Emulator smoke test (exactly one Exit control, round trip works) |
| AI Coach (offline) | Offline Demo Coach is a deterministic rule-based coach. It needs no network and no key. It diagnoses the room, proposes up to 4 panels, and its plan goes through the same validator as any LLM plan. Ask Acoustic Coach shows a staged ghost preview, Apply Plan commits it. | Emulator smoke test + unit tests |
| AI Coach (live frontier model) | Live Frontier Coach calls Gemini (generateContent, default gemini-2.5-flash) or any OpenAI-compatible endpoint, with strict JSON output, a deterministic spatial validator and an automatic repair retry. Falls back to the offline coach on failure. The API key is entered in the app (memory only) or via local.properties. |
Unit tests with a mock transport. Not exercised end to end in the emulator smoke test |
| "How the Coach Decided" | After a plan is applied the deck shows the pipeline: serialised prompt, model or offline rules, validator verdict, repair retries. | Emulator screenshot |
| Undo / Redo, Before/After, presets | Bounded undo/redo history, baseline snapshot with per-metric deltas, versioned JSON preset export/import (schemaVersion = 1). |
Unit tests |
| Mesh tracking hook | Subscribes to MeshTrackingManager mesh anchors in Full Space. |
Compiled and wired; no anchors observed in the emulator run |
flowchart LR
subgraph core["Pure Kotlin/JVM modules (unit-testable without Android)"]
A[":core-acoustics<br/>geometry, materials, RT60,<br/>image-source solver, heatmap, presets"]
AI[":core-ai<br/>coach contract, prompt serializer,<br/>JSON parser, plan validator,<br/>Live + Offline coach"]
S[":core-state<br/>MVI store, reducer, undo/redo,<br/>Before/After, PresetCodec"]
end
subgraph app[":app (Android + PICO Spatial SDK 6.2.8)"]
C["AcoustiControlController"]
UI["Compose Control Deck<br/>+ AcoustiSpatialStageView"]
subgraph br["Spatial bridges (interfaces + Pico* implementations)"]
BC["SpatialContainerBridge"]
BS["SpatialSceneBridge"]
BA["SpatialAudioBridge"]
BI["SpatialInputBridge"]
BE["SpatialEnvironmentBridge"]
end
end
SDK[("PICO Spatial SDK<br/>containers, ECS, audio,<br/>gestures, mesh tracking")]
LLM[("Gemini / OpenAI-compatible API<br/>optional, needs key")]
A --> AI
A --> S
AI --> S
S --> C
AI --> C
C --> UI
C --> BC
C --> BS
C --> BA
C --> BI
C --> BE
BC --> SDK
BS --> SDK
BA --> SDK
BI --> SDK
BE --> SDK
AI -.->|"LiveFrontierCoachAdapter (HttpURLConnection)"| LLM
The design rule: physics, AI validation and state live in pure Kotlin, so an AI coding agent (or a judge) can run ./gradlew test and know in about a minute whether the maths is right. Everything that touches the PICO SDK sits behind five small interfaces in com.acoustibench.app.spatial; each has a Pico* implementation for the device and a Stub* for JVM tests.
| Module | Responsibility |
|---|---|
:core-acoustics |
Geometry, 11-material catalogue, shoebox room model, RT60 models, diffuse clarity, image-source reflections, occlusion, flutter-echo and room-mode diagnostics, floor heat-map, 4 presets |
:core-ai |
AcousticCoachAdapter contract, CoachPromptSerializer, CoachPlanJsonParser, CoachPlanValidator, OfflineDemoCoach, LiveFrontierCoachAdapter, ResilientAcousticCoachAdapter, CoachDecisionTranscript |
:core-state |
AcoustiStore, AcoustiReducer (apply, reject, undo, redo), AcoustiComparison (Before/After), PresetCodec |
:app |
Compose Control Deck, AcoustiSpatialStageView, AcoustiControlController, spatial bridges, procedural audio synthesiser, Main.kt (window containers) |
- The room geometry, sources, listener, existing panels and KPIs are serialised into a compact prompt.
- The model must answer with a strict JSON plan made of typed actions:
AddBaffle,MoveBaffle,RemoveBaffle,UpdateBaffleMaterial,SetWallMaterial,SetSourcePosition,ExplainIssue. CoachPlanValidatorrejects anything physically wrong: out of bounds, not flush with its wall, overlapping panels, collisions with sources or the listener, wrong material category, over the panel budget.- On rejection the validation errors go back to the model for a repair attempt. If that fails, the offline coach answers instead.
- Only a validated plan becomes a ghost preview. Apply Plan is a separate, explicit step.
Read from the code in app/src/main/kotlin/com/acoustibench/app/ (SDK 6.2.8):
| Area | APIs |
|---|---|
| App entry and windows | SpatialLaunchActivity, launch(::mainApp), SpatialAppScope, DefaultWindowContainer, WindowContainer(Form.Planar / Form.Volumetric), Stage, WindowContainerSize, VolumeAlignment, WorldScale, ContainerResizeType, ContainerResizeRestriction, VolumeBasePanelType |
| Navigation and space state | LocalSpatialNavigator / SpatialNavigator, StageStyle.Mixed, UpperLimbRenderMode, getSelfSpaceState(), SpaceState.SHARED_SPACE / FULL_SPACE |
| 3D content | SpatialView, SpatialViewContent, Entity, ModelEntity, MeshResource.createBox / createSphere / createCylinder / createCone, PhysicallyBasedMaterial, UnlitMaterial (opaque and transparent), Color4, Vector3, Quat, TransformComponent |
| Interaction | detectSpatialTapGesture, detectSpatialDragGesture, detectSpatialScaleGesture, TargetEntity.any(), InteractableComponent, HoverEffectComponent, CollisionComponent, ShapeResource, PhysicsMaterialResource, LocalPhysicalLengthConverter |
| Audio | AudioResource.load, AudioResourceConfig, ObjectAudioComponent, Entity.playAudio, AudioPlayerController, DistanceAttenuationMode.INVERSE_SQUARED, Directivity, AmbisonicsType |
| Environment | MeshTrackingManager (start / subscribe / stop), MeshAnchor, AnchorUpdateSubscriber, MeshResource.loadFromMeshAnchor |
| UI kit | PicoTheme, Text, TextField, TextArea from com.pico.spatial.ui.design |
Dependencies come from the com.pico.spatial:bom:6.2.8 platform (core, ui:platform, ui:foundation, ui:design, sense, tracking).
Requirements: JDK 17, the Android SDK with platform 35, and the bundled Gradle wrapper (Gradle 8.13, AGP 8.13.2, Kotlin 2.1.20; the wrapper downloads Gradle on first use). The Volcengine Maven repository that hosts the PICO Spatial artifacts is already configured in settings.gradle.kts; nothing to add.
# 1. Tell Gradle where the Android SDK is (this file is git-ignored)
echo "sdk.dir=/path/to/Android/Sdk" > local.properties # Windows: sdk.dir=C\:\\Android\\Sdk
# 2. Build the debug APK (the app module is included with -PincludeApp)
./gradlew :app:assembleDebug -PincludeApp # Windows: .\gradlew.bat ...
# -> app/build/outputs/apk/debug/app-debug.apk
# 3. Run every unit test (core modules + app module)
./gradlew test :app:testDebugUnitTest -PincludeApp
# Core-only build and tests, no Android SDK needed:
./gradlew test:app is only part of the build when -PincludeApp is passed or local.properties has a valid sdk.dir; the three core modules always build, so ./gradlew test works on any machine with JDK 17. The app targets minSdk 35 and arm64-v8a.
Install the emulator with the PICO CLI, then follow the numbered walkthrough in docs/TESTING.md. The short version:
pico-cli emulator start
pico-cli app install app/build/outputs/apk/debug/app-debug.apk --replace
pico-cli app launch com.acoustibench.appThe app works fully offline. To try the live coach, either paste a key into AI Coach > Live API Setup (kept in memory only, never saved or logged), or put it in the git-ignored local.properties:
ACOUSTI_COACH_PROVIDER=gemini
ACOUSTI_COACH_MODEL=gemini-2.5-flash
ACOUSTI_COACH_API_KEY=<your key>./gradlew test :app:testDebugUnitTest -PincludeApp runs the JUnit 5 suites of all four modules: hand-checked Sabine/Eyring/Fitzroy/Maekawa values, reflection geometry, validator rejection cases, the live adapter's parse and repair loop against a mock transport, reducer undo/redo, preset round-trip, and the scene maths that colours rays and places ghost panels. scripts/emu-check.sh adds an end-to-end emulator smoke test. Details in docs/TESTING.md.
Please read these before judging.
- Acoustic numbers are engineering estimates, not measurements. RT60 comes from Sabine, Norris-Eyring and Fitzroy formulas on a shoebox room; reflections use an image-source model up to 2nd order with a diffuse-field tail. There is no wave solver, no measured material data, and non-rectangular rooms are not supported. The app says so on screen.
- Emulator only. Everything was run on the PICO emulator. No physical PICO headset was available.
- 3D gestures not verified. Spatial tap, drag and pinch-scale handlers on 3D entities (
detectSpatial*Gesture) are implemented and compile, and the interaction maths is unit-tested, but they were not exercised end to end. The smoke test drives the 2D controls through the accessibility layer. - Head-tracked HRTF audio not verified. The audio path starts and the Play/Pause control works, but nobody could listen to the emulator output. Per-band occlusion filtering is not available in the SDK, so occlusion is applied as broadband gain. Whether PICO object audio or the
AudioTrackstereo fallback is used depends on the runtime. - Live frontier coach not tested in the emulator run. It is covered by unit tests with a mock HTTP transport; the smoke test uses the offline coach.
- Spatial mesh / room capture.
MeshTrackingManageris subscribed, but the room model is never fitted to a scanned mesh; rooms come from presets. Passthrough comes fromStageStyle.Mixed, and the emulator shows a synthetic room. - Hand tracking (
HandTrackingProvider) is not wired; its manifest permission is commented out. - Debug APK only. The documented APK is the debug build; no release signing is configured.
core-acoustics/ core-ai/ core-state/ pure Kotlin modules + tests
app/ Android + PICO Spatial SDK app + tests
scripts/ verify-build.sh, emu-check.sh, agent-loop/
docs/
TESTING.md judge walkthrough
agentic-workflow.md how AI coding agents built this
agent-prompts/ the briefs given to the coding agents (prompt log)
devpost-draft.md video-script.md submission text and video plan
media/ emulator screenshots used above
LICENSE MIT
The code was written by AI coding agents from written briefs, driven through the Antigravity CLI, with an automated build, unit-test and PICO CLI emulator loop feeding failures back. The honest account, with the prompt log, is in docs/agentic-workflow.md.
MIT, Copyright (c) 2026 AcoustiBench contributors.



