Introduction
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.