How to denoise audio with SOX?

12,904

What is SOX

  • SoX - Sound eXchange, the Swiss Army knife of audio manipulation

Create noise file from input audio's initial 0.9s silence + room's noise

# sox in.ext out.ext trim {start: s.ms} {duration: s.ms}
sox audio.wav noise-audio.wav trim 0 0.900

Generate a noise profile in sox:

sox noise-audio.wav -n noiseprof noise.prof

Clean the noise from the audio

sox audio.wav audio-clean.wav noisered noise.prof 0.21

According to source :

Change 0.21 to adjust the level of sensitivity in the sampling rates (I found 0.2-0.3 often provides best result).

Sources

Share:
12,904

Related videos on Youtube

Hugolpz
Author by

Hugolpz

Educational platform Engineer at Center for Research and Interdisciplinarity, Paris. Former PhD candidate in Chinese Teaching and Computer Assisted Language Learning (#CALL), enthusiast wikipedian. I mainly discuss a HTML/CSS/JS for #webapp, #Nodejs, #D3js, #Make, #GIS cartography, #topojson, #wikidata, #openedx. Love to ask short, clean questions on isolated issue with JSfiddle to demo it.

Updated on June 17, 2022

Comments

  • Hugolpz
    Hugolpz about 2 years

    Givent a audio.wav recording with silence at both start and end for at least 1second...

    How to denoise with SOX ?