{"id":22160277,"url":"https://github.com/zabir-nabil/audioperm","last_synced_at":"2025-07-26T09:31:28.058Z","repository":{"id":57412520,"uuid":"383625004","full_name":"zabir-nabil/audioperm","owner":"zabir-nabil","description":"A python library for generating different permutations of audible segments from audio files.","archived":false,"fork":false,"pushed_at":"2022-06-13T06:50:53.000Z","size":7917,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T08:18:44.544Z","etag":null,"topics":["audio-augmentation","audio-classification","audio-processing","augmentation","speaker-recognition","speech-augmentation"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/zabir-nabil.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}},"created_at":"2021-07-06T23:52:55.000Z","updated_at":"2024-05-31T15:32:54.000Z","dependencies_parsed_at":"2022-09-09T20:01:49.280Z","dependency_job_id":null,"html_url":"https://github.com/zabir-nabil/audioperm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zabir-nabil/audioperm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zabir-nabil%2Faudioperm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zabir-nabil%2Faudioperm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zabir-nabil%2Faudioperm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zabir-nabil%2Faudioperm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zabir-nabil","download_url":"https://codeload.github.com/zabir-nabil/audioperm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zabir-nabil%2Faudioperm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267145508,"owners_count":24042650,"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-07-26T02:00:08.937Z","response_time":62,"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-augmentation","audio-classification","audio-processing","augmentation","speaker-recognition","speech-augmentation"],"created_at":"2024-12-02T04:07:15.182Z","updated_at":"2025-07-26T09:31:26.437Z","avatar_url":"https://github.com/zabir-nabil.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\"\u003e\u003cimg src=\"docs/images/logo.png\" alt=\"audioperm\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eAudioperm, a python library for generating different permutations of audible segments from audio files.\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pypi.org/project/audioperm/\" style=\"text-decoration: none;\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/audioperm\" alt=\"License\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/audioperm/\" style=\"text-decoration: none;\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/audioperm?color=%2334D058\u0026label=pypi%20package\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/audioperm/\" style=\"text-decoration: none;\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/l/audioperm?style=flat\" alt=\"License\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://colab.research.google.com/github/zabir-nabil/audioperm/blob/main/notebooks/audioperm_demo.ipynb\" style=\"text-decoration: none;\"\u003e\n  \u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n---\n### Audioperm\nA python library for generating different permutations of audible segments from audio files. \n\n```console\npip install audioperm\n```\n\n#### Use:\n\n* Silence Removal from Audio\n* Audio / Speech augmentation\n* Word segmentation\n* Word level permutation generation\n* Add new synthetic data for deep learning\n* Speaker recognition, Speaker verification, Audio classification, Audio fingerprinting\n\n\n**Documentation**: \u003ca href=\"https://zabir-nabil.github.io/audioperm/\" target=\"_blank\"\u003ehttps://zabir-nabil.github.io/audioperm/\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/zabir-nabil/audioperm\" target=\"_blank\"\u003ehttps://github.com/zabir-nabil/audioperm\u003c/a\u003e\n\n---\n\n#### Word segmentation\n\n```python\nfrom audioperm import AudioPerm\nfrom audioperm.utils import save_audio\n\nap = AudioPerm(\"i_love_cats.m4a\")\nlabel = \"i love cats\"\n\nwords = ap.word_segments()\nlabel_words = label.split()\n\nfor i, w in enumerate(words):\n  save_audio(w, label_words[i] + \".wav\")\n```\n\n```\ncats.wav  i_love_cats.m4a  i.wav  love.wav\n```\n\n#### Word-level permutation\n\n```python\nimport numpy as np\nfrom audioperm import AudioPerm\nfrom audioperm.utils import save_audio\n\nap = AudioPerm(\"i_love_cats.m4a\")\nap.word_segments(return_words=False)\nperm_sentences = ap.permute(n_permutations = 5)\n\nfor i, s in enumerate(perm_sentences):\n  save_audio(s, f\"perm_{i}.wav\")\n```\n\n```\ncats.wav\t   i.wav       perm_1.wav    perm_4.wav\ni_love_cats.m4a    love.wav    perm_2.wav    perm_0.wav  \nperm_3.wav\n```\n\n#### `permutations` on multiple files\n\n```python\nfrom audioperm import read_audio, word_segments, permutations\n\nap = read_audio([\"bangla_demo.wav\", \"i_love_cats.m4a\"])\nout = word_segments(ap)\nperms = permutations(out, n_permutations = 5)\n```\n\n#### Fixed-length segments\n\n* Generate fixed length audible segments (with permutation/augmentation)\n\n```python\nfrom audioperm import fixed_len_segments\nfixed_len_segments(\"bangla_demo.wav\", return_segments = False, save_path = \"fls_out\", save = True, segment_size = 0.5)\nout = fixed_len_segments(\"bangla_demo.wav\", return_segments = True, max_segments = 5, permute = True, save = False, segment_size = 0.5)\n```\n\n### Support\n\n\u003e **Tested with:** `python3.6` `python3.7` `python3.8`\n\n\u003e **Internal audio representation:** `PCM 16` `float32`\n\n\u003e **TO-DO:**\n - [ ] multi-channel audio\n - [ ] augmentation\n - [ ] multi-processing\n - [ ] gpu-support\n\n### Others\n\n\u003e **To run the code:** [Google Colab](https://colab.research.google.com/github/zabir-nabil/audioperm/blob/main/notebooks/audioperm_demo.ipynb)\n\n\u003e Any contribution is welcome. \n  - [Contributors](https://github.com/zabir-nabil/audioperm/graphs/contributors)\n  - [Contribution guide](https://github.com/zabir-nabil/audioperm/blob/main/CONTRIBUTE.md) \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzabir-nabil%2Faudioperm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzabir-nabil%2Faudioperm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzabir-nabil%2Faudioperm/lists"}