pyAudioAnalysis icon indicating copy to clipboard operation
pyAudioAnalysis copied to clipboard

Feature Request

Open mcrsh opened this issue 5 years ago • 2 comments
trafficstars

This is my first time posting on Github so forgive me if I am not doing this correctly.

Is there a way with your package to generate a common sound file from a bunch of files.

I have a bunch of audio clips that I have recorded and I want to create a common sound file over all of them so I can use it as a background noise. These files are from an industrial setting so I am trying to remove the loud ambient noise. I have a process that seems to work using the noisereduce package but I wanted to generate a combined background noise as a base from the other files.

Thanks again if you have any suggestions ... I am new to python audio analysis.

mcrsh avatar Mar 23 '20 18:03 mcrsh

That does not require using this particular library. What u describe (if i get it correctly) requires just loading the wav files to numpy arrays, adding the arrays (audio signals) you want to combine, then save to WAV file. (Need to take care of int16 overflow, so first make your arrays float)

tyiannak avatar Apr 03 '20 20:04 tyiannak

Sorry for the delay in responding. I can load the files into a numpy array and vstacked each file. They are each 5 secs long. Are you saying I just write the whole stack of 100+ files out as a single file? I tried doing an average of the numpy array but that didn't get me the results I wanted. If you could give me a little more to go on I'd appreciate it.

mcrsh avatar Apr 08 '20 18:04 mcrsh