{"id":21277766,"url":"https://github.com/reececomo/assetpack-plugin-audiosprite","last_synced_at":"2026-02-14T02:42:39.774Z","repository":{"id":245046308,"uuid":"817137251","full_name":"reececomo/assetpack-plugin-audiosprite","owner":"reececomo","description":"🗜️ Powerful audiosprite compression for sound assets","archived":false,"fork":false,"pushed_at":"2024-06-19T07:07:13.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T10:52:56.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.com/assetpack-plugin-audiosprite","language":"JavaScript","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/reececomo.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":"2024-06-19T05:23:31.000Z","updated_at":"2025-01-16T19:45:52.000Z","dependencies_parsed_at":"2024-06-19T10:16:03.826Z","dependency_job_id":"1b26841a-4014-4110-a174-ba717e1967f2","html_url":"https://github.com/reececomo/assetpack-plugin-audiosprite","commit_stats":null,"previous_names":["reececomo/assetpack-plugin-audiosprite"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/reececomo/assetpack-plugin-audiosprite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reececomo%2Fassetpack-plugin-audiosprite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reececomo%2Fassetpack-plugin-audiosprite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reececomo%2Fassetpack-plugin-audiosprite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reececomo%2Fassetpack-plugin-audiosprite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reececomo","download_url":"https://codeload.github.com/reececomo/assetpack-plugin-audiosprite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reececomo%2Fassetpack-plugin-audiosprite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29432562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T02:20:56.896Z","status":"ssl_error","status_checked_at":"2026-02-14T02:11:29.478Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-21T10:07:41.069Z","updated_at":"2026-02-14T02:42:39.743Z","avatar_url":"https://github.com/reececomo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🙉 assetpack-plugin-audiosprite [![NPM version](https://img.shields.io/npm/v/assetpack-plugin-audiosprite.svg?style=flat-square)](https://www.npmjs.com/package/assetpack-plugin-audiosprite)\n\n[AssetPack](https://github.com/pixijs/assetpack) plugin for generating audio sprites using [audiosprite](https://github.com/tonistiigi/audiosprite).\n\n### Installation\n\n```\nnpm install assetpack-plugin-audiosprite --save-dev\n```\n\n\u003e [!IMPORTANT]\n\u003e Requires `ffmpeg` to be installed in PATH\n\n\u003e [!NOTE]\n\u003e Using a fork of `audiosprite`? Just switch to the `v0.8.0+custom-audiosprite` branch:\n\u003e\n\u003e ```js\n\u003e \"devDependencies\": {\n\u003e   \"assetpack-plugin-audiosprite\": \"reececomo/assetpack-plugin-audiosprite#v0.8.0+custom-audiosprite\",\n\u003e   \"audiosprite\": \"\u003cyour fork goes here\u003e\",\n\u003e   // ...\n\u003e },\n\u003e ```\n\n## Basic usage\n\nUse the `{audiosprite}` tag (or set your own) to combine a directory of audio files into a single audiosprite.\n\n```js\n// .assetpack.js\nconst { audiosprite } = require('assetpack-plugin-audiosprite');\n\nmodule.exports = {\n  entry: './raw-assets/',\n  output: './assets/',\n\n  plugins: {\n    audiosprite: audiosprite(),\n  },\n};\n```\n\n### Options\n\n```js\naudiosprite({\n  // use a custom tag  (default: 'audiosprite')\n  tags: { audiosprite: 'sfx' },\n\n  // whether assets are nested in their namespace \"abc/abc.json\" (default: true)\n  nested: false,\n\n  // limit which sound files should be imported\n  imports: ['aac', 'ac3', 'aiff', 'caf', 'flac', 'mp3',\n            'mp4', 'm4a', 'ogg', 'opus', 'wav', 'webm'],\n\n  // modify emitted JSON data\n  outputJson: {\n    path: undefined,\n    extension: '.json',\n    minify: true,\n    transform: (jsonData, jsonPath, resourcePaths) =\u003e jsonData,\n  },\n\n  // any option that can be passed to Audiosprite can be passed here.\n  audiosprite: {\n    export: 'ogg,mp3',\n    bitrate: 64,\n    samplerate: 32_000,\n    channels: 1,\n    // ...\n  }\n})\n```\n\n## Example - [PixiJS SoundSprite](https://pixijs.io/sound/docs/SoundSprite.html)\n\nGiven these files:\n\n```\nassets/\n  sound_effects{audiosprite}/\n    cry.wav\n    laugh.mp3\n    sneeze.ogg\n```\n\nYou can import packed assets like so:\n\n```ts\nimport { Assets } from 'pixi.js';\n\n// load assets\nconst myJson = await Assets.load('assets/sound_effects.json');\nconst mySound = await Assets.load('assets/sound_effects.{ogg,m4a,mp3,ac3}');\nmySound.addSprites(myJson.spritemap);\n\n// play sounds\nmySound.play('cry');\n```\n\n\u003e [!IMPORTANT]\n\u003e Combine with the `sound` utility from `@pixi/sound` for features like independent volume control.\n\n```ts\nimport { sound } from '@pixi/sound';\n\n// or use @pixi/sound 'sound' for features like independent volume control\nsound.add('sound_effects', mySound);\nsound.play('sound_effects', {\n  sprite: 'cry',\n  volume: 0.5,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freececomo%2Fassetpack-plugin-audiosprite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freececomo%2Fassetpack-plugin-audiosprite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freececomo%2Fassetpack-plugin-audiosprite/lists"}