Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vBaiCai/python-pesq
A python package for calculating the PESQ.
https://github.com/vBaiCai/python-pesq
Last synced: 3 months ago
JSON representation
A python package for calculating the PESQ.
- Host: GitHub
- URL: https://github.com/vBaiCai/python-pesq
- Owner: vBaiCai
- License: mit
- Created: 2018-12-13T09:18:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T12:05:46.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T18:16:48.718Z (4 months ago)
- Language: Python
- Size: 62.5 KB
- Stars: 352
- Watchers: 11
- Forks: 69
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-speech-enhancement - [Code
README
# 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 pesqref, 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`.