🍋
Menu
Audio

Psychoacoustics

The study of how humans perceive sound, informing audio compression, spatial audio, and loudness standards.

Chi tiết kỹ thuật

Audio psychoacoustics algorithms exploit psychoacoustic masking — louder sounds make nearby quieter frequencies inaudible. MP3 (MPEG-1 Layer 3) uses the Modified Discrete Cosine Transform (MDCT) and was revolutionary in 1993. AAC improves on MP3 with better spectral resolution and support for more channels. Opus (RFC 6716) combines speech (SILK) and audio (CELT) codecs and is optimal for VoIP, streaming, and interactive applications with latency requirements under 20ms.

Ví dụ

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

Công cụ liên quan

Thuật ngữ liên quan