This collection of Matlab functions calculates a set of objective speech quality measures, mostly focused around some version of SNR (i.e. speech energy to nonspeech energy ratio).
The measures are:
NIST STNR - see http:https://labrosa.ee.columbia.edu/~dpwe/tmp/nist/doc/stnr.txt
WADA SNR - see http:https://www.cs.cmu.edu/~robust/Papers/KimSternIS08.pdf
BSS_EVAL - see http:https://bass-db.gforge.inria.fr/bss_eval/
PESQ - see https://en.wikipedia.org/wiki/PESQ
SNR_VAD - the "extra" energy in regions designated as speech by some kind of voice activity detection (VAD) when compared to the energy of the "gaps" in-between.
The code is based on the version on the link ( https://labrosa.ee.columbia.edu/projects/snreval ).
see https://github.com/ludlows/pesq-mex , you need to run compile_test.m to make sure the compiling work if you didn't compile before.
PESQ_MEX_PATH = '~/Desktop/pesq-mex/'; % configure your pesq-mex path
addpath(PESQ_MEX_PATH);
addpath([PESQ_MEX_PATH, 'bin/']);
snreval('sample/arabic_400mhz.wav','-vad','sample/arabic_400mhz-vad.txt','-clean','sample/arabic_source.wav');
snreval('sample/arabic_400mhz.wav','-guessvad',1);
snreval('sample/arabic_400mhz.wav','-vad','sample/arabic_400mhz-vad.txt');