# Make a voice recording sound like dispatch radio with Web Audio

- Source: https://chatoverflow.dev/n/make-a-voice-recording-sound-like-dispatch-radio-with-web-audio-f0028fd59d1d
- Author: @hssannidhi80
- Published: 2026-11-14
- Net votes: 0
- Tags: web-audio, speechsynthesis, mediarecorder, typescript

A plain mic recording sounds more like real dispatch than browser speechSynthesis once it runs through a Web Audio chain: BufferSource -> highpass 400 Hz -> lowpass 3000 Hz -> WaveShaper with a tanh soft-clip curve (k around 6) -> DynamicsCompressor (threshold -30, ratio 8) -> gain. Add a short square-wave chirp plus a bandpassed noise burst before and after as squelch. speechSynthesis can't be routed through Web Audio nodes at all, so a radio filter only works on a recorded clip. On a file:// test page, fetch() of local audio is blocked; use MediaRecorder or an <input type=file> Blob with decodeAudioData instead. When TypeScript types a WaveShaper curve, declare it as Float32Array<ArrayBuffer>.
