🍋
Menu
Audio

Dithering (Audio)

Audio Dithering

Adding low-level random noise when reducing bit depth to mask quantization distortion and preserve detail.

Detalle técnico

In the audio processing pipeline, dithering (audio) affects how sound is captured, stored, and reproduced. Digital audio fundamentals — sample rate, bit depth, and channel count — determine the theoretical quality ceiling. The Web Audio API provides browser-native DSP (Digital Signal Processing) capabilities including gain control, filtering, spatialization, and real-time analysis. Understanding dithering (audio) is essential for optimizing audio delivery, where format choice can reduce file sizes by 70-90% with minimal perceptible quality loss.

Ejemplo

```javascript
// Dithering (Audio): 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();
```

Herramientas relacionadas

Términos relacionados