{"id":13579568,"url":"https://github.com/henrymaas/AudioSlicer","last_synced_at":"2025-04-05T23:31:47.590Z","repository":{"id":40985388,"uuid":"141319113","full_name":"henrymaas/AudioSlicer","owner":"henrymaas","description":"Audio Slicer that uses silence detection to split .wav audio files into multiple .wav samples.","archived":false,"fork":false,"pushed_at":"2024-05-08T07:03:47.000Z","size":15,"stargazers_count":291,"open_issues_count":8,"forks_count":59,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-05T18:46:29.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henrymaas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-07-17T16:59:26.000Z","updated_at":"2024-10-29T18:23:17.000Z","dependencies_parsed_at":"2024-01-16T20:29:16.024Z","dependency_job_id":"e3decdd8-864c-4ff2-b2b7-0e91b5612cbe","html_url":"https://github.com/henrymaas/AudioSlicer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrymaas%2FAudioSlicer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrymaas%2FAudioSlicer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrymaas%2FAudioSlicer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrymaas%2FAudioSlicer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrymaas","download_url":"https://codeload.github.com/henrymaas/AudioSlicer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415783,"owners_count":20935383,"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","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":"2024-08-01T15:01:40.663Z","updated_at":"2025-04-05T23:31:42.580Z","avatar_url":"https://github.com/henrymaas.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003ch1\u003e AudioSlicer \u003c/h1\u003e\n\nA simple Audio Slicer in Python that can split `.wav` audio files into multiple `.wav` samples, based on silence detection. Also, it dumps a `.json` file that contains the periods of time in which the slice occours, in the following format: \n\n```json\n{\n    \"0\": [\"0:0:0\", \"0:0:3\"],\n    \"1\": [\"0:0:3\", \"0:0:10\"],\n    \"2\": [\"0:10:0\", \"0:0:22\"],\n    \"3\": [\"0:0:22\", \"0:0:32\"]\n}\n```\nThe file names will also contains the parts when the video were sliced, ex.: `sample01_0349_0401.wav`\n\n\n\u003ch3\u003e Attribution \u003c/h3\u003e\n\nI gratefully acknowledge the original code's contribution from `/andrewphillipdoss`\n\n\n\u003ch3\u003e AI Adaptation \u003c/h3\u003e\nThis project will turn into a neural network which can detect audio silence and split the files.\nIt will also needs to learn to detect 'breathing noises' from the dictator and remove from it.\n\n\n\u003ch2\u003e Requirements: \u003c/h2\u003e\n\n+ Python 3.11.0\n+ numpy - 1.24.1\n+ scypi - 1.10.0\n+ tqdm - 4.64.1\n\n\n\u003ch2\u003e Usage \u003c/h2\u003e\n\n1. Edit `AudioSeg.py` and change the \u003cb\u003einput_file\u003c/b\u003e (full path to your original .wav file) and \u003cb\u003eoutput_dir\u003c/b\u003e (folder path to the destination of the audio splits).\n2. Run python -m AudioSeg.py\n\u003cbr/\u003e\u003cbr/\u003e\n\n\u003e [!NOTE]\n\u003e Please note that in order for your audio file to be cut into samples, it should contain periods of \"silence\". If you are trying to extract voice samples from a song, for example, it may not work as expected.\n\u003cbr /\u003e\u003cbr /\u003e\n\u003eDepending on the level of noise in your audio, the algorithm may skip the silence windows, resulting in missed cuts. Ensure that your audio is free from unwanted noise and that the silences are clearly defined. You can adjust the parameters of \u003e\u003e \n\u003cb\u003emin_silence_length\u003c/b\u003e, \u003cb\u003esilence_threshold\u003c/b\u003e, and \u003cb\u003estep_duration\u003c/b\u003e to modify the length, amplitude, and duration of the silence window in order to better match your audio\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrymaas%2FAudioSlicer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrymaas%2FAudioSlicer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrymaas%2FAudioSlicer/lists"}