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 6051391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:48:57+00:00 2026-05-23T07:48:57+00:00

I have written a code for getting frequency of audio. I have used Zero

  • 0

I have written a code for getting frequency of audio.
I have used Zero Crossing algorithm to convert short array into frequency(int).
It works fine.
Whenever I play 2500Hz Audio Frequency in my PC It gives me perfect value.
e.g. 2500Hz=1400
If I play 2500Hz Audio Frequency for 10sec it gives me 1400 for 10sec.
So I can say that it works fine without any problem. There is no any issue with code.

But Now My problem is that whenever I change Device the output also changed.
e.g above output I get when I use Samsung GT-i5700.(Android 2.2)
But When I use Micro-max A-60(Android 2.1) It gives me output like that 2500Hz=771.

I can’t find the reason,why output is changed when device is changed?
How can I solve this?
Is there any connection between android version and audio frequency?

Note:
I have cable which gives output from PC speaker to Devices MIC. So I can play Tone in PC and send it directly to Device MIC.

  • 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-05-23T07:48:58+00:00Added an answer on May 23, 2026 at 7:48 am

    If the calculated frequency changes when you change handset then I would expect that your code is in fact NOT fine. Have you tried a third handset and observed if the results it gives match one of the previous 2 handsets?

    If you are looking for potentially more accurate solutions (saying a 2500Hz tone outputs 1400 seems odd to me) look at How do you analyse the fundamental frequency of a PCM or WAV sample? for options.

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

Sidebar

Related Questions

I have written this code to convert string in such format 0(532) 222 22
I have written following code for getting location name : UseGpsActivity.java public class UseGpsActivity
I'm just getting started learning CoreData for iOS and have written some exploratory code
I am getting varied results with some PHP code I have written to upload
I have written the following code and getting the below error, I believe its
I have written code for two checkboxes: string sdate= Convert.ToDateTime(txtFromDate.Value); string edate=Convert.ToDateTime(txtEndDate.Value); I am
i have written a code which converts date and time into timezone , now
I have written following code for the client of RMI. But getting java.rmi.ConnectException: Connection
So I have written this code for getting AlarmManager to fire on a specified
I have written code that automatically creates CSS sprites based on the IMG tags

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.