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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:05:47+00:00 2026-05-16T22:05:47+00:00

Is it possible to compare two sounds ? for example app have already a

  • 0

Is it possible to compare two sounds ?
for example app have already a sound file mp3 or any format, is it possible to compare any static sound file and recorded sound inside of app ?

Any comments are welcomed.

Regards

  • 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-16T22:05:47+00:00Added an answer on May 16, 2026 at 10:05 pm

    This forum thread has a good answer (about three down) – http://www.dsprelated.com/showmessage/103820/1.php.

    The trick is to get the decoded audio from the mp3 – if they’re just short ‘hello’ sounds, I’d store them inside the app as a wav instead of decoding them (though I’ve never used CoreAudio or any of the other frameworks before so mp3 decoding into memory might be easy).

    When you’ve got your reference wav and your recorded wav, follow the steps in the post above :

    1 Do whatever is necessary to convert .wav files to their discrete- time
    signals:

    http://www.sonicspot.com/guide/wavefiles.html

    2 time-warping might or might not be necessary depending on difference
    between two sample rates:

    http://en.wikipedia.org/wiki/Dynamic_time_warping

    3 After time warping, truncate both signals so that their durations are
    equivalent.

    4 Compute normalized energy spectral density (ESD) from DFT’s two signals:

    http://en.wikipedia.org/wiki/Power_spectrum.

    6 Compute mean-square-error (MSE) between normalized ESD’s of two
    signals:

    http://en.wikipedia.org/wiki/Mean_squared_error

    The MSE between the normalized ESD’s
    of two signals is good metric of
    closeness. If you have say, 10 .wav
    files, and 2 of them are nearly the
    same, but the others are not, the two
    that are close should have a
    relatively low MSE. Two perfectly
    identical signals will obviously have
    MSE of zero. Ideally, two “equivalent”
    signals with different time scales,
    (20-second human talking versus
    5-second chipmunk), different energies
    (soft-spoken human verus yelling
    chipmunk), and different phases
    (sampling began at slightly different
    instant against continuous time
    input); should still have MSE of zero,
    but quantization errors inherent in
    DSP will yield MSE slightly greater
    than zero.

    http://en.wikipedia.org/wiki/Minimum_mean-square_error

    You should get two different MSE values, one between your male->recorded track and one between your female->recorded track. The comparison with the lowest difference is probably the correct gender.

    I confess that I’ve never tried to do this and it looks very hard – good luck!

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

Sidebar

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.