How we built a real-time, client-side noise suppression library without server dependencies
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.
Related posts
- How Together AI built the world’s fastest speech-to-text stack
Together AI hardMasterSpeech-to-text serving is a full-path systems problem, because ASR models are small while audio inputs are large and need heavy CPU preprocessing. Together optimized Parakeet-TDT 0.6B v3 and Whisper Large v3 at each layer of that path. Multi-profile TensorRT engines tune the encoder for real audio shapes instead of padding short chunks. Conditional CUDA graph nodes move the decoder's BLANK-token branch onto the GPU, making the decoder 2-3x faster. Persistent Unix domain sockets, shared memory and fewer process hops cut copy overhead, epoll replaces thread-per-connection streaming to tame GIL contention, and gc.freeze() after startup preallocation removed periodic ~200 ms p95 spikes caused by full Python GC passes.
- Introducing system audio
Replit mediumAdeptReplit graphical repls now support opt-in system audio, enabled by setting the secret VNC_ENABLE_EXPERIMENTAL_AUDIO=1 and restarting the repl. A custom Rust proxy, rfbproxy, replaces Websockify. It connects to both the XtigerVNC server and PulseAudio, transcodes audio to Opus in WebM (with an MP3 fallback), and multiplexes it into the RFB WebSocket stream for NoVNC and Web Audio. The RFB extension messages were registered with IANA. Known limitations are 100–300 ms of audio latency from Web Audio buffering, Safari playback issues, and choppy audio on lower-tier repls.
- FastRTC: The Real-Time Communication Library for Python
Hugging Face mediumAdeptFastRTC is a Python library for building real-time audio and video AI applications over WebRTC or WebSockets without needing WebRTC expertise. A `Stream` wrapped around a `ReplyOnPause` handler provides built-in voice activity detection and turn taking, auto-generates a Gradio test UI, and can be mounted onto any FastAPI app for production. Bundled speech-to-text (Moonshine) and text-to-speech (Kokoro) models, optimized for CPU inference, let a few lines of code chain STT, an LLM and TTS into a voice chat. `fastphone()` exposes the stream through a free phone number with a Hugging Face token.
- Reachy Mini goes fully local
Hugging Face mediumAdeptReachy 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. The recommended stack is Silero VAD, Parakeet-TDT 0.6B v3 for STT, Qwen3-TTS, and Gemma 4 served by llama.cpp. The LLM can also run in-process via MLX or Transformers, or behind any Responses API server such as vLLM (≥0.21.0 for tool-call streaming), HF Inference Endpoints or OpenAI. LLM inference is the main latency bottleneck, so the guide recommends disabling thinking tokens and enabling multi-token prediction where the model supports it.
- Transcribe speech 100x faster and 100x cheaper with open models
Modal mediumAdept
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. That works out to over 100x faster or up to 200x cheaper than a popular proprietary API, at matching or slightly lower WER. The gains come from measuring end-to-end throughput including cold starts and data transfer, shuffling files before dealing them into requests to balance load across workers, and sorting audio by duration within each GPU worker so batch lanes finish together. Parallel threaded downloads also help. Sweeping GPU type and worker count produces a Pareto frontier of cost-versus-speed configurations rather than a single optimum.