Real-Time Speech Enhancement for Calls and Speech Recognition
DTLN Noise Suppression on Phones and Edge Devices
My Role
- DTLN, small enough to run on-device
- Train on the client's own recordings
- Export to TFLite for phones, ONNX elsewhere
Approach at a Glance
Details- 1DTLN Architecture
- 2Training on Client Data
- 3Streaming, Frame by Frame
- 4On-Device Deployment
- 5Evaluation
Executive Summary
A real-time speech enhancement model that removes noise from voice captured by low-quality microphones, so people sound clear in calls and speech recognition makes fewer mistakes. It runs on the device itself, on phones, desktops and embedded hardware, processing audio as a stream, frame by frame.
The model is based on DTLN (Dual-Signal Transformation LSTM Network), a compact architecture designed for real-time noise suppression. It is small enough to run on-device, unlike the heavy enhancement models of that time. I trained it on the client's own data and exported it to TensorFlow Lite and ONNX for the target devices.
Cleaned audio lowered the word error rate of speech recognition by about 12% on the client's recordings. The system adds about 150 ms of processing delay, not counting the network. Speech quality was measured with standard metrics (PESQ, STOI and SNR), with results slightly below the best published models of that time, from a model small enough to run in real time on a phone. I built it as the only ML engineer, and it was handed over to the client and used in production.
Client Profile
The client works with voice communication: calls and voice over IP, where speech is also passed to speech recognition. Users speak into whatever microphone they have, cheap headsets, laptop mics and phones in noisy places, and the audio quality shows.
Fixing that was hard on several fronts:
- Real time: enhancement must keep up with live speech. Added delay is noticeable in a conversation.
- On the device: to avoid sending raw audio to a server and adding more delay, the model had to run on phones, desktops and embedded hardware with limited compute.
- Two audiences: the result had to sound better to people and be easier for speech recognition to transcribe, which aren't always the same thing.
- Real-world noise: the client's recordings had their own mix of noise and microphone artefacts, unlike clean benchmark data.
Technical Approach
-
DTLN Architecture – The model follows the Dual-Signal Transformation LSTM Network design, with two stacked stages:
- the first works in the frequency domain, estimating a mask that suppresses noise in the spectrum;
- the second works on a learned time-domain representation, refining the signal further.
Both stages use small LSTM layers, which keeps the model compact and suitable for streaming.
-
Training on Client Data – The model was trained on the client's own recordings and noise conditions, so it learned the noise and microphone artefacts it would actually meet in production.
-
Streaming, Frame by Frame – Audio is processed in short overlapping frames as it arrives. The LSTM state is carried from frame to frame, so the model doesn't need the whole recording, and the delay stays at about 150 ms for the system itself.
-
On-Device Deployment – The trained model was converted to TensorFlow Lite for phones and ONNX for desktop and embedded devices, so enhancement runs locally on the user's device.
-
Evaluation – Speech quality was measured with PESQ, STOI and SNR, and the impact on speech recognition with word error rate before and after enhancement on the client's recordings.
Business Outcome
The client's users sound clearer on calls, even with poor microphones, and their speech is transcribed more accurately. Speech recognition made about 12% fewer word errors on the client's recordings after enhancement. Because the model runs on the device with about 150 ms of processing delay, it improves the audio without sending it anywhere first. The model was handed over to the client and used in production.
Technologies
Planning something similar?
Tell me about it on a short call. New projects can start within 2 weeks