I think the OP is askign hwo to take a 5 second clip of a mans voice and increase teh frequency of the audio so it soudns like a womans voice, but maintains the same tempo.
You need to break the sample into its constituent frequencies and then assign them to highr frequencies. So if a sample contains say 1000 2000 and 4000 Hz you then set the output sample to contain 1500, 3000, and 6000 Hz. Fourier analysis is probably the easiest way to do this, but that isnt to imply that it will be easy.
That will screw up all the formants and cause the voice to sound like a chipmunk, not a woman's voice.
If you simply want to alter the pitch of the sound you can accomplish this via the playback frequency. It isn't perfect but if the play rate is greater than the sampling rate the frequency should increase and vice versa.