FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
I built a real-time audio pipeline from the browser to my server. Here's what actually works.
NewsWeb Development

I built a real-time audio pipeline from the browser to my server. Here's what actually works.

via Dev.to WebdevFlo1mo ago

Getting audio from a browser to a server in real-time sounds like a two-line solution. It isn't. I built this pipeline for LiveSuggest , an AI assistant that listens to meetings and gives suggestions as the conversation happens. That means streaming audio continuously, with as little delay as possible, across a WebSocket connection that can drop at any time. The pipeline Here's the full chain: Capture audio with getUserMedia (mic) or getDisplayMedia (tab audio) Feed it into a MediaRecorder Slice it into chunks every N seconds Encode each chunk to base64 Send it over WebSocket to the server Server decodes and sends to a transcription API Every step has a gotcha. MediaRecorder is great until it isn't MediaRecorder handles encoding for you. I use audio/webm;codecs=opus because it's widely supported and compresses well. const mediaRecorder = new MediaRecorder ( stream , { mimeType : ' audio/webm;codecs=opus ' , }); The problem: you don't control the chunk boundaries. ondataavailable fires

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
32 views

Related Articles

Your Mac Came With the Wrong Apps. These 7 Fix That
News

Your Mac Came With the Wrong Apps. These 7 Fix That

Medium Programming • 16h ago

Why You Start Projects but Never Finish Them
News

Why You Start Projects but Never Finish Them

Medium Programming • 17h ago

FedEx chooses partnerships over proprietary tech for its automation strategy
News

FedEx chooses partnerships over proprietary tech for its automation strategy

TechCrunch • 17h ago

News

Software You Can Love 2026 tickets are on sale

Lobsters • 17h ago

The Subprime Technical Debt Crisis
News

The Subprime Technical Debt Crisis

Lobsters • 17h ago

Discover More Articles