how to change female voice to male voice using matlab?

29 次查看(过去 30 天)
%Female to Male
[x,fs] = wavread('female_speech.wav');
x = x./max(abs(x)); %normalize signal
figure(1)
%Plot of original time signal
subplot(421)
plot(x)
axis tight
title('Original Waveform')
xlabel('Time(s)')
ylabel('Amplitude')
p_male = ceil((fs/1000)*.75) + 4; %1 resonance every 1500 Hz for female
freq =1:fs/1000:fs/2;
  1 个评论
Walter Roberson
Walter Roberson 2019-12-28
So to clarify the problem requirement:
You need to take an arbitrary sentence (or fragment) spoken by someone who is 46XX chromosomes, and convert it to what it would sound like if the exact same person instead had 46XY chromosomes ? What should the outcome be if the analysis of the input sound detects that the speaker is 46XY with Complete Androgen Insensitivity Syndrome (CAIS) ?

请先登录,再进行评论。

回答(1 个)

Brian Hemmat
Brian Hemmat 2019-12-28
If you're interested in just shifting the pitch (which will get you most of the way there in terms of perception of male vs. female voice), use the shiftPitch function in the Audio Toolbox (R2019b or later).

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by