Mixing an audio file with a noise file at any Signal-to-Noise Ratio
To use this code, the format of source waveforms is as follows.
- 16-bit PCM
- 1 channel
Additionally, the sampling rate of a clean file and that of noise file are supposed to be the same.
python3 create_mixed_audio_file.py --clean_file data/source_clean/arctic_a0001.wav --noise_file data/source_noise/ch01.wav --output_mixed_file data/output_mixed/0.wav --snr 0
There is the detail on my post (in Japanese).
There is the detail on my post (in Korean).