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

  • Home
  • SEARCH
  • 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 9163647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:29:45+00:00 2026-06-17T14:29:45+00:00

In my Android application I am recording the user’s voice which I save as

  • 0

In my Android application I am recording the user’s voice which I save as a .3gp encoded audio file.

What I want to do is open it up, i.e. the sequence x[n] representing the audio sample, in order to perform some audio signal analysis.

Does anyone know how I could go about doing this?

  • 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-17T14:29:46+00:00Added an answer on June 17, 2026 at 2:29 pm

    You can use the Android MediaCodec class to decode 3gp or other media files. The decoder output is standard PCM byte array. You can directly send this output to the Android AudioTrack class to play or continue with this output byte array for further processing such as DSP. To apply DSP algorithm the byte array must be transform into float/double array. There are several steps to get the byte array output. In summary it looks like as follows:

    1. Instantiate MediaCodec

      String mMime = "audio/3gpp"
      MediaCodec  mMediaCodec = MediaCodec.createDecoderByType(mMime);
      
    2. Create Media format and configure media codec

      MediaFormat mMediaFormat = new MediaFormat();
      mMediaFormat = MediaFormat.createAudioFormat(mMime,
          mMediaFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE),
          mMediaFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT));
      
      mMediaCodec.configure(mMediaFormat, null, null, 0);
      mMediaCodec.start();
      
    3. Capture output from MediaCodec ( Should process inside a thread)

      MediaCodec.BufferInfo buf_info = new MediaCodec.BufferInfo();
      int outputBufferIndex = mMediaCodec.dequeueOutputBuffer(buf_info, 0);
      byte[] pcm = new byte[buf_info.size];
      mOutputBuffers[outputBufferIndex].get(pcm, 0, buf_info.size);
      

    This Google IO talk might be relevant here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new in Android. I want to make one Audio Recording application. In
I want to record a video from my Android application. like this File f
I am currently developing audio recording application which will run on both device and
I am working on an android Audio Recording application, our app is currently designed
My android application is saving some stats to internal storage. Each file name is
I have a cloud storage website and I want to create an Android application
I have application which connects to server via RestClient. And I want to implement
I'm having some errors with my custom recording application using android. I saw most
I have an android application which contains four modules(I mean four apk's).Each module has
I am building an application in which user logs In, by using username and

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.