-
Install FaNT (http://aurora.hsnr.de/download.html)
-
Install sox/soxi (http://sox.sourceforge.net/)
-
Generate the list of input files
For example, to list all files ending with
.wav
under directory<dir>
, one can use:find <dir> -type f -iname '*.wav' > wav_in.txt
Do not use "." as a directory if you want absolute paths; use $PWD instead.
-
Generate the list of output files
e.g.:
sed 's/\.wav/.noisy.wav/g' wav_in.txt > wav_out.txt
-
Add noise using the script addnoise.sh
e.g.:
addnoise.sh -n <noisefile> -s <snr> wav_in.txt wav_out.txt
Default rate is 16000Hz.
Default output folder is the current oneUse
addnoise.sh -h
for the list of all parameters. -
(OPTIONAL) Delete RAW files
e.g.:
find <dir> -name '*.raw' -delete
-
Notifications
You must be signed in to change notification settings - Fork 2
allspeak/addnoise
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
script and ubuntu executable to add noise to the given wavs
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published