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