{"id":28033021,"url":"https://github.com/ptrpaws/augaudio","last_synced_at":"2026-06-11T20:25:46.935Z","repository":{"id":62560036,"uuid":"280503450","full_name":"ptrpaws/augaudio","owner":"ptrpaws","description":"A simple audio data augmentation package","archived":false,"fork":false,"pushed_at":"2025-07-13T04:55:38.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-17T02:20:26.892Z","etag":null,"topics":["audio","data-augmentation","librosa","python","python3","simple"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ptrpaws.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-17T18:58:58.000Z","updated_at":"2025-07-13T04:55:42.000Z","dependencies_parsed_at":"2025-08-27T15:41:51.519Z","dependency_job_id":"1a4e66e1-0344-44c9-9171-f0a3866e1979","html_url":"https://github.com/ptrpaws/augaudio","commit_stats":null,"previous_names":["ptrpaws/augaudio","basti564/augaudio"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ptrpaws/augaudio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrpaws%2Faugaudio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrpaws%2Faugaudio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrpaws%2Faugaudio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrpaws%2Faugaudio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptrpaws","download_url":"https://codeload.github.com/ptrpaws/augaudio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrpaws%2Faugaudio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34217312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","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":["audio","data-augmentation","librosa","python","python3","simple"],"created_at":"2025-05-11T09:10:09.356Z","updated_at":"2026-06-11T20:25:46.918Z","avatar_url":"https://github.com/ptrpaws.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# augaudio\nThis package contains multiple simple audio data augmentations in order to increase/test the robustness of neural networks.\n\n###### Original\n\u003cimg src=\"https://user-images.githubusercontent.com/34898868/87811710-60d15000-c85f-11ea-8bda-da417d84b2ba.png\" width=\"600\"\u003e\n\n###### Gaussian Noise\n\u003cimg src=\"https://user-images.githubusercontent.com/34898868/87811713-629b1380-c85f-11ea-8c7a-f059138b8048.png\" width=\"600\"\u003e\n\n###### Pitch Shift\n\u003cimg src=\"https://user-images.githubusercontent.com/34898868/87811726-6464d700-c85f-11ea-9f31-f58aa7e91785.png\" width=\"600\"\u003e\n\n###### Time Stretch\n\u003cimg src=\"https://user-images.githubusercontent.com/34898868/87811730-65960400-c85f-11ea-93af-828c98aa9f51.png\" width=\"600\"\u003e\n\n###### Crush\n\u003cimg src=\"https://user-images.githubusercontent.com/34898868/87811733-66c73100-c85f-11ea-8bc0-5f4b2c5e7c79.png\" width=\"600\"\u003e\n\n## Installation\n\nYou can install this package via\n`pip install augaudio`\n\n## Usage\n\n### Example usage:\n```python\nimport librosa\nimport augaudio\nimport soundfile\n\ny, sr = librosa.load('audio.wav')\n\naugmented = augaudio.augment(y, 1, 4)\n\nsoundfile.write('augmented.wav', augmented, sr)\n```\n#### Directly access one of the augmentations:\n```python\n...\naugmented = augaudio.GaussianNoise(y, 4)\n...\n```\n#### Chain augmentations together:\n```python\n...\naugmented = augaudio.GaussianNoise(augaudio.TimeStretch(y, 2), 4)\n...\n```\n#### Iterate over augmentations:\n```python\n...\nfor augmentation in range(4):\n  for intensity in range(1,10):\n    augmented = augaudio.augment(y, augmentation, intensity)\n    soundfile.write(str(augmentation) + '-' + str(intensity) + '.wav', augmented, sr)\n...\n```\n### Command Line Usage:\n#### Single File:\n`augaudio /path/to/audio.wav 0 5`\n#### Complete Folder:\n`augaudio /path/to/input 0 5 /path/to/output`\n\n## Augmentations\n| Augmentation | index | Description | negative intensity |\n| --- | --- | --- | --- |\n| Augmentations | -2 | Applies /multiple/ random augmentations | available |\n| Random | -1 | Applies random augmentation | available |\n| GaussianNoise | 0 | Applies gaussian noise to the audio data | n/a |\n| PitchShift | 1 | Shifts the pitch of the audio data | available |\n| TimeStretch | 2 | Stretches the time of the audio data | n/a |\n| Crush | 3 | Crushes details by applying and reversing a pitch shift | available |\n\n## Copyright Notice\n```\nCopyright 2020 Ellie\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrpaws%2Faugaudio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptrpaws%2Faugaudio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrpaws%2Faugaudio/lists"}