Desktop Applications
An audio editor for a user with low vision: Tauri, Svelte and FFmpeg
Professional audio tools are too complex; free ones are small-printed and cluttered. I wrote an audio editor that cuts and orders recordings for someone close to me with low vision. The real job was making a complex tool look simple.
I wrote this app for someone close to me. Their job involves editing interview and meeting recordings: cutting unwanted parts, putting segments in order, bringing their volumes closer together and delivering a single file. It sounds simple, but none of the tools on the market fit.
Professional audio software is far too complex for this. The free options are either English-only or small-printed and cluttered. Since their eyesight isn't full, small buttons and faded colors aren't "a bit uncomfortable"; they're simply unusable. That's why AudioLoom Editor exists.
The user first, then the architecture
My first design decisions in this project weren't technical:
- Every word in the interface is Turkish. It says "segment" instead of "track", because the user thinks in consecutive pieces, not layers.
- There are large text options and a high-contrast theme.
- Every button's tooltip says what it does and its keyboard shortcut.
- Every action can be undone. Deleting doesn't ask for confirmation; instead, an "Undo" button appears in the notification. That way the user can experiment without fear.
- Work is saved automatically on every change. Closing the program or a power cut never loses work.
Listing these, I realized accessibility isn't a feature list; it's an attitude. You have to ask on every screen: "what does someone who can't find this button do?".
Why Tauri?
I wanted to build the interface with web technologies, because managing large text, themes and focus states in CSS is very comfortable. But for a program that stays open all day and works with hour-long recordings, I didn't want Electron's memory overhead. Tauri 2 uses the operating system's web view for the UI and Rust for the backend. I explained that decision in Tauri vs Electron.
Why audio processing lives in Rust
Decoding an hours-long recording inside a WebView fills memory fast. So all heavy work happens on the Rust side with FFmpeg bundled in the app. Every Tauri command runs FFmpeg inside spawn_blocking, without opening a console window.
asplit+atrim+concatfor cutting- Two-pass
loudnormfor bringing volumes closer together concatfor joining
#[tauri::command]
async fn normalize(input: PathBuf, output: PathBuf) -> Result<(), String> {
tauri::async_runtime::spawn_blocking(move || {
let stats = loudnorm_measure(&input)?; // pass one: measure
loudnorm_apply(&input, &output, &stats) // pass two: apply
})
.await
.map_err(|e| e.to_string())?
}Why two-pass loudnorm? In a single pass, FFmpeg guesses while the audio streams through; in two passes, it measures the whole file first and then applies the right values. When one person in an interview speaks close to the mic and another far away, that's the only way the gap closes properly.
Waveforms without wearing out the browser
The heart of an audio editor is the waveform. Trying to decode an hour-long recording and draw its waveform in the browser locks up the WebView. Instead, FFmpeg streams the audio at 16 kHz through a buffered pipe, and Rust extracts 100 peaks per second and caches them on disk. The cache is keyed by file path, size and modification time, and capped at 512 MB. wavesurfer.js draws the ready data, and the <audio> element streams the file.
What you hear is what you get
The rule I cared about most: what you hear in the preview and the exported file must be the same. Preview runs on the Web Audio API (GainNode, StereoPannerNode); export runs through FFmpeg filters. Volume and left/right logic were written to give identical results in both worlds, and that behavior is protected by unit tests. A user saying "it sounded fine in preview but the file is different" destroys trust in one go.
Being honest with files
- Formats WebView2 can't play (WMA, AIFF, ALAC, AMR and so on) are converted to lossless FLAC on import.
- Projects, settings and backups are stored as JSON with atomic writes; a half-written file never makes a project unopenable.
- Before every intermediate file and export, the app checks that there's enough disk space.
- Export writes to a temporary file first and only moves it into place if it succeeds.
- Even error messages returned from Rust appear as Turkish notifications.
The real job in this project was to make a complex tool look simple. Behind the scenes there are FFmpeg filter chains, caches and atomic writes; in front, a few large, readable buttons. What this program taught me: good engineering sometimes isn't showing everything, it's showing the right thing.