![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Implementation of the classical and extended Short Term Objective Intelligibility measures
Intelligibility measure which is highly correlated with the intelligibility of degraded speech signals, e.g., due to additive noise, single/multi-channel noise reduction, binary masking and vocoded speech as in CI simulations. The STOI-measure is intrusive, i.e., a function of the clean and degraded speech signals. STOI may be a good alternative to the speech intelligibility index (SII) or the speech transmission index (STI), when you are interested in the effect of nonlinear processing to noisy speech, e.g., noise reduction, binary masking algorithms, on speech intelligibility.
Description taken from Cees Taal's website
pip install pystoi
or
pip3 install pystoi
import soundfile as sf
from pystoi import stoi
clean, fs = sf.read('path/to/clean/audio')
denoised, fs = sf.read('path/to/denoised/audio')
# Clean and den should have the same length, and be 1D
d = stoi(clean, denoised, fs, extended=False)
sudo apt update
sudo apt install octave octave-signal
pip install oct2py
python -m pytest tests/test_python_octave.py
python -m pytest tests/test_stoi_octave.py
All the Matlab code in this repo is taken from or adapted from the code available here (STOI – Short-Time Objective Intelligibility Measure – ) written by Cees Taal.
Thanks to Cees Taal who open-sourced his Matlab implementation and enabled thorough testing of this python code.
If you want to run the tests, you will need Matlab, matlab.engine
(install instructions here) and matlab_wrapper
(install with pip install matlab_wrapper
).
The tests can only be ran under Python 2.7 as matlab.engine
and matlab_wrapper
are only compatible with Python2.7
Tests are passing at relative and absolute tolerance of 1e-3
, which is enough for the considered application (all the variability is coming from the resampling method when signals are not natively sampled at 10kHz).
Very big thanks to @gauss256 who translated all the matlab scripts to Octave, and wrote all the tests for it!
Any contribution are welcome~, specially to improve the execution speed of the code~ (thank you Przemek Pobrotyn for a 4x speed-up!) :
tests/
.transplant
for example)FAQs
Computes Short Term Objective Intelligibility measure
We found that pystoi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.