audio-analysis
audio-analysis — device-scoped facade over the system audio-analyzer.
audio-analysis — device-scoped facade over the system audio-analyzer.
Pairs with audio-analyzer (system, singleton) the way camera-streams pairs with stream-broker: the system cap owns the compute path (processChunk, engine lifecycle) while audio-analysis exposes the per-device surface — settings resolution, device-settings contribution, audio-level events — and is the binding row every camera sees in the device-manager bindings UI.
The cap definition itself declares kind: 'wrapper' and defaultActive: true, so every camera picks up audio analysis automatically without any runtime flag in the addon's registration. Operators can disable per-device via device-manager.setWrapperActive when they don't want a given camera to be analysed (e.g. muted / motion-only cams).
At a glance
| Capability | audio-analysis |
| Provided by | An addon wraps the device and provides it. It is bound to a device through the device bindings and can be bound automatically to compatible devices. |
| Active providers per device | one |
| Device types | camera |
| Source | packages/types/src/capabilities/audio-analysis.cap.ts |
Methods
Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
resolveDeviceSettings | query | yes | default |
resolveDeviceSettings
query
Resolve per-device audio analysis settings (minConfidence, allowedClasses) from the addon settings store for a given camera. Orchestrator callers use this before handing chunks to audio-analyzer.processChunk.
Input
No fields besides deviceId.
Output
binary or opaque value
Events
onAudioLevel
| Field | Type | Required | Description |
|---|---|---|---|
deviceId | number | yes | |
rms | number | yes | |
dbfs | number | yes |