Will this feature extraction technique work for gender classification using audio?

I was following tutorial from here: https://www.analyticsvidhya.com/blog/2019/07/learn-build-first-speech-to-text-model-python/

That was a wonderful tutorial for learning how to classify certain words based on audio. The feature extraction technique used there was this:

samples, sr = librosa.load(audio_path, sr=16000)
samples = librosa.resample(samples, sr, 8000)

Will this feature extraction technique work for gender classification.
And if not, then please do also tell why and which feature extraction technique to use instead.

Thank you.

© Copyright 2013-2019 Analytics Vidhya