{"id":16725295,"url":"https://github.com/unfor19/audacity-scripting","last_synced_at":"2025-03-15T15:15:08.279Z","repository":{"id":212352992,"uuid":"731073667","full_name":"unfor19/audacity-scripting","owner":"unfor19","description":"A Python package for managing Audacity programmatically (automatically).","archived":false,"fork":false,"pushed_at":"2023-12-30T19:42:41.000Z","size":7068,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T05:17:46.621Z","etag":null,"topics":["audacity","audacity-macros","automatically","automation","scripting"],"latest_commit_sha":null,"homepage":"https://meirg.co.il","language":"Python","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/unfor19.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-12-13T09:52:58.000Z","updated_at":"2024-05-30T15:27:02.000Z","dependencies_parsed_at":"2023-12-21T00:57:08.639Z","dependency_job_id":"77ecb018-55d9-46e2-b93f-d50354824388","html_url":"https://github.com/unfor19/audacity-scripting","commit_stats":null,"previous_names":["unfor19/audacity-scripting"],"tags_count":14,"template":true,"template_full_name":"unfor19/python-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Faudacity-scripting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Faudacity-scripting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Faudacity-scripting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfor19%2Faudacity-scripting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unfor19","download_url":"https://codeload.github.com/unfor19/audacity-scripting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243746234,"owners_count":20341203,"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":["audacity","audacity-macros","automatically","automation","scripting"],"created_at":"2024-10-12T22:48:43.399Z","updated_at":"2025-03-15T15:15:08.259Z","avatar_url":"https://github.com/unfor19.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# audacity-scripting\n\n\u003e **IMPORTANT**: This is still a Work In Progress (WIP), some features might not be stable.\n\n[![PyPI](https://img.shields.io/pypi/v/audacity-scripting?label=PyPi)](https://pypi.org/project/audacity-scripting)\n\nA Python package for automating Audacity tasks based on [Audacity's Scripting Reference](https://manual.audacityteam.org/man/scripting_reference.html).\n\nhttps://github.com/unfor19/audacity-scripting/assets/15122452/080e772c-3e40-424b-87ce-c2ac0dd75570\n\n\u003e Music by Sergio Prosvirini from Pixabay\n\n## Requirements\n\n- Install [Python 3.9+](https://www.python.org/downloads/)\n- Install [Audacity 3.4.2+](https://www.audacityteam.org/download/)\n- Audacity - Enable [mod-script-pipe](https://manual.audacityteam.org/man/scripting.html)\n  - Run Audacity\n  - Go into Edit \u003e Preferences \u003e Modules\n  - Choose mod-script-pipe (which should show New) and change that to Enabled.\n  - Restart Audacity\n  - Check that it now does show Enabled.\n  - This establishes that Audacity is finding mod-script pipe and that the version is compatible.\n\n## Installation\n\nSupported OS: Windows, Linux, and macOS\n\n```\npython -m pip install audacity-scripting\n```\n\n## Features\n\n- [x] Remove spaces between clips - Removes spaces in all tracks for a given project absolute path `/path/to/my_project.aup3`\n- [x] Add labels to clips\n- [ ] Clean silence\n- [ ] Normalize audio\n- [ ] End Goal - Prepare videos for voice-clone-finetuning-vits\n\n\u003c!-- available_commands_end --\u003e\n\n## Getting Started\n\nAll the commands assume that the _Audacity_ application is up and running; That is mandatory as we communicate with [_Audacity_'s pipe](https://manual.audacityteam.org/man/scripting.html) to execute all the commands.\n\n\u003e **NOTE**: See the [GitHub Actions Tests Workflow](https://github.com/unfor19/audacity-scripting/actions/workflows/test.yml) to check it in action.\n\n### Available Commands\n\nAuto-generated by [unfor19/replacer-action](https://github.com/marketplace/actions/replacer-action); see [readme.yml](https://github.com/unfor19/audacity-scripting/blob/master/.github/workflows/readme.yml)\n\n\u003c!-- available_commands_start --\u003e\n\n```\nUsage: audacity-scripting [OPTIONS] COMMAND [ARGS]...\n\n  No confirmation prompts\n\nOptions:\n  -ci, --ci  Use this flag to avoid confirmation prompts\n  --help     Show this message and exit.\n\nCommands:\n  add-labels     Alias: al Add labels to clips in a given project\n  clean-spaces   Alias: cs Clean spaces between clips in a given project\n  do-command     Alias: dc - Execute a raw command in Audacity\n  testing        This is for testing purposes only\n  version-print  Get the version from the version file.\n```\n\n### Remove spaces between clips\n\nThis command copies the original file and removes spaces (gaps) between audio clips from the copied file.\n\n```bash\naudacity_scripting clean-spaces --file_path \"/path/to/my_project.aup3\"\n```\n\n### Send a command to Audacity\n\nSend a command to Audacity according to [Audacity's Scripting Reference](https://manual.audacityteam.org/man/scripting_reference.html).\n\n```bash\naudacity_scripting do-command --command \"Select: Tracks=0.0 Start=0.0 End=0.0\"\n```\n\n## Known Issues\n\n- macOS prints Audacity's server logs (`Server sending`, `Read failed on fifo, quitting`, etc.) - documented in [JOURNEY.md](./JOURNEY.md)\n\n## References\n\n- [GitHub Issue - Audacity Remove spaces between clips](https://github.com/audacity/audacity/issues/3924)\n- [SourceForge Issue - Audacity pipes](https://sourceforge.net/p/audacity/mailman/audacity-devel/thread/CAJhgUZ1DOvHMie7KHJ45EuDztw-8WJM8Qd0d%2BNfkQaEje%3D-7Lg%40mail.gmail.com/)\n- [GitHub Actions Windows Pipes Discussion](https://github.com/orgs/community/discussions/40540)\n- [Audacity pipes issue on Windows](https://forum.audacityteam.org/t/different-errors-running-pipe-test/65305/40)\n- [Python and Windows named pipes on Stackoverflow](https://stackoverflow.com/questions/48542644/python-and-windows-named-pipes)\n\n## Authors\n\nCreated and maintained by [Meir Gabay](https://github.com/unfor19)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/unfor19/audacity-scripting/blob/main/LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfor19%2Faudacity-scripting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funfor19%2Faudacity-scripting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfor19%2Faudacity-scripting/lists"}