{"id":17626478,"url":"https://github.com/mpirescarvalho/audio-splitter","last_synced_at":"2025-05-05T15:45:37.242Z","repository":{"id":228118998,"uuid":"367725069","full_name":"mpirescarvalho/audio-splitter","owner":"mpirescarvalho","description":"Simple package to split a merged audio track to parts by silence analysis 🎶","archived":false,"fork":false,"pushed_at":"2023-10-17T00:38:06.000Z","size":70,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T07:03:01.708Z","etag":null,"topics":["audio","audio-split","audio-splitter","ffmpeg","merged","merged-audio","song-splitter","songs","split","tracks"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mpirescarvalho.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":"2021-05-15T20:35:30.000Z","updated_at":"2024-11-22T05:19:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7777e37-7e88-4e57-98fa-89bd34b81194","html_url":"https://github.com/mpirescarvalho/audio-splitter","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"7e8da5147fc003fee315b4b8ab5d218b75488718"},"previous_names":["mpirescarvalho/audio-splitter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpirescarvalho%2Faudio-splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpirescarvalho%2Faudio-splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpirescarvalho%2Faudio-splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpirescarvalho%2Faudio-splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpirescarvalho","download_url":"https://codeload.github.com/mpirescarvalho/audio-splitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252288960,"owners_count":21724326,"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":["audio","audio-split","audio-splitter","ffmpeg","merged","merged-audio","song-splitter","songs","split","tracks"],"created_at":"2024-10-22T23:05:30.267Z","updated_at":"2025-05-05T15:45:37.217Z","avatar_url":"https://github.com/mpirescarvalho.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Audio Splitter\r\n\r\nSimple package to split a merged audio track to parts by silence analysis.\r\n\r\n## Prerequisites\r\n\r\nTo use this project, you need to have a local installation of FFmpeg present on your system. You can download it from https://www.ffmpeg.org/download.html\r\n\r\n# Installation\r\n\r\n```sh\r\n$ npm i audio-splitter\r\n```\r\n\r\n# Example\r\n\r\n## Auto split\r\n\r\n```js\r\nconst { splitAudio } = require(\"audio-splitter\");\r\n\r\nsplitAudio({\r\n\tmergedTrack: \"path/to/file.mp3\",\r\n\toutputDir: \"path/to/outdir/\",\r\n});\r\n```\r\n\r\n# API\r\n\r\n## splitAudio(params)\r\n\r\nAutomatically split audio based on silence analysis.\r\n\r\n```typescript\r\n// split audio params\r\ntype SplitAudioParams = {\r\n\tmergedTrack: string; // source track\r\n\toutputDir: string; // directory, where to put the tracks (with all the required slashes)\r\n\tffmpegPath?: string; // path to ffmpeg.exe\r\n\tartist?: string; // meta info, optional\r\n\talbum?: string; // meta info, optional\r\n\ttrackNames?: string[]; // meta info, optional\r\n\tmaxNoiseLevel?: number; // silence is defined below this dB value\r\n\tminSilenceLength?: number; // (sec) we are searching for silence intervals at least of this lenght\r\n\tminSongLength?: number; // (sec) if a track is sorter than this, we merge it to the previous track\r\n\tfastStart?: boolean; // optional flag for faststart\r\n};\r\n```\r\n\r\n## extractAudio(params)\r\n\r\nManually extract a track\r\n\r\n```typescript\r\n// extract audio params\r\ntype ExtractAudioParams = {\r\n\tffmpegPath: string; // path to ffmpeg.exe\r\n\tinputTrack: string; // source track\r\n\tstart: number | string; // start seconds in the source\r\n\tlength: number; // duration to extract\r\n\tartist?: string; // meta info, optional\r\n\talbum?: string; // meta info, optional\r\n\toutputTrack: string; // output track\r\n\tfastStart?: boolean; // optional flag for faststart\r\n};\r\n```\r\n\r\n## Contributing\r\n\r\n1. Fork it (\u003chttps://github.com/mpirescarvalho/audio-splitter/fork\u003e)\r\n2. Create your feature branch (`git checkout -b feature/awesome`)\r\n3. Commit your changes (`git commit -am 'Add awesome feature'`)\r\n4. Push to the branch (`git push origin feature/awesome`)\r\n5. Create a new Pull Request\r\n\r\n## Contact\r\n\r\n\u003ca href=\"https://github.com/mpirescarvalho\"\u003e\r\n  \u003cimg alt=\"made by Marcelo Carvalho\" src=\"https://img.shields.io/badge/made%20by-Marcelo Carvalho-%237519C1\"\u003e\r\n\u003c/a\u003e\r\n\u003ca href=\"mailto:mpirescarvalho17@gmail.com\"\u003e\r\n  \u003cimg alt=\"made by Marcelo Carvalho\" src=\"https://img.shields.io/badge/-mpirescarvalho17@gmail.com-c14438?style=flat-square\u0026logo=Gmail\u0026logoColor=white\u0026link=mailto:mpirescarvalho17@gmail.com\" /\u003e\r\n\u003c/a\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpirescarvalho%2Faudio-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpirescarvalho%2Faudio-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpirescarvalho%2Faudio-splitter/lists"}