Pypesq is a python wrapper for the PESQ score calculation C routine. It only can be used in evaluation purpose.
pip install https://github.com/vBaiCai/python-pesq/archive/master.zip
pip install pypesq
import soundfile as sf from pypesq import pesq ref, sr = sf.read(...) deg, sr = sf.read(...) score = pesq(ref, deg, sr) print(score)
OWNERS of PESQ ARE:
The PESQ contain 3 types of values:
NB PESQ MOS,
NB MOS LQO,
WB MOS LQO.
This package only return the
NB PESQ MOS score, which represents the
Raw MOS for
narrowband handset listening.