This is a good starting point but it ends just when things get interesting. If you are going to process audio for ML make sure you experiment with normalizing the input volume, this can make a huge difference and try if your inputs are in stereo to process both mono, single channel and stereo inputs to see which one performs better.<p>Finally, if you pre-process the audio using an FFT try different FFT sizes.
Careful! FFMPEG has an infectious license and the authors WILL publicly humiliate you on their Hall of Shame if you get caught misusing it by not open sourcing your whole application:<p><a href="https://ffmpeg.org/shame.html" rel="nofollow">https://ffmpeg.org/shame.html</a>
Some good basic info, but at the same time there are some inaccuracies. WAV is not a lossless format, it's a container, it can contain any compressed audio format, even mp3. You can have PCM inside WAV, which is indeed lossless, but you're not going to see that in the wild too often. Going with 16k is also questionable, since most readily available pre-existing datasets, were recorded in 8k (which is what telephony codecs mostly use).
I spent some time using the synchrosqueeze transform to preproccess audio files before feeding it into the network. Basically, you do a cwt, and then feed the output of that into the synchrosqueeze. It basically sharpens up the cwt, so that a signal isn't spread out into so many bins. The output of the cwt is complex, and normally you through the imaginary data away. The synchrosqueeze transform uses the imaginary data to work it's magic. Figures 5 and 6 of the below pdf are good examples.<p>I believe I based my code of this matlab code: <a href="https://github.com/ebrevdo/synchrosqueezing/tree/master/synchrosqueezing" rel="nofollow">https://github.com/ebrevdo/synchrosqueezing/tree/master/sync...</a><p>The above matlab code is ridiculously slow, I rewrote it using sse intrinsics, and got it several orders of magnitude faster.<p>I hope this helps out someone. I never really produced anything with it, but I still feel it is promising.<p><a href="https://services.math.duke.edu/~jianfeng/paper/synsquez.pdf" rel="nofollow">https://services.math.duke.edu/~jianfeng/paper/synsquez.pdf</a>