Noise Reduction
Noise Reduction (Audio Cleanup)
The process of removing or reducing unwanted background sounds (hiss, hum, buzz, ambient noise) from an audio recording while preserving the desired signal such as speech or music.
ๆ่ก็่ฉณ็ดฐ
Spectral subtraction captures a noise profile from a silent section, then subtracts that spectral pattern from the entire recording. More advanced methods include Wiener filtering (estimating the clean signal from noisy observations), spectral gating (suppressing frequency bins below a threshold), and AI-based methods (RNNoise, DTLN) that use neural networks trained on thousands of hours of noisy and clean audio pairs. The Web Audio API supports real-time noise gating via DynamicsCompressorNode thresholds. Key parameters include noise floor threshold, reduction amount, attack/release times, and frequency sensitivity.
ไพ
```javascript
// Noise Reduction: Web Audio API example
const audioCtx = new AudioContext();
const response = await fetch('audio.mp3');
const buffer = await audioCtx.decodeAudioData(await response.arrayBuffer());
const source = audioCtx.createBufferSource();
source.buffer = buffer;
source.connect(audioCtx.destination);
source.start();
```