javascript – Change male to female voice using web audio api in realtime

I want to change male to female voice in realtime but cannot.

Bellow method can change the voice, but the voice is not like a woman’s voice, it likes a baby’s voice or a robot’s voice.
Can anyone show me how to change the male to female voice?

The method is change pitch shifter by using tones js or jungle js

const pitchShift = new Tone.PitchShift().toDestination();
pitchShift.pitch = -12; // down one octave
pitchShift.pitch = 4; // up a fifth
let effect = new Jungle( audioContext );
effect.setPitchOffset(0.7);

Read more here: Source link