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 audioControl or imuControl. Both features depend on the startup page container being established first.
Audio Capture
Start the microphone with await bridge.audioControl(true) and stop it with await bridge.audioControl(false).
Audio data arrives through the onEvenHubEvent listener. Access it via event.audioEvent.audioPcm, which is a Uint8Array.
Format: PCM, 16 kHz sample rate, signed 16-bit little-endian, mono channel.
// Prerequisite: createStartUpPageContainer must succeed first
await bridge.audioControl(true)