Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
[!TIP]
This is a prebuilt version of pyworld for multiple platforms.
There are no differences from pyworld except for some migration from some deprecated APIs and the addition of type hints.
WORLD Vocoder is a fast and high-quality vocoder which parameterizes speech into three components:
f0
: Pitch contoursp
: Harmonic spectral envelopeap
: Aperiodic spectral envelope (relative to the harmonic spectral envelope)It can also (re)synthesize speech using these features (see examples below).
For more information, please visit Dr. Morise's WORLD repository and the official website of WORLD Vocoder
import pyworld as pw
_f0, t = pw.dio(x, fs) # raw pitch extractor
f0 = pw.stonemask(x, _f0, t, fs) # pitch refinement
sp = pw.cheaptrick(x, f0, t, fs) # extract smoothed spectrogram
ap = pw.d4c(x, f0, t, fs) # extract aperiodicity
y = pw.synthesize(f0, sp, ap, fs) # synthesize an utterance using the parameters
# Convert speech into features (using default arguments)
f0, sp, ap = pw.wav2world(x, fs)
You can change the default arguments of the function, too.
See more info using help
.
pip install pyworld-prebuilt
git clone https://github.com/tsukumijima/pyworld-prebuilt.git
cd pyworld-prebuilt
git submodule update --init
pip install -U pip
pip install -r requirements.txt
pip install .
It will automatically git clone
Morise's World Vocoder (C++ version).
(It seems to me that using virtualenv
or conda
is the best practice.)
You can validate installation by running
cd demo
python demo.py
to see if you get results in test/
direcotry.
(Please avoid writing and executing codes in the pyworld-prebuilt
folder for now.)
You can install dependencies these by pip install -r requirements.txt
harvest
instead of dio
is a better option.python setup.py install
it.pip install Cython
but the upgrade didn't seem correct)--user
if you don't have root access.)demo/demo.py
, the following code might be needed in some environments (e.g. when you're working on a remote Linux server):import matplotlib
matplotlib.use('Agg')
If you encounter library not found: sndfile
error upon executing demo.py
,
you might have to install it by apt-get install libsoundfile1
.
You can also replace pysoundfile
with scipy
or librosa
, but some modification is needed:
dtype
argument to ensure that the method gives you a double
.short
)If you have installation issue on Windows, I probably could not provide much help because my development environment is Ubuntu and Windows Subsystem for Linux (read this if you are interested in installing it).
pip install .
is safer and you can easily uninstall pyworld by pip uninstall pyworld-prebuilt
MACOSX_DEPLOYMENT_TARGET=10.9 pip install .
See issue.python setup.py install
--user
if you don't have root access--record install.txt
to track the installation dirpython setup.py build_ext --inplace
~/.local/lib/python2.7/site-packages
(or corresponding Windows directory)
so that you can use it everywhere like an installed package.pip install -e .
Thank all contributors (tats-u, wuaalb, r9y9, rikrd, kudan2510) for making this repo better and sotelo whose world.py inspired this repo.
FAQs
PyWorld: a Python wrapper for WORLD vocoder
We found that pyworld-prebuilt 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.