@camera.ui/sdk / sensor / AudioFrameData
Interface: AudioFrameData
Defined in: sensor/audio.ts:181
Audio frame data delivered to audio detector sensors by the backend pipeline.
Properties
cameraId?
optionalcameraId?:string
Defined in: sensor/audio.ts:183
Camera the frame originated from.
channels
channels:
number
Defined in: sensor/audio.ts:189
Channel count of the buffer (typically 1 = mono).
data
data:
ArrayBuffer|Buffer<ArrayBufferLike>
Defined in: sensor/audio.ts:185
Raw audio sample buffer.
decibels?
optionaldecibels?:number
Defined in: sensor/audio.ts:193
Pre-computed decibel level for this frame, if available.
format
format:
"pcm16"|"float32"
Defined in: sensor/audio.ts:191
Sample format: 'pcm16' = 16-bit signed integer PCM, 'float32' = 32-bit float.
sampleRate
sampleRate:
number
Defined in: sensor/audio.ts:187
Sample rate of the buffer in Hz.
timestamp?
optionaltimestamp?:number
Defined in: sensor/audio.ts:195
Capture timestamp in milliseconds since epoch.