git clone https://github.com/huyanxin/python_pesq_with_pybind11.git
cd python_pesq_with_pybind11
git clone https://github.com/pybind/pybind11.git
Or
ln -s your_exit_pybind11_dir .
mkdir build && cd build
cmake ..
make
import soundfile as sf
import sys
sys.path.append(the pwd of the python_pesq.cpython-36m-x86_64-linux-gnu.so)
from python_pesq import pesq
ref, fs = sf.read('ref.wav')
deg, fs = sf.read('deg.wav')
print(pesq(ref,deg,fs))