{"id":27010591,"url":"https://github.com/superkogito/pydiogment","last_synced_at":"2025-09-21T00:30:51.709Z","repository":{"id":40969654,"uuid":"226846055","full_name":"SuperKogito/pydiogment","owner":"SuperKogito","description":":mega: Python library for audio augmentation","archived":false,"fork":false,"pushed_at":"2023-07-06T21:48:22.000Z","size":92989,"stargazers_count":84,"open_issues_count":13,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-22T06:51:30.942Z","etag":null,"topics":["audio","audio-effects","audio-processing","augmentation","deep-learning","machine-learning","python","sound","sound-processing"],"latest_commit_sha":null,"homepage":"https://superkogito.github.io/pydiogment/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperKogito.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-12-09T10:34:32.000Z","updated_at":"2025-04-23T11:20:49.000Z","dependencies_parsed_at":"2024-01-08T12:17:49.899Z","dependency_job_id":null,"html_url":"https://github.com/SuperKogito/pydiogment","commit_stats":{"total_commits":123,"total_committers":5,"mean_commits":24.6,"dds":0.3414634146341463,"last_synced_commit":"074543dc9483b450653f8a00c8279bf1eb873199"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SuperKogito/pydiogment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperKogito%2Fpydiogment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperKogito%2Fpydiogment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperKogito%2Fpydiogment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperKogito%2Fpydiogment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperKogito","download_url":"https://codeload.github.com/SuperKogito/pydiogment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperKogito%2Fpydiogment/sbom","scorecard":{"id":135770,"data":{"date":"2025-08-04","repo":{"name":"github.com/SuperKogito/pydiogment","commit":"074543dc9483b450653f8a00c8279bf1eb873199"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":1.7,"checks":[{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"11 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","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T06:27:50.906Z","repository_id":40969654,"created_at":"2025-08-16T06:27:50.906Z","updated_at":"2025-08-16T06:27:50.906Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276179249,"owners_count":25598565,"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-09-20T02:00:10.207Z","response_time":63,"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":["audio","audio-effects","audio-processing","augmentation","deep-learning","machine-learning","python","sound","sound-processing"],"created_at":"2025-04-04T11:05:44.735Z","updated_at":"2025-09-21T00:30:51.659Z","avatar_url":"https://github.com/SuperKogito.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/SuperKogito/pydiogment/blob/master/docs/icon.png?raw=true\"\u003e\n\u003c/p\u003e\n\n:bell:\tPydiogment\n==========\n\n[![Build Status](https://travis-ci.org/SuperKogito/pydiogment.svg?branch=master)](https://travis-ci.org/SuperKogito/pydiogment) [![Build status](https://ci.appveyor.com/api/projects/status/bnxaa6dw82cyhl5h?svg=true)](https://ci.appveyor.com/project/SuperKogito/pydiogment) [![Documentation Status](https://readthedocs.org/projects/pydiogment/badge/?version=latest)](https://pydiogment.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-BSD%203--Clause%20License%20(Revised)%20-blue)](https://github.com/SuperKogito/pydiogment/blob/master/LICENSE) [![Python](https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7-blue)](https://www.python.org/doc/versions/) [![Coverage Status](https://codecov.io/gh/SuperKogito/pydiogment/graph/badge.svg)](https://codecov.io/gh/SuperKogito/pydiogment) [![Coverage Status](https://coveralls.io/repos/github/SuperKogito/pydiogment/badge.svg?branch=master)](https://coveralls.io/github/SuperKogito/pydiogment?branch=master) [![CodeFactor](https://www.codefactor.io/repository/github/superkogito/pydiogment/badge/master)](https://www.codefactor.io/repository/github/superkogito/pydiogment/overview/master)\n\n**Pydiogment** aims to simplify audio augmentation. It generates multiple audio files based on a starting mono audio file. The library can generates files with higher speed, slower, and different tones etc.\n\n:inbox_tray: Installation\n============\n\nDependencies\n------------\n\n**Pydiogment** requires:\n\n-\t[Python](https://www.python.org/download/releases/3.0/) (\u003e= 3.5)  \n-\t[NumPy](https://numpy.org/) (\u003e= 1.17.2)\n  \n-\t[SciPy](https://www.scipy.org/)  (\u003e= 1.3.1)\n\n- [FFmpeg](https://www.ffmpeg.org/)\n\n### On Linux\nOn Linux you can use the following commands to get the libraries:\n- Numpy: `pip install numpy`\n- Scipy:  `pip install scipy`\n- FFmpeg: `sudo apt install ffmpeg`\n\n### On Windows\nOn Windows you can use the following installation binaries:\n- Numpy: https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy or if you have Python already installed you can use install it using `pip3 install numpy`\n- Scipy: https://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy\n- FFmpeg: https://ffmpeg.org/download.html#build-windows\n\n### On MacOS\nOn MacOs, use homebrew to install the packages:\n- Numpy:  `brew install numpy --with-python3`\n- Scipy:  You need to first install a compilation tool like Gfortran using homebrew `brew install gfortran` when it's done, install Scipy `pip install scipy`\nfor more information and guidelines you can check this link: https://github.com/scipy/scipy/blob/master/INSTALL.rst.txt#mac-os-x\n- FFmpeg: `brew install ffmpeg`\n\n\nInstallation\n-------------\nIf you already have a working installation of [NumPy](https://numpy.org/) and [SciPy](https://www.scipy.org/) , you can simply install **Pydiogment** using pip:\n\n```\npip install pydiogment\n```\nTo update an existing version of  **Pydiogment**, use:\n```\npip install -U pydiogment\n```\n\n:bulb:  How to use\n==========\n\n- ## Amplitude related augmentation\n  - ### Apply a fade in and fade out effect\n    ```python3\n    from pydiogment.auga import fade_in_and_out\n\n    test_file = \"path/test.wav\"\n    fade_in_and_out(test_file)\n    ```\n\n  - ### Apply gain to file\n    ```python3\n    from pydiogment.auga import apply_gain\n\n    test_file = \"path/test.wav\"\n    apply_gain(test_file, -100)\n    apply_gain(test_file, -50)\n    ```\n\n  - ### Add Random Gaussian Noise based on SNR to file\n    ```python3\n    from pydiogment.auga import add_noise\n\n    test_file = \"path/test.wav\"\n    add_noise(test_file, 10)\n    ```\n\n\n- ## Frequency related augmentation\n  - ### Change file tone\n    ```python3\n    from pydiogment.augf import change_tone\n\n    test_file = \"path/test.wav\"\n    change_tone(test_file, 0.9)\n    change_tone(test_file, 1.1)\n    ```\n\n- ## Time related augmentation    \n  - #### Slow-down/ speed-up file\n    ```python3\n    from pydiogment.augt import slowdown, speed\n\n    test_file = \"path/test.wav\"\n    slowdown(test_file, 0.8)\n    speed(test_file, 1.2)\n    ```\n\n  - ### Apply random cropping to the file\n    ```python3\n    from pydiogment.augt import random_cropping\n\n    test_file = \"path/test.wav\"\n    random_cropping(test_file, 1)\n    ```\n\n  - ### Change shift data on the time axis in a certain direction\n    ```python3\n    from pydiogment.augt import shift_time\n\n    test_file = \"path/test.wav\"\n    shift_time(test_file, 1, \"right\")\n    shift_time(test_file, 1, \"left\")\n    ```\n- ## Audio files format \nThis library currently supports mono WAV files only.\n\n:bookmark_tabs:  Documentation  \n==============\nA thorough documentation of the library is available under [pydiogment.readthedocs.io](https://pydiogment.readthedocs.io/en/latest/index.html).\n\n:construction_worker:\t Contributing and bugs report      \n============\n\nContributions are welcome and encouraged. To learn more about how to contribute to **Pydiogment** please refer to the [Contributing guidelines](https://github.com/SuperKogito/pydiogment/blob/master/CONTRIBUTING.md)\n\nTo report bugs, request a feature or just ask for help you can refer to the [issues](https://github.com/SuperKogito/pydiogment/issuesif) section.\nBefore reporting a bug please make sure it is not addressed by an older issue and make sure to add your operating system type, its version number and the versions of the dependencies used.\n\n:tada:\tAcknowledgment and credits     \n============================\n- The test file used in the pytests is [OSR_us_000_0060_8k.wav](https://www.voiptroubleshooter.com/open_speech/american/OSR_us_000_0060_8k.wav) from the [Open Speech Repository](https://www.voiptroubleshooter.com/open_speech/american.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperkogito%2Fpydiogment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperkogito%2Fpydiogment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperkogito%2Fpydiogment/lists"}