device-features

Installation
SKILL.md

You are implementing G2 hardware feature integration for an Even Hub app. Use the reference below to implement exactly what $ARGUMENTS describes.

Prerequisite

createStartUpPageContainer must succeed before calling imuControl or audioControl(true, AudioInputSource.Glasses) — both depend on the glasses-side startup page being established first. Phone-mic audio, location APIs, pickImageFromAlbum, and captureImageFromCamera do NOT require the startup page — they route through the phone, not the glasses.


Audio Capture

Start the microphone with await bridge.audioControl(true, source) and stop it with await bridge.audioControl(false). The source argument picks which mic to capture from:

  • AudioInputSource.Glasses — G2 four-mic array (default; requires createStartUpPageContainer first)
  • AudioInputSource.Phone — phone microphone (no startup-page requirement)

Omit the second argument and the SDK defaults to AudioInputSource.Glasses (backward-compat with pre-0.0.11 code).

Audio data arrives through the onEvenHubEvent listener. Access it via event.audioEvent, which carries source (the mic the buffer came from) and audioPcm (a Uint8Array).

Installs
127
GitHub Stars
74
First Seen
Apr 26, 2026
device-features — even-realities/everything-evenhub