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

推荐订阅源

The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
WordPress大学
WordPress大学
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
P
Proofpoint News Feed
D
DataBreaches.Net

Blog on KittenLabs

Marantz UD5007 power supply replacement 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 Manage RDP certificates on Windows using SSH Reviving a dead Gigabyte MJ11-EC1 mainboard Dead TROTEC PAC2000S air conditioner PlutoSDR standalone ADS-B FR24 feeder Micro8088 build log OpenWRT als WireGuard-Appliance GPS locked Raspberry Pi Es'hail-2 transceiver setup ThinkPad PowerSeries 820 PlutoSDR clock input WiFi over satellite TV coax
GPD Pocket 4 Speaker DSP
By Manawyrm (@manawyrm@chaos.social) | Sunday, April 06, 2025 · 2025-04-06 · via Blog on 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.