Implementation details: https://haythamfayek.com/2016/04/21/speech-processing-for-machine-learning.html