Introducing system audio
Replit 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.
Related posts
- How we built a real-time, client-side noise suppression library without server dependencies
Datadog Engineering mediumAdeptdtln-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.
- Build Low-Latency Multilingual Voice Agents: Open Weights & Full Deployment Control with NVIDIA Magpie TTS
Hugging Face easyNoviceNVIDIA Magpie TTS Multilingual is a 364M-parameter open-weights text-to-speech model covering 12 languages, with Modern Standard Arabic, Korean and Brazilian Portuguese newly added. It is aimed at cascaded voice-agent pipelines where teams run their own ASR, LLM and TTS. Served as a NIM on-prem, it reaches 32–79 ms time-to-first-audio on a single stream across B200, H100, DGX Spark and A100. On B200 at 64 concurrent streams it delivers 239 ms TTFA at about 320× real time. The latency comes from frame stacking, which predicts two audio frames per decoder step, plus a local transformer that models codebook dependencies to recover quality. The release also lowers CER and raises speaker similarity on French and Spanish, and recommends specific sampling settings such as cfg_scale 2.5 and temperature 0.6.
- How Sample Vault syncs gigabyte-scale databases from cloud to local with Turso
Turso easyNoviceSample Vault, an AI sample browser for music producers, gives each premium user a dedicated Turso database. Processing (spectral analysis, ML classification, AI tagging) runs in the cloud and syncs down to a full local embedded replica, so libraries of 100K to 1.2M+ audio files are queryable offline. Supabase failed on connectivity and upload speed, PGLite used too much RAM and had no sync layer, and Electric SQL and PowerSync were too expensive and synced in the wrong direction. Sync runs on launch, every 5 minutes, and on demand, and database-per-user tenancy avoids noisy neighbours without any custom sync code.
- How we built a realtime system for responsive voice AI in six months
OpenAI mediumAdept
GPT-Live replaces turn-detector-based voice AI with a full-duplex voice model that listens and speaks simultaneously, delegating deeper reasoning and tool use to frontier models like GPT-5.5 over an asynchronous RPC path that never blocks media. The system separates a Go-based media fast path (replacing Python asyncio, with new p95 matching old p50) from application logic. It uses warm model-instance handoffs to perform context compaction without KV-cache rebuild pauses, prefills frontier-model sessions at call start, and derives discrete turns from overlapping speech via speculative and authoritative transcript views. Startup is cut to a single UDP packet through WARP, a set of backward-compatible WebRTC changes that reduces handshakes from six round trips to one, plus Instant Connect for pre-negotiated SDP. Shadow testing on production traffic showed that capacity depends on concurrent sessions and CPU-side stream handling, not just GPU throughput.
- AudioLDM 2, but faster ⚡️
Hugging Face mediumAdeptAudioLDM 2, a text-to-audio latent diffusion model conditioned on CLAP, Flan-T5 and GPT2-generated embeddings, can be made over 10x faster in Hugging Face Diffusers with minimal quality loss. Half precision, PyTorch 2.0 SDPA (flash-attention-style) attention and torch.compile on the UNet cut a 200-step generation from about 13 seconds to 4 seconds. Swapping the default DDIM scheduler for DPMSolverMultistep at 20 steps brings a 10-second clip under 1 second. Negative prompting improves quality at no extra inference cost. Memory scales quadratically with audio length in cross-attention, which matters for long samples and large batches.