Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8124249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:24:31+00:00 2026-06-06T06:24:31+00:00

Hello Am Currently Doing An App Related To Sound Modulation I need to know

  • 0

Hello Am Currently Doing An App Related To Sound Modulation I need to know How to Record A sound And Modulate The Recorded Sound in Another Voice . Like Talking Tom Cat Application. i had Tried A solution From Stack over flow From HERE

And From Another Blog Blog Address

But i did not get Any idea.Can Any one please Give me Some Ideas Or Solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:24:32+00:00Added an answer on June 6, 2026 at 6:24 am

    at last i have find the solution this may help some one

    http://android-er.blogspot.in/2012/06/implement-voice-changer-by-changing.html

    code

    public class Sound_modActivity extends Activity {
    
     Integer[] freqset = {11025, 16000, 22050, 44100};
     private ArrayAdapter<Integer> adapter;
    
     Spinner spFrequency;
     Button startRec, stopRec, playBack;
    
     Boolean recording;
    
    /** Called when the activity is first created. */
    
       public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        startRec = (Button)findViewById(R.id.startrec);
        stopRec = (Button)findViewById(R.id.stoprec);
        playBack = (Button)findViewById(R.id.playback);
    
        startRec.setOnClickListener(startRecOnClickListener);
        stopRec.setOnClickListener(stopRecOnClickListener);
        playBack.setOnClickListener(playBackOnClickListener);
    
        spFrequency = (Spinner)findViewById(R.id.frequency);
        adapter = new ArrayAdapter<Integer>(this, android.R.layout.simple_spinner_item, freqset);
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        spFrequency.setAdapter(adapter);
    
        }
    
       OnClickListener startRecOnClickListener
    = new OnClickListener(){
    
    
      public void onClick(View arg0) {
    
      Thread recordThread = new Thread(new Runnable(){
    
    
    public void run() {
     recording = true;
     startRecord();
      }
    
      });
    
       recordThread.start();
    
      }};
    
     OnClickListener stopRecOnClickListener
     = new OnClickListener(){
    
    
     public void onClick(View arg0) {
     recording = false;
     }};
    
     OnClickListener playBackOnClickListener
     = new OnClickListener(){
    
    
    public void onClick(View v) {
    playRecord();
    }
    
    };
    
     private void startRecord(){
    
     File file = new File(Environment.getExternalStorageDirectory(), "test.pcm"); 
    
     int sampleFreq = (Integer)spFrequency.getSelectedItem();
    
     try {
       file.createNewFile();
    
      OutputStream outputStream = new FileOutputStream(file);
     BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(outputStream);
      DataOutputStream dataOutputStream = new DataOutputStream(bufferedOutputStream);
    
      int minBufferSize = AudioRecord.getMinBufferSize(sampleFreq, 
     AudioFormat.CHANNEL_CONFIGURATION_MONO, 
     AudioFormat.ENCODING_PCM_16BIT);
    
      short[] audioData = new short[minBufferSize];
    
      AudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC,
     sampleFreq,
     AudioFormat.CHANNEL_CONFIGURATION_MONO,
     AudioFormat.ENCODING_PCM_16BIT,
     minBufferSize);
    
      audioRecord.startRecording();
    
      while(recording){
      int numberOfShort = audioRecord.read(audioData, 0, minBufferSize);
      for(int i = 0; i < numberOfShort; i++){
     dataOutputStream.writeShort(audioData[i]);
       }
      }
    
      audioRecord.stop();
      dataOutputStream.close();
    
      } catch (IOException e) {
      e.printStackTrace();
       }
    
      }
    
     void playRecord(){
    
     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() > 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();
    audioTrack.write(audioData, 0, bufferSizeInBytes);
    
    
     } catch (FileNotFoundException e) {
     e.printStackTrace();
    } catch (IOException e) {
     e.printStackTrace();
    }
     }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am doing this: I have text that looks like: Hello ${user.name}, this
Hello Im currently writing a product syncronisation script for magento. I know how to
-Hello, looking for some help. We currently have a winform app used to do
Hello all I am currently working on doing some research and was utilizing the
Hello I currently have this code checking if a cookie exists, it works all
Hello I'm currently on Day 2 of Jeffrey Way's Codeigniter tutorial. In this screencast
Hello everyone I'm currently having 2 issues with the code below: Upon return of
Hello my friend is currently development an application using SOA Architecture, He sent me
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
Hello I'm doing file upload with Yii. I have implemented this way and it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.