{"id":33226222,"url":"https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder","last_synced_at":"2025-11-21T10:01:16.810Z","repository":{"id":8734021,"uuid":"59571046","full_name":"JeremyCCHsu/Python-Wrapper-for-World-Vocoder","owner":"JeremyCCHsu","description":"A Python wrapper for the high-quality vocoder \"World\"","archived":false,"fork":false,"pushed_at":"2025-01-21T15:45:00.000Z","size":139,"stargazers_count":769,"open_issues_count":22,"forks_count":124,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-11-12T23:48:14.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Cython","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JeremyCCHsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-24T12:25:34.000Z","updated_at":"2025-11-06T06:10:35.000Z","dependencies_parsed_at":"2024-01-08T12:14:35.780Z","dependency_job_id":null,"html_url":"https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder","commit_stats":{"total_commits":137,"total_committers":11,"mean_commits":"12.454545454545455","dds":0.291970802919708,"last_synced_commit":"c999deaf9add59ebdaff4979408a669518bba389"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/JeremyCCHsu/Python-Wrapper-for-World-Vocoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremyCCHsu%2FPython-Wrapper-for-World-Vocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremyCCHsu%2FPython-Wrapper-for-World-Vocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremyCCHsu%2FPython-Wrapper-for-World-Vocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremyCCHsu%2FPython-Wrapper-for-World-Vocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeremyCCHsu","download_url":"https://codeload.github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeremyCCHsu%2FPython-Wrapper-for-World-Vocoder/sbom","scorecard":{"id":72166,"data":{"date":"2025-08-11","repo":{"name":"github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder","commit":"9e6cd3e6b2f813d1ffb910d1a0b18ab53f669086"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 7/29 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T04:02:34.859Z","repository_id":8734021,"created_at":"2025-08-15T04:02:34.859Z","updated_at":"2025-08-15T04:02:34.859Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284580808,"owners_count":27029624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-15T02:00:06.050Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-16T16:00:48.815Z","updated_at":"2025-11-21T10:01:16.801Z","avatar_url":"https://github.com/JeremyCCHsu.png","language":"Cython","readme":"# PyWORLD - A Python wrapper of WORLD Vocoder\n\n\n| **`Linux`** | **`Windows`** |\n|-----------------|-----------|\n| [![Build Status](https://app.travis-ci.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder.svg?branch=master)](https://app.travis-ci.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder) | [![Build Status](https://ci.appveyor.com/api/projects/status/github/JeremyCCHsu/Python-Wrapper-for-World-Vocoder?svg=true)](https://ci.appveyor.com/project/JeremyCCHsu/python-wrapper-for-world-vocoder) |\n\n\n\n\nWORLD Vocoder is a fast and high-quality vocoder\nwhich parameterizes speech into three components:\n\n  1. `f0`: Pitch contour\n  2. `sp`: Harmonic spectral envelope\n  3. `ap`: Aperiodic spectral envelope (relative to the harmonic spectral envelope)\n\nIt can also (re)synthesize speech using these features (see examples below).\n\nFor more information, please visit Dr. Morise's [WORLD repository](https://github.com/mmorise/World)\nand the [official website of WORLD Vocoder](http://ml.cs.yamanashi.ac.jp/world/english)\n\n\n## APIs\n\n### Vocoder Functions\n```python\nimport pyworld as pw\n_f0, t = pw.dio(x, fs)    # raw pitch extractor\nf0 = pw.stonemask(x, _f0, t, fs)  # pitch refinement\nsp = pw.cheaptrick(x, f0, t, fs)  # extract smoothed spectrogram\nap = pw.d4c(x, f0, t, fs)         # extract aperiodicity\n\ny = pw.synthesize(f0, sp, ap, fs) # synthesize an utterance using the parameters\n```\n\n\n### Utility\n```python\n# Convert speech into features (using default arguments)\nf0, sp, ap = pw.wav2world(x, fs)\n```\n\u003cbr/\u003e\n\nYou can change the default arguments of the function, too.\nSee more info using `help`.\n\n\n## Installation\n\n### Using Pip\n`pip install pyworld`\n\u003cbr/\u003e\n\n### Building from Source\n```bash\ngit clone https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder.git\ncd Python-Wrapper-for-World-Vocoder\ngit submodule update --init\npip install -U pip\npip install -r requirements.txt\npip install .\n```\nIt will automatically `git clone` Morise's World Vocoder (C++ version).\u003cbr/\u003e\n(It seems to me that using `virtualenv` or `conda` is the best practice.)\u003cbr/\u003e\n\u003cbr/\u003e\n\n### Installation Validation\nYou can validate installation by running\n```bash\ncd demo\npython demo.py\n```\nto see if you get results in `test/` direcotry.\n(Please avoid writing and executing codes in the `Python-Wrapper-for-World-Vocoder` folder for now.)\u003cbr/\u003e\n\n### Environment/Dependencies\n- Operating systems\n  - Linux Ubuntu 14.04+\n  - Windows (thanks to [wuaalb](https://github.com/wuaalb))\n  - WSL\n- Python\n  - 3.7+\n\nYou can install dependencies these by `pip install -r requirements.txt`\n\n\n\n## Notice\n- WORLD vocoder is designed for speech sampled ≥ 16 kHz.\n  Applying WORLD to 8 kHz speech will fail.\n  See a possible workaround [here](https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder/issues/54).\n- When the SNR is low, extracting pitch using `harvest` instead of `dio`\n  is a better option.\n\n\n## Troubleshooting\n1. Upgrade your Cython version to 0.24.\u003cbr/\u003e\n   (I failed to build it on Cython 0.20.1post0)\u003cbr/\u003e\n   It'll require you to download Cython form http://cython.org/\u003cbr/\u003e\n   Unzip it, and `python setup.py install` it.\u003cbr/\u003e\n   (I tried `pip install Cython` but the upgrade didn't seem correct)\u003cbr/\u003e\n   (Again, add `--user` if you don't have root access.)\n2. Upon executing `demo/demo.py`, the following code might be needed in some environments (e.g. when you're working on a remote Linux server):\u003cbr/\u003e\n\n ```python\n import matplotlib\n matplotlib.use('Agg')\n ```\n3. If you encounter `library not found: sndfile` error upon executing `demo.py`,\n   you might have to install it by `apt-get install libsoundfile1`.\n   You can also replace `pysoundfile` with `scipy` or `librosa`, but some modification is needed:\n   - librosa:\n     - load(fiilename, dtype=np.float64)\n     - output.write_wav(filename, wav, fs)\n     - remember to pass `dtype` argument to ensure that the method gives you a `double`.\n   - scipy:\n     - You'll have to write a customized utility function based on the following methods\n     - scipy.io.wavfile.read (but this gives you `short`)\n     - scipy.io.wavfile.write\n\n4. If you have installation issue on Windows, I probably could not provide\n   much help because my development environment is Ubuntu\n   and Windows Subsystem for Linux ([read this if you are interested in installing it](https://github.com/JeremyCCHsu/wsl)).\n\n\n### Other Installation Suggestions\n1. Use `pip install .` is safer and you can easily uninstall pyworld by `pip uninstall pyworld`\n  - For Mac users: You might need to do `MACOSX_DEPLOYMENT_TARGET=10.9 pip install .` See [issue](https://github.com/SeanNaren/warp-ctc/issues/129#issuecomment-502349652).\n2. Another way to install pyworld is via\u003cbr/\u003e\n   `python setup.py install`\u003cbr/\u003e\n   - Add `--user` if you don't have root access\u003cbr/\u003e\n   - Add `--record install.txt` to track the installation dir\u003cbr/\u003e\n3. If you just want to try out some experiments, execute\u003cbr/\u003e\n  `python setup.py build_ext --inplace`\u003cbr/\u003e\n  Then you can use PyWorld from this directory.\u003cbr/\u003e\n  You can also copy the resulting **pyworld.so** (pyworld.{arch}.pyd on Windows) file to\n  `~/.local/lib/python2.7/site-packages` (or corresponding Windows directory)\n  so that you can use it everywhere like an installed package.\u003cbr/\u003e\n  Alternatively you can copy/symlink the compiled files using pip, e.g. `pip install -e .`\n\n\n\n## Acknowledgement\nThank all contributors ([tats-u](https://github.com/tats-u), [wuaalb](https://github.com/wuaalb), [r9y9](https://github.com/r9y9), [rikrd](https://github.com/rikrd), [kudan2510](https://github.com/kundan2510)) for making this repo better and [sotelo](https://github.com/sotelo) whose [world.py](https://github.com/sotelo/world.py) inspired this repo.\u003cbr/\u003e\n","funding_links":[],"categories":["Audio Related Packages","Cython"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJeremyCCHsu%2FPython-Wrapper-for-World-Vocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJeremyCCHsu%2FPython-Wrapper-for-World-Vocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJeremyCCHsu%2FPython-Wrapper-for-World-Vocoder/lists"}