Solution to remove human noise in natural sound recordings with two microphones (omnidirectionnel to capture nature and unidirectionnel to capture human noises) using scripting module of Audacity in Python. This solution could be embedded in recording devices as the Audacity's noise reduction algorithm is open source.
❗ This solution was found, made and tested in 24h. It only is a proof of concept
- Launch
Pipeline.aup3file on Audacity - Go to
Edit > Preferences > Modulesand set mod-script-pipe to enabled
- Both files must have the same sample rate, be in
.wavformat and be placed in/input_files - Name your recorded audio from your omnidirectionnel microphone:
omni.wav - Name your recorded audio from your unidirectionnal microphone:
mono.wav
(There already have some recorded test samples to try in/input_files)
- Minimum version required:
Python 3 - Install required python package:
pip install win32file- Run
audacity_script.py
You can now listen the treated audio file in/output_file/treated_audio.wavand quit Audacity
⚠️ The Noise Reduction feature cannot take parameters in the script (see here in line NoiseReduction), so it can only apply the last configuration used on your computer. To get our results, the first time you try, you must go toEffect > Noise Removal and Repair > Noise Reductionand setNoise reduction (dB)at30.