AudioGraphMeasurement interface

A measurement emitted by an analysis tap in an NorskTransform.audioGraph() graph, delivered to AudioGraphSettings.onMeasurement.

Signature:

export interface AudioGraphMeasurement

Properties

Property Type Description

channel?

number

(Optional) The channel this reading is for, or undefined for a whole-stream reading.

data?

Uint8Array

(Optional) Packed binary payload for sample-feed taps (the goniometer’s interleaved i16 LE L/R pairs); undefined for scalar measurements.

pts

Interval

The media PTS the reading was taken at, as a rational (seconds). Lets a consumer correlate a reading with a point in the stream / compute rates.

source

string

The metric family, e.g. "rms".

tap

string

The tap’s name (as given to the op that produced it).

values

Record<string, number>

The named readings, e.g. { rms_db: -23.1 }.