Male and female voice spectrum I have a set of data which consists of male and female voices. They are pronunciation of a same sentence. What's the appropriate method for getting an average spectrum for the male and female voices separately and comparing them? I can take fft of each voice but what's the next step to get an average spectrum? Also Welch's method can be applied to one voice each time. I know that this is in fact a random process and each of the voices is a realization but how can we estimate PSD using these realizations?
Edit: Thanks to Marcus Müller, here is the result which I've got using $$\frac{1}{N}( |\text{FFT}(x_1)|^2 + \dots + |\text{FFT}(x_n)|^2)$$
And here is the code:
  male = fft(k.');  %k: male voices
  male1 = (abs(male)).^2;
  male2 = sum(male1.')/36; %36: number of male voices


  female = fft(s.');  %s: female voices
  female1 = (abs(female)).^2;
  female2 = sum(female1.')/13;    %13: number of female voices

  plot(f , fftshift(male2) , f , fftshift(female2))
  legend({'male','female'},'Location','southwest')`

It would be really nice to see the other ways for estimation of PSD in this case.
in my opinion and limited experience, you can't just compare spectra of male and female voices to identify which is which.
2 decades ago i worked on two products called PurePitch and PitchDoctor that was able to shift the pitch of a voice independently of shifting the formants.  it also had the ability to increase or reduce the amount of pitch inflection of the voice (all the way to monotone).  the products had factory-supplied &quot;presets&quot;, one was called &quot;testosterone&quot; and the other was called &quot;estrogen&quot;, that could convincingly make a female voice sound masculine or a male voice sound feminine.
anyway, i don't remember the numerical parameters that were researched literally by my boss in usage of the alpha version of the product.  but it was something like 300 or 400 cents difference between the male and female voices and less than that for the difference between formants.
i think you might need a pitch detector and get lotsa words and do some statistics on the pitch to get a good machine idea of whether the pitch is or was more likely male or female.