---
title: "How we built a real-time, client-side noise suppression library without server dependencies"
description: "dtln-rs is an open source Rust library that runs the DTLN (Dual-Signal Transformation LSTM Network) noise suppression model entirely on the client, with WebAssembly, Node.js and native C-ABI targets for WebRTC apps."
url: "https://swe.quest/articles/how-we-built-a-real-time-client-side-noise-suppression-library-without-server-cbfe29dae7f7c7a6"
canonical: "https://www.datadoghq.com/blog/engineering/noise-suppression-library/"
source: "Datadog Engineering"
published: "2025-06-24"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["speech-audio","rust","webassembly","inference","communications"]
---

# How we built a real-time, client-side noise suppression library without server dependencies

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2025-06-24, 13 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/noise-suppression-library/](https://www.datadoghq.com/blog/engineering/noise-suppression-library/)

## Summary

dtln-rs is an open source Rust library that runs the DTLN (Dual-Signal Transformation LSTM Network) noise suppression model entirely on the client, with WebAssembly, Node.js and native C-ABI targets for WebRTC apps. The model was converted from TensorFlow to TensorFlow Lite and wrapped through a thin C interface. The pipeline splits audio into STFT magnitude and phase, runs the first model, applies an inverse FFT, then runs the second model. It denoises one second of audio in 33 ms on an M1 MacBook Pro, which removes the need for server-side processing or paid per-minute services. Rust's Cargo and build.rs simplified cross-compilation, NEON handles the Node bindings, and Emscripten was chosen for WebAssembly despite producing larger binaries.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Communications](https://swe.quest/tags/communications.md) (Domains)

## Prerequisites

- WebRTC basics ([easy posts on Communications](https://swe.quest/tags/communications.md?difficulty=easy))
- Rust build tooling ([easy posts on Rust](https://swe.quest/tags/rust.md?difficulty=easy))
- Fourier transform basics

## Keywords

dtln-rs, DTLN, TensorFlow Lite, WebRTC, Emscripten, NEON, CoScreen, RNNoise

## Related posts

- [How Together AI built the world’s fastest speech-to-text stack](https://swe.quest/articles/how-together-ai-built-the-world-s-fastest-speech-to-text-stack-b5ccd6ddea6a414d.md): Together AI · 2026-05-29 · Hard · 7 min read · Inference & serving, Speech & audio, Performance engineering, Python, Linux
  Speech-to-text serving is a full-path systems problem, because ASR models are small while audio inputs are large and need heavy CPU preprocessing.
- [Introducing system audio](https://swe.quest/articles/introducing-system-audio-6af7f811cd6073d8.md): Replit · 2021-04-08 · Medium · 3 min read · Networking, Rust, Browsers, Video & media
  Replit graphical repls now support opt-in system audio, enabled by setting the secret VNC\_ENABLE\_EXPERIMENTAL\_AUDIO=1 and restarting the repl.
- [FastRTC: The Real-Time Communication Library for Python](https://swe.quest/articles/fastrtc-the-real-time-communication-library-for-python-e889b4f612747a64.md): Hugging Face · 2025-02-25 · Medium · 6 min read · Speech & audio, Real-time systems, Python, LLMs
  FastRTC is a Python library for building real-time audio and video AI applications over WebRTC or WebSockets without needing WebRTC expertise.
- [Reachy Mini goes fully local](https://swe.quest/articles/reachy-mini-goes-fully-local-478ea5b679c393d9.md): Hugging Face · 2026-05-27 · Medium · 10 min read · Speech & audio, Inference & serving, LLMs
  Reachy Mini's conversation app can now run entirely on local hardware using the speech-to-speech library, a cascaded VAD → STT → LLM → TTS pipeline that exposes a Realtime API-compatible /v1/realtime WebSocket.
- [Transcribe speech 100x faster and 100x cheaper with open models](https://swe.quest/articles/transcribe-speech-100x-faster-and-100x-cheaper-with-open-models-c3de3ba8f557cf48.md): Modal · 2025-07-23 · Medium · 11 min read · Speech & audio, Inference & serving, Cost optimization, Performance engineering, Serverless
  Open-weights ASR models such as NVIDIA's parakeet-tdt-0.6b-v2 and canary-1b-flash, deployed as a batch transcription service on Modal GPUs, transcribed about a week of ESB benchmark audio in roughly a minute for about $1.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
