Skip to main content

Interface: NoiseProfile

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:18

Represents the acoustic profile of the environment. This profile is used by other audio components (like VAD) to adjust their sensitivity.

Properties

baselineRMS

baselineRMS: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:20

Root Mean Square of the baseline ambient noise, calculated using a percentile.


confidenceScore

confidenceScore: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:33

Confidence in the profile (0-1), based on data quantity and stability.


environmentType

environmentType: "quiet" | "normal" | "noisy" | "very_noisy"

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:31

Classified type of the acoustic environment.


framesAnalyzedCount

framesAnalyzedCount: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:41

Number of audio frames/buffers analyzed to generate or update this profile.


frequencyProfile?

optional frequencyProfile: Float32Array

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:29

Optional frequency spectrum analysis (e.g., 32 bands). Populated if enableFrequencyAnalysis is true.


noiseStdDev

noiseStdDev: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:24

Standard deviation of RMS values, indicating noise floor stability.


peakRMS

peakRMS: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:22

Peak Root Mean Square detected during an observation window.


suggestedSilenceThreshold

suggestedSilenceThreshold: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:39

Suggested silence detection threshold (RMS value) based on this profile.


suggestedSpeechThreshold

suggestedSpeechThreshold: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:37

Suggested speech detection threshold (RMS value) based on this profile.


timestamp

timestamp: number

Defined in: packages/agentos/src/core/audio/EnvironmentalCalibrator.ts:35

Timestamp (Unix epoch ms) of when this profile was last calculated.