everyaudiotool

How we process audio in your browser: FFmpeg.wasm, Web Audio and local models

A technical look at everyaudiotool's architecture: real-time preview with Web Audio, export with FFmpeg in WebAssembly and AI models running on your device.

Most audio-tool sites upload your file to a server, process it and send the result back. We do it all in your browser. It's more private (your audio never leaves your device), cheaper to run and, done right, faster. Here's how it works inside.

Two engines for two jobs

  • Web Audio API for listening: as you move a slider, the sound changes instantly. The file plays in an <audio> element routed through a node chain (filters, delays, convolution reverb, a pitch worklet).
  • FFmpeg.wasm for export: FFmpeg compiled to WebAssembly decodes any format and encodes the result as MP3, WAV, FLAC, OGG or M4A. It runs in a Web Worker so the page never freezes.

What you hear is what you download

The risk of two engines is that preview and final file sound different. We solve it two ways. For effects, each Web Audio chain mimics the filters FFmpeg applies on export (same frequencies, slopes and reverb response). And for things generated in the browser — instruments, drum machines, the voice changer, the Lab — we render the same chain in an OfflineAudioContext and FFmpeg only encodes the result.

On-device AI models

Vocal separation (Demucs), transcription (Whisper) and text-to-speech (Kokoro) use models downloaded once from public servers and run with ONNX Runtime Web, on WebGPU when available and WebAssembly otherwise. The first run is slower; afterwards the files stay in the browser cache.

Lazy loading and memory

  • Nothing loads until needed: the FFmpeg core (about 30 MB) and models only download when you press a tool button that uses them.
  • One worker per job: each process lives in its own worker; cancelling terminates it and frees the memory at once.
  • Honest limits: 100 MB and 10 minutes per file. Beyond that, a mobile browser can run out of memory.

Why WebAssembly

JavaScript is fast for a page's logic, but not for processing millions of audio samples per second. WebAssembly lets the browser run code compiled from C or C++ at close to the speed of an installed program. That's how we can use FFmpeg, the same engine behind many professional audio and video programs, without rewriting it and without asking you to install anything.

For AI, WebGPU goes a step further: it lets the browser use the graphics card for the models' calculations, which are exactly the kind of parallel operations a GPU is built for. When it isn't available, the same model runs on the processor with WebAssembly.

What gets downloaded, and from where

  • The site and the engines: the page code, FFmpeg.wasm and the audio engines are served from our own domain.
  • The AI models: they download from Hugging Face, the public repository where they're published. Your browser connects to its servers like any website, but your audio isn't sent to them. We explain it in the privacy policy.
  • The cache: after the first time, the browser stores engines and models. You can delete them whenever you like from the site data.

Compatibility

Everything works in recent versions of Chrome, Edge, Firefox and Safari, on desktop and mobile. What changes is the speed of the AI tools. With WebGPU-compatible graphics (Chrome and Edge on most current computers), models like Demucs or Kokoro run much faster. Without it, they run on the processor with WebAssembly: they work the same, but take longer. On phones it's best to start with short files, because the browser has less memory available.

What it means for you

  • Real privacy: we can't see your files because they never reach us. There's no account, history or copy on any server.
  • No queues or daily limits: your device does the work, so you never wait behind other people.
  • The first time costs more: the initial engine and model downloads are the price of not depending on a server.

FAQ

Does it work offline?

The page needs a connection to load, and each engine or model to download the first time. Once cached, the processing itself doesn't depend on any server: if the connection drops mid-job, the job carries on.

Why not use a powerful server?

Because we'd have to receive and store your files, even briefly, and pay for the computation of every use. That would force us to add limits, queues or paid plans. Processing on your device is slower on modest hardware, but it's more private and lets us keep everything free.

  1. Free AI text to speech: how to get a voiceover that sounds natural

    How modern text to speech works, how to write a script that sounds human, which voice and speed to choose and how to build long voiceovers.

  2. How to transcribe audio to text for free and get SRT subtitles

    Transcribe interviews, lectures or meetings with Whisper in your browser: which accuracy to pick, how to improve results and how to use SRT subtitles.

  3. How to remove background noise from audio without ruining the voice

    Which noises can be removed and which can't, how to choose the mode and strength, and the mistakes that leave a voice sounding metallic or canned.

← All articles