{"openapi":"3.1.0","info":{"title":"gamesounds.ai","version":"0.1.0","description":"A game sound-effects bank filed by event, with 1 to 8 variants each, loudness-matched, every sound CC0-1.0. Read-only, no authentication, open CORS: an agent (or a browser) calls this API directly, or uses the gamesounds npm package's runtime and CLI, which call the same endpoints.","license":{"name":"CC0-1.0"}},"servers":[{"url":"https://gamesounds.ai"}],"paths":{"/api/v1/categories":{"get":{"operationId":"listCategories","summary":"The full taxonomy","description":"Every category, both taxonomy levels, each with its search aliases.","tags":["catalogue"],"responses":{"200":{"description":"The taxonomy","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Slash-separated: \"movement/jump\", or a bare top-level branch like \"movement\"."},"title":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"parent":{"type":"string","nullable":true},"count":{"type":"integer","description":"Sounds actually filed here (own leaf plus every descendant leaf for a branch). The taxonomy keeps categories with no sounds yet - a future style or origin may fill them - so this is always present and honest, never omitted to imply content that is not there."}}}}}}}}}}}},"/api/v1/sounds":{"get":{"operationId":"searchSounds","summary":"Search sounds","description":"Free-text search over title, description, category, tags and category aliases (e.g. \"jewel\" finds collect/gem).","tags":["catalogue"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Free text, e.g. \"jump\" or \"8-bit coin\"."},{"name":"category","in":"query","schema":{"type":"string"},"description":"A category id, e.g. \"movement/jump\"."},{"name":"style","in":"query","schema":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]}},{"name":"loop","in":"query","schema":{"type":"boolean"},"description":"Phase 1 ships no loopable sound; true always returns none."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"cursor","in":"query","schema":{"type":"integer","minimum":0},"description":"Offset into the ranked result list."}],"responses":{"200":{"description":"A ranked page of sounds","content":{"application/json":{"schema":{"type":"object","properties":{"sounds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"string"},"style":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]},"tags":{"type":"array","items":{"type":"string"}},"title":{"type":"string"},"description":{"type":"string"},"license":{"type":"string","description":"SPDX id. The launch catalogue is \"CC0-1.0\" only."},"attribution":{"type":"string","nullable":true},"source":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"author":{"type":"string"},"pack":{"type":"string"}}},"origin":{"type":"string","enum":["chipvoice","generated"],"description":"\"chipvoice\" is rendered by chipvoice's own renderSfx (real chip emulation). \"generated\" is rendered by sfx-engine, gamesounds' own deterministic procedural synthesis engine. Both are our own DSP; no third-party sounds and no external generation API, ever."},"recipe":{"type":"object","nullable":true,"description":"How to render this sound again, deterministically. For origin \"chipvoice\": a chip/channel/note/instrument recipe. For origin \"generated\": { engine: \"sfx-engine@1\", model, params, seed, sampleRate } - the sound's first variant's own recipe. Every variant of a generated sound also carries its own recipe (with its own seed) on `variants[n].recipe`."},"loop":{"type":"object","nullable":true,"properties":{"start":{"type":"number"},"end":{"type":"number"}},"description":"Phase 1 ships no loop-flagged sound; always null."},"variants":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","description":"1-based position among the sound's variants."},"sha256":{"type":"string","description":"SHA-256 of the canonical PCM/WAV render this variant was encoded from (the variant's own identity)."},"duration":{"type":"number"},"files":{"type":"object","properties":{"ogg":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"mp3":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"wav":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}}},"description":"Each format is content-addressed by its OWN bytes, not borrowed from a sibling format."},"measure":{"type":"object","properties":{"lufs":{"type":"number"},"peakDb":{"type":"number"},"duration":{"type":"number"}},"description":"Loudness and level, measured on this variant's own shipped wav."},"peaks":{"type":"array","items":{"type":"number"},"description":"96 points, 0 to 1, for an instant waveform."},"recipe":{"type":"object","nullable":true,"description":"How to render THIS exact variant again, deterministically: { engine: \"sfx-engine@1\", model, params, seed, sampleRate }, with this variant's own seed. Present on every origin: \"generated\" variant. Absent on origin: \"chipvoice\" variants, which rely on the sound's own top-level `recipe` instead (chipvoice's seed ladder is not itself part of the recipe shape)."}}},"minItems":1,"maxItems":8},"measure":{"type":"object","properties":{"lufs":{"type":"number"},"peakDb":{"type":"number"},"duration":{"type":"number"}}},"rank":{"type":"object","properties":{"score":{"type":"number"},"votes":{"type":"integer"},"auditions":{"type":"integer"},"kept":{"type":"integer"},"replaced":{"type":"integer"}},"description":"Phase 1 always writes zeros; ranking and voting are phase 2."}}}},"total":{"type":"integer"},"nextCursor":{"type":"integer","nullable":true}}}}}},"422":{"description":"Invalid cursor, style or limit"}}}},"/api/v1/sounds/{id}":{"get":{"operationId":"getSound","summary":"Fetch one sound","tags":["catalogue"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The sound","content":{"application/json":{"schema":{"type":"object","properties":{"sound":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"string"},"style":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]},"tags":{"type":"array","items":{"type":"string"}},"title":{"type":"string"},"description":{"type":"string"},"license":{"type":"string","description":"SPDX id. The launch catalogue is \"CC0-1.0\" only."},"attribution":{"type":"string","nullable":true},"source":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"author":{"type":"string"},"pack":{"type":"string"}}},"origin":{"type":"string","enum":["chipvoice","generated"],"description":"\"chipvoice\" is rendered by chipvoice's own renderSfx (real chip emulation). \"generated\" is rendered by sfx-engine, gamesounds' own deterministic procedural synthesis engine. Both are our own DSP; no third-party sounds and no external generation API, ever."},"recipe":{"type":"object","nullable":true,"description":"How to render this sound again, deterministically. For origin \"chipvoice\": a chip/channel/note/instrument recipe. For origin \"generated\": { engine: \"sfx-engine@1\", model, params, seed, sampleRate } - the sound's first variant's own recipe. Every variant of a generated sound also carries its own recipe (with its own seed) on `variants[n].recipe`."},"loop":{"type":"object","nullable":true,"properties":{"start":{"type":"number"},"end":{"type":"number"}},"description":"Phase 1 ships no loop-flagged sound; always null."},"variants":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","description":"1-based position among the sound's variants."},"sha256":{"type":"string","description":"SHA-256 of the canonical PCM/WAV render this variant was encoded from (the variant's own identity)."},"duration":{"type":"number"},"files":{"type":"object","properties":{"ogg":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"mp3":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"wav":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}}},"description":"Each format is content-addressed by its OWN bytes, not borrowed from a sibling format."},"measure":{"type":"object","properties":{"lufs":{"type":"number"},"peakDb":{"type":"number"},"duration":{"type":"number"}},"description":"Loudness and level, measured on this variant's own shipped wav."},"peaks":{"type":"array","items":{"type":"number"},"description":"96 points, 0 to 1, for an instant waveform."},"recipe":{"type":"object","nullable":true,"description":"How to render THIS exact variant again, deterministically: { engine: \"sfx-engine@1\", model, params, seed, sampleRate }, with this variant's own seed. Present on every origin: \"generated\" variant. Absent on origin: \"chipvoice\" variants, which rely on the sound's own top-level `recipe` instead (chipvoice's seed ladder is not itself part of the recipe shape)."}}},"minItems":1,"maxItems":8},"measure":{"type":"object","properties":{"lufs":{"type":"number"},"peakDb":{"type":"number"},"duration":{"type":"number"}}},"rank":{"type":"object","properties":{"score":{"type":"number"},"votes":{"type":"integer"},"auditions":{"type":"integer"},"kept":{"type":"integer"},"replaced":{"type":"integer"}},"description":"Phase 1 always writes zeros; ranking and voting are phase 2."}}}}}}}},"404":{"description":"No such sound"}}}},"/api/v1/sounds/{id}.zip":{"get":{"operationId":"downloadSound","summary":"Download every variant of one sound","description":"A zip of every variant's ogg, mp3 and wav files, plus a LICENSE.txt.","tags":["catalogue"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"application/zip","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"No such sound"}}}},"/api/v1/resolve":{"post":{"operationId":"resolveEvents","summary":"Resolve a list of game events to sounds","description":"Accepts a fully qualified category id (\"ui/confirm\"), a bare leaf name (\"jump\"), or \"leaf/tag\" (\"hit/heavy\"). Returns one sound per event (deterministic: highest-ranked, tie-broken by sound id) and a ready-to-write manifest.","tags":["catalogue"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["events"],"properties":{"events":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":64},"style":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]},"formats":{"type":"array","items":{"type":"string","enum":["ogg","mp3","wav"]},"minItems":1,"maxItems":2,"description":"Which content-addressed formats to put in files (formats[0]) and fallback (formats[1]). Defaults to [ogg, mp3]."},"exclude":{"type":"array","items":{"type":"string"},"maxItems":64,"description":"Sound ids to skip when picking a candidate - used to resolve 'the next best sound, not this one'."}}}}}},"responses":{"200":{"description":"Resolved (check `unresolved` for events with no match)","content":{"application/json":{"schema":{"type":"object","properties":{"manifest":{"type":"object","description":"sounds.json shape, valid against GET /schema/manifest-1.json.","properties":{"$schema":{"type":"string"},"version":{"type":"integer","enum":[1]},"base":{"type":"string"},"events":{"type":"object","additionalProperties":{"type":"object","properties":{"sound":{"type":"string"},"files":{"type":"array","items":{"type":"string"}},"fallback":{"type":"array","items":{"type":"string"}}}}},"credits":{"type":"array","items":{"type":"object","properties":{"sound":{"type":"string"},"license":{"type":"string"},"author":{"type":"string"},"source":{"type":"string"},"attribution":{"type":"string","nullable":true}}}}}},"resolved":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"sound":{"type":"string","nullable":true},"category":{"type":"string","nullable":true}}}},"unresolved":{"type":"array","items":{"type":"string"},"description":"Events that matched no category or had no candidate."}}}}}},"422":{"description":"Invalid body"},"429":{"description":"Too many requests from this address"}}}},"/api/v1/packs":{"get":{"operationId":"listPacks","summary":"Every starter pack","tags":["packs"],"responses":{"200":{"description":"The packs","content":{"application/json":{"schema":{"type":"object","properties":{"packs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"style":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]},"events":{"type":"array","items":{"type":"string"}}}}}}}}}}}}},"/api/v1/packs/{id}":{"get":{"operationId":"getPack","summary":"One starter pack, resolved","tags":["packs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The pack and its resolution","content":{"application/json":{"schema":{"type":"object","properties":{"pack":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"style":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]},"events":{"type":"array","items":{"type":"string"}}}},"manifest":{"type":"object","description":"sounds.json shape, valid against GET /schema/manifest-1.json.","properties":{"$schema":{"type":"string"},"version":{"type":"integer","enum":[1]},"base":{"type":"string"},"events":{"type":"object","additionalProperties":{"type":"object","properties":{"sound":{"type":"string"},"files":{"type":"array","items":{"type":"string"}},"fallback":{"type":"array","items":{"type":"string"}}}}},"credits":{"type":"array","items":{"type":"object","properties":{"sound":{"type":"string"},"license":{"type":"string"},"author":{"type":"string"},"source":{"type":"string"},"attribution":{"type":"string","nullable":true}}}}}},"resolved":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"sound":{"type":"string","nullable":true},"category":{"type":"string","nullable":true}}}},"unresolved":{"type":"array","items":{"type":"string"},"description":"Events that matched no category or had no candidate."}}}}}},"404":{"description":"No such pack"}}}},"/api/v1/packs/{id}.zip":{"get":{"operationId":"downloadPack","summary":"Download a whole pack","description":"A zip with one folder per event, each holding its resolved sound's every variant and format, plus a LICENSE.txt.","tags":["packs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"application/zip","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"No such pack"},"500":{"description":"The pack has an event no sound currently resolves"}}}},"/schema/manifest-1.json":{"get":{"operationId":"getManifestSchema","summary":"The sounds.json JSON Schema","tags":["catalogue"],"responses":{"200":{"description":"The schema","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"Category":{"type":"object","properties":{"id":{"type":"string","description":"Slash-separated: \"movement/jump\", or a bare top-level branch like \"movement\"."},"title":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"parent":{"type":"string","nullable":true},"count":{"type":"integer","description":"Sounds actually filed here (own leaf plus every descendant leaf for a branch). The taxonomy keeps categories with no sounds yet - a future style or origin may fill them - so this is always present and honest, never omitted to imply content that is not there."}}},"Variant":{"type":"object","properties":{"n":{"type":"integer","description":"1-based position among the sound's variants."},"sha256":{"type":"string","description":"SHA-256 of the canonical PCM/WAV render this variant was encoded from (the variant's own identity)."},"duration":{"type":"number"},"files":{"type":"object","properties":{"ogg":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"mp3":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"wav":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}}},"description":"Each format is content-addressed by its OWN bytes, not borrowed from a sibling format."},"measure":{"type":"object","properties":{"lufs":{"type":"number"},"peakDb":{"type":"number"},"duration":{"type":"number"}},"description":"Loudness and level, measured on this variant's own shipped wav."},"peaks":{"type":"array","items":{"type":"number"},"description":"96 points, 0 to 1, for an instant waveform."},"recipe":{"type":"object","nullable":true,"description":"How to render THIS exact variant again, deterministically: { engine: \"sfx-engine@1\", model, params, seed, sampleRate }, with this variant's own seed. Present on every origin: \"generated\" variant. Absent on origin: \"chipvoice\" variants, which rely on the sound's own top-level `recipe` instead (chipvoice's seed ladder is not itself part of the recipe shape)."}}},"Sound":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"string"},"style":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]},"tags":{"type":"array","items":{"type":"string"}},"title":{"type":"string"},"description":{"type":"string"},"license":{"type":"string","description":"SPDX id. The launch catalogue is \"CC0-1.0\" only."},"attribution":{"type":"string","nullable":true},"source":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"author":{"type":"string"},"pack":{"type":"string"}}},"origin":{"type":"string","enum":["chipvoice","generated"],"description":"\"chipvoice\" is rendered by chipvoice's own renderSfx (real chip emulation). \"generated\" is rendered by sfx-engine, gamesounds' own deterministic procedural synthesis engine. Both are our own DSP; no third-party sounds and no external generation API, ever."},"recipe":{"type":"object","nullable":true,"description":"How to render this sound again, deterministically. For origin \"chipvoice\": a chip/channel/note/instrument recipe. For origin \"generated\": { engine: \"sfx-engine@1\", model, params, seed, sampleRate } - the sound's first variant's own recipe. Every variant of a generated sound also carries its own recipe (with its own seed) on `variants[n].recipe`."},"loop":{"type":"object","nullable":true,"properties":{"start":{"type":"number"},"end":{"type":"number"}},"description":"Phase 1 ships no loop-flagged sound; always null."},"variants":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","description":"1-based position among the sound's variants."},"sha256":{"type":"string","description":"SHA-256 of the canonical PCM/WAV render this variant was encoded from (the variant's own identity)."},"duration":{"type":"number"},"files":{"type":"object","properties":{"ogg":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"mp3":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}},"wav":{"type":"object","properties":{"sha256":{"type":"string","description":"SHA-256 of this exact file's own bytes."},"bytes":{"type":"integer"},"url":{"type":"string","description":"Content-addressed, immutable path: /f/<sha256>.<ext>."}}}},"description":"Each format is content-addressed by its OWN bytes, not borrowed from a sibling format."},"measure":{"type":"object","properties":{"lufs":{"type":"number"},"peakDb":{"type":"number"},"duration":{"type":"number"}},"description":"Loudness and level, measured on this variant's own shipped wav."},"peaks":{"type":"array","items":{"type":"number"},"description":"96 points, 0 to 1, for an instant waveform."},"recipe":{"type":"object","nullable":true,"description":"How to render THIS exact variant again, deterministically: { engine: \"sfx-engine@1\", model, params, seed, sampleRate }, with this variant's own seed. Present on every origin: \"generated\" variant. Absent on origin: \"chipvoice\" variants, which rely on the sound's own top-level `recipe` instead (chipvoice's seed ladder is not itself part of the recipe shape)."}}},"minItems":1,"maxItems":8},"measure":{"type":"object","properties":{"lufs":{"type":"number"},"peakDb":{"type":"number"},"duration":{"type":"number"}}},"rank":{"type":"object","properties":{"score":{"type":"number"},"votes":{"type":"integer"},"auditions":{"type":"integer"},"kept":{"type":"integer"},"replaced":{"type":"integer"}},"description":"Phase 1 always writes zeros; ranking and voting are phase 2."}}},"Manifest":{"type":"object","description":"sounds.json shape, valid against GET /schema/manifest-1.json.","properties":{"$schema":{"type":"string"},"version":{"type":"integer","enum":[1]},"base":{"type":"string"},"events":{"type":"object","additionalProperties":{"type":"object","properties":{"sound":{"type":"string"},"files":{"type":"array","items":{"type":"string"}},"fallback":{"type":"array","items":{"type":"string"}}}}},"credits":{"type":"array","items":{"type":"object","properties":{"sound":{"type":"string"},"license":{"type":"string"},"author":{"type":"string"},"source":{"type":"string"},"attribution":{"type":"string","nullable":true}}}}}},"Pack":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"style":{"type":"string","enum":["8bit","16bit","arcade","cartoon","realistic","scifi","fantasy","horror","cozy","minimal-ui"]},"events":{"type":"array","items":{"type":"string"}}}}}}}