-
Notifications
You must be signed in to change notification settings - Fork 70
/
README.md
42 lines (34 loc) · 1.17 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# PyPESQ (WIP)
Pypesq is a python wrapper for the PESQ score calculation C routine. It only can be used in evaluation purpose.
## INSTALL
```
pip install https://github.com/vBaiCai/python-pesq/archive/master.zip
```
or
```
pip install pypesq
```
## HOW TO USE
```python
import soundfile as sf
from pypesq import pesq
ref, sr = sf.read(...)
deg, sr = sf.read(...)
score = pesq(ref, deg, sr)
print(score)
```
# NOTICE:
OWNERS of PESQ ARE:
1. British Telecommunications plc (BT), all rights assigned to Psytechnics Limited
2. Royal KPN NV, all rights assigned to OPTICOM GmbH
# REFERENCES:
* [ITU-T P.862](https://www.itu.int/rec/T-REC-P.862/en)
* [C_Extensions_NumPy_arrays](https://scipy-cookbook.readthedocs.io/items/C_Extensions_NumPy_arrays.html)
* [kennethreitz/setup.py](https://github.com/kennethreitz/setup.py)
* [massover/accel](https://github.com/massover/accel)
# TODO
1. More test.
2. I'm not sure whether to add the wav normalization.
# HINT
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`.