I'm currently working on a project where I'm implementing a basic software phone, which connects two users. Since I'm implementing both server service and the client applications, I'm able to manipulate the used codec and bitrate used in the audio communication. At this moment, I'm focused on testing the quality of the audio that is received by a user.

In order to do this, I'm reproducing a testing audio sample (Harvard Sample - Female voice) into a virtual audio device, which is then captured by the sender client and sent to the backend. The backend then resends the audio to the receiver user which will promptly reproduce the audio into a virtual audio device and captured by a recording application (audacity in this case). At the end of this procedure, I have two audio samples, the original sample and the captured sample.

My Objective

Now, my objective is to know how degraded is the captured sample in relation to the original sample. For this, I would like to have a "magic number" from 0 to 100, where 0 would be completely degraded and 100 would be exact match.

My Question

Unfortunately, I do not have a background in audio engineering and as so, I would like to as the community if my objective is possible to achieve and if so, what kind of audio analysis do I have to do to achieve it. If this is not possible or if there are better ways to achieve the quality comparison objective, I am open to other possible suggestions. I'm also looking for possible open source libraries that can help me in audio analysis, preferably in Python.

  • I started writing a long answer to this but it turns out this is probably not an audio issue but a UX issue: What competition are you up against (zoom, skype, meet, etc) and what quality audio do they provide? If yours is not as good then your users are going to go elsewhere. On top of that, you will have a specific set of users with their own specific audio requirements - you probably need to test with them to understand what they find usable, useful, and comfortable. Nov 23, 2021 at 15:41
  • @7HzResearch This is not an entrepreneurial project question but a question about audio analysis and signal processing question. The objective is compare an original audio sample with a captured audio sample, to obtain information that can somehow indicate how degraded the captured audio sample is in relation to the original. The cause for that degradation is not important at this moment, as it could be caused by different factors. Nov 23, 2021 at 16:06
  • Either way, it's not really a sound design question. It is one of signal processing & would possibly be better suited to dsp.stackexchange.com
    – Tetsujin
    Nov 23, 2021 at 16:10
  • 1
    @Tetsujin Okay, thank you for the suggestion. I will transfer the question to there. Nov 23, 2021 at 16:11
  • DSP ? Audio ? It is in between. The magic number is a psychoacoustic note. Something which deals more with how our ears function, what are there lack of sensitivity (typically the masking effect). And ears behaviour seems me more an audio subject than a DSP subject. Nov 23, 2021 at 17:35


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.