🍋
Menu
Audio

FLAC

Free Lossless Audio Codec

An open-source audio codec that compresses audio without any loss in quality, reducing file sizes by 50-70%.

รายละเอียดทางเทคนิค

Audio flac 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.

ตัวอย่าง

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

รูปแบบที่เกี่ยวข้อง

เครื่องมือที่เกี่ยวข้อง

คำศัพท์ที่เกี่ยวข้อง