Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
#	pesq/__init__.py
#	tests/test_pesq.py
  • Loading branch information
ludlows committed May 10, 2022
2 parents e0414ec + 04f0518 commit 0211dd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ $ pip install https://github.com/ludlows/python-pesq/archive/master.zip
$ pip3 install https://github.com/ludlows/python-pesq/archive/master.zip
```

# Usage for narrow-band and wide-band Modes
# Usage for narrowband and wideband Modes

Please note that the sampling rate (frequency) should be 16000 or 8000 (Hz).

And using 8000Hz is supported for narrow band only.
And using 8000Hz is supported for narrowband only.

The code supports error-handling behaviors now.

Expand Down
3 changes: 3 additions & 0 deletions tests/test_pesq.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def test():
score = pesq(ref=ref, deg=deg, fs=sample_rate, mode='nb')

assert score == 1.6072081327438354, score
return score


def test_no_utterances_nb_mode():
Expand All @@ -36,6 +37,7 @@ def test_no_utterances_nb_mode():
on_error=PesqError.RETURN_VALUES)

assert score == PesqError.NO_UTTERANCES_DETECTED, score
return score


def test_no_utterances_wb_mode():
Expand All @@ -50,6 +52,7 @@ def test_no_utterances_wb_mode():
on_error=PesqError.RETURN_VALUES)

assert score == PesqError.NO_UTTERANCES_DETECTED, score
return score


def test_pesq_batch():
Expand Down

0 comments on commit 0211dd7

Please sign in to comment.