{"id":26028667,"url":"https://github.com/accraze/stablepackgen","last_synced_at":"2025-10-17T14:21:00.020Z","repository":{"id":280076420,"uuid":"938536014","full_name":"accraze/StablePackGen","owner":"accraze","description":"AI-powered audio sample pack generator using Stable Audio Open. Create complete, categorized, and precisely-timed sample libraries for music production with agentic workflows.","archived":false,"fork":false,"pushed_at":"2025-03-01T04:06:48.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T05:18:03.829Z","etag":null,"topics":["agentic-workflow","ai","audio-generator","generative-audio"],"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/accraze.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":"2025-02-25T05:32:42.000Z","updated_at":"2025-03-01T04:02:08.000Z","dependencies_parsed_at":"2025-03-01T05:28:25.542Z","dependency_job_id":null,"html_url":"https://github.com/accraze/StablePackGen","commit_stats":null,"previous_names":["accraze/stablepackgen"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2FStablePackGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2FStablePackGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2FStablePackGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2FStablePackGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/accraze","download_url":"https://codeload.github.com/accraze/StablePackGen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250932,"owners_count":20096898,"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":["agentic-workflow","ai","audio-generator","generative-audio"],"created_at":"2025-03-06T17:19:16.713Z","updated_at":"2025-10-17T14:20:59.964Z","avatar_url":"https://github.com/accraze.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StablePackGen\n\nStablePackGen is an AI-powered audio sample pack generator that creates complete, ready-to-use sample libraries using Stability AI's Stable Audio Open model.\n\n## Features\n\n- **Complete Sample Packs**: Generate entire collections of audio samples organized by category\n- **Precise Duration Control**: Automatically trim samples to exact lengths for perfect timing in your productions\n- **Category Organization**: Samples are sorted into logical categories (kicks, snares, hats, percussion, synths, pads, FX)\n- **High-Quality Audio**: Leverages Stable Audio Open for professional-quality sound design\n- **LLM-Guided Generation**: Uses Claude to help craft detailed prompts for each sample\n\n## Requirements\n\n- Python 3.8+\n- PyTorch\n- CUDA-capable GPU (recommended)\n\n## Installation\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/yourusername/StablePackGen.git\ncd StablePackGen\n```\n\n2. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n3. Set up your Anthropic API key:\n```bash\nexport ANTHROPIC_API_KEY='your-api-key-here'\n```\n\n## Usage\n\nTo generate a complete sample pack:\n\n```bash\npython stablepackgen.py\n```\n\nBy default, this will create a techno sample pack with the following categories:\n- Kicks\n- Snares\n- Hi-hats\n- Percussion\n- Synths\n- Pads\n- FX\n\nAll samples will be saved in their respective category folders in the current directory.\n\n## Customization\n\n### Modifying Sample Types\n\nTo customize the types of samples generated, edit the `generate_sample_pack_plan()` function in the script. You can:\n\n- Add new sample categories\n- Modify existing prompts\n- Change duration settings\n- Customize output file paths\n\n### Changing Genres\n\nThe system is currently set up for techno, but you can easily modify the prompts for other genres like:\n- House\n- Ambient\n- Trap\n- Lo-fi\n- Drum \u0026 Bass\n\n### Generation Settings\n\nYou can adjust the generation settings in the `agent_step()` method:\n- `cfg_scale`: Controls how closely the generation follows the prompt (higher = more faithful)\n- `steps`: Number of diffusion steps (higher = better quality but slower)\n\n## How It Works\n\nStablePackGen uses a combination of:\n\n1. **LangGraph Workflow**: Orchestrates the sample generation process\n2. **Claude AI**: Helps craft detailed prompts for each sample type\n3. **Stable Audio Open**: Generates high-quality audio based on text prompts\n4. **Audio Processing**: Processes and trims samples to exact durations\n\n## Requirements.txt\n\n```\ntorch\ntorchaudio\neinops\nlanggraph\nlangchain-core\nlangchain-anthropic\nanthropic\nstable-audio-tools\nlibrosa\nsoundfile\nnumpy\ntyping-extensions\n```\n\n## License\n\nMIT\n\n## Acknowledgments\n\n- [Stability AI](https://stability.ai/) for the Stable Audio Open model\n- [Anthropic](https://www.anthropic.com/) for the Claude AI model\n- [LangChain](https://www.langchain.com/) for the LangGraph workflow framework","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccraze%2Fstablepackgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccraze%2Fstablepackgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccraze%2Fstablepackgen/lists"}