Interface: WebAudioProcessorConfig
Defined in: packages/agentos/src/core/audio/AudioProcessor.ts:19
Configuration for the Web Audio API based AudioProcessor.
Note: frameSize here refers to the ScriptProcessorNode's buffer size.
The actual processing frame for VAD/Calibrator might be this size or smaller if sub-chunked.
Properties
bufferSize?
optionalbufferSize:number
Defined in: packages/agentos/src/core/audio/AudioProcessor.ts:27
Buffer size for the ScriptProcessorNode in samples. This determines the frequency of onaudioprocess.
Common values: 256, 512, 1024, 2048, 4096.
This also dictates the size of audioFrame given to VAD/Calibrator unless further chunking is done.
enableAGC?
optionalenableAGC:boolean
Defined in: packages/agentos/src/core/audio/AudioProcessor.ts:29
Enable Automatic Gain Control (AGC) via a GainNode (conceptual placeholder for now).
sampleRate?
optionalsampleRate:number
Defined in: packages/agentos/src/core/audio/AudioProcessor.ts:21
Sample rate for processing. AudioContext will try to match this.