title: How to convert record male voice in to female voice in android?
body: <p>I'm recording male voice, when I click playback button how to convert male voice in to female voice and play it in female voice. I refer some links I tried <code>sound pool</code> to change voice by changing the float rate but I'm not getting female voice and change frequency for audio track. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>           soundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);
              soundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {
                @Override
                public void onLoadComplete(SoundPool soundPool, int sampleId,
                    int status) {
                  loaded = true;
                }
              });
              soundID = soundPool.load(mFileName, 1);
  
  
              AudioManager audioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
                float actualVolume = (float) audioManager
                    .getStreamVolume(AudioManager.STREAM_MUSIC);
                float maxVolume = (float) audioManager
                    .getStreamMaxVolume(AudioManager.STREAM_MUSIC);
                float volume = actualVolume / maxVolume;
               /* if (loaded) {
                    iv.setImageDrawable(getResources().getDrawable(R.drawable.palyrec));
                    soundPool.play(soundID, volume, volume, 1, 0, 1.8f);
                    Log.e("Test", "Played sound");
                }*/
                int streamID = -1;
                do {
  
                    iv.setImageDrawable(getResources().getDrawable(R.drawable.palyrec));
                    streamID = soundPool.play(soundID, volume, volume, 1, 0, 1.7f);
                    Log.e("Test", "Played sound");
  
  
                } while(streamID==0);
  </code></pre>
  
  <p>Changing frequency Code:
         Integer[] freqset = {11025, 16000, 22050, 44100};</p>
  
  <pre><code>   File file = new File(Environment.getExternalStorageDirectory(), "test.pcm");
  
      int shortSizeInBytes = Short.SIZE/Byte.SIZE;
  
      int bufferSizeInBytes = (int)(file.length()/shortSizeInBytes);
      short[] audioData = new short[bufferSizeInBytes];
  
      try {
          InputStream inputStream = new FileInputStream(file);
          BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);
          DataInputStream dataInputStream = new DataInputStream(bufferedInputStream);
  
          int i = 0;
          while(dataInputStream.available() &gt; 0){
              audioData[i] = dataInputStream.readShort();
              i++;
          }
  
          dataInputStream.close();
  
          int sampleFreq = (Integer)spFrequency.getSelectedItem();
  
          AudioTrack audioTrack = new AudioTrack(
                  AudioManager.STREAM_MUSIC,
                  sampleFreq,
                  AudioFormat .CHANNEL_CONFIGURATION_MONO,
                  AudioFormat.ENCODING_PCM_16BIT,
                  bufferSizeInBytes,
                  AudioTrack.MODE_STREAM);
  
         audioTrack.play();
  </code></pre>
  
  <p>audioTrack.write(audioData, 0, bufferSizeInBytes);</p>
  
  <p>How it is possible to convert to female voice in android ?</p>