惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
IT之家
IT之家
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
C
Check Point Blog
T
Tailwind CSS Blog
博客园 - Franky
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
博客园 - 叶小钗
J
Java Code Geeks
腾讯CDC
罗磊的独立博客
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
B
Blog
V
Visual Studio Blog
F
Fortinet All Blogs

KittenLabs

Casiomania Marantz UD5007 power supply replacement AnotterKiosk IP-over-Toslink FX3 LVDS Frame grabber Extreme Pi Boot Optimization WiFi auth with OsmoHLR/SIM cards Windows 11 tweaks & usability improvements Using custom domains as a Fediverse redirect 25GBit/s on macOS & iOS Router overclocking Real gaming router Manage RDP certificates on Windows using SSH 20 port USB-C charger Reviving a dead Gigabyte MJ11-EC1 mainboard NVMe BIOS Option ROM 2.5GbE PCIe NIC mod board Blinkekatze ThinkPad T41/T43 USB-C HomeSwitch 4 DC UPS (Lithium) OLED nametag Thermal camera macro Blåmba LPT printer emulator PC104 ISA adapter Palm IIIc USB-C OtterCast Gigaset DECT debug adapter M.2 NVMe -> miniPCIe
GPD Pocket 4 Speaker DSP
By Manawyrm (@manawyrm@chaos.social) | Sunday, April 06, 2025 · 2025-04-06 · via KittenLabs

Configuring PipeWire to make laptop speakers sound better (Bankstown, Convolution/FIR, etc.)

Result

Motivation

Modern speakers require a lot of DSP magic to sound as good as they do.
Speakers traditionally needed to be built very carefully to achieve a very flat frequency response and as few artifacts as possible.

These days, many mobile devices like phones, laptops, etc. do a lot of digital signal processing in software in order to make tiny speakers output a lot of sound.
Many different tricks are used, such as psycho-acoustic bass enhancement, limiters (allowing for higher power peaks) and volume-dependent equalization (frequency response of human hearing is very volume-dependent).

The Asahi Linux project (Linux on Apple Silicon MacBooks) has done a lot of work to make MacBooks sound as good as possible on Linux:
AsahiLinux/asahi-audio: Userspace audio for Asahi Linux

How?

Using Room EQ Wizard the frequency/impulse response of the built-in speakers was measured.
Even with very suboptimal measurement equipment (cheap microphone, questionable audio interface), we can clearly see the sloped bass response (expected with speakers of this size) and then also a very noticeable peak/resonance at ~4kHz.
This peak is very audible and leads to a harsh, distorted sound when listening to music.

Frequency response curve, showing a very low bass response and a resonance at ~4kHz

REW can do arithmetic operations on the curves, so after generating a filter curve for a 300Hz slope, both channels were divided (A/B) against that curve and then inverted (1/A) and exported as a .wav impulse response.
That impulse response .wav file can then be used in a convolution DSP filter.

The DSP configuration/pipeline of a 14" MacBook Pro was then used as a template, the multi-speaker setup (modern MacBooks have 6 speakers!) was stripped-down to just a single stereo pair and the parameters were changed a bit.
The impulse response .wav was (of course) replaced with our newly generated REW output.