foley.index.taxonomy.seed#
Seed taxonomy data: curated phrases on real UCS rows, and the AudioSet overlap map.
The default UCS table is the shipped v8.2.1 master (data/ucs_master.json; #227,
#237). This seed is two things on top of it:
Curated phrases. Each row names a real master CatID and adds hand-written multi-word phrases (
"rain on window","door creak") that the master’s single-word synonyms lack;load_ucs_table()adds them to the master row.category/subcategoryare the master’s, verbatim (a test pins that).The offline fallback. When the master file is absent, these rows alone are the table, so a resolution still lands on a real CatID.
Every CatID here exists in UCS v8.2.1. The pre-master seed used invented ones
(WEATHRain, GLASBreak); LEGACY_CATIDS says where each one went, so a
record stamped with one still finds its row.
Module Attributes
The pre-master seed's invented CatIDs -> the real UCS v8.2.1 CatID that replaced each (#237). |
|
catid, category, subcategory (the master's), and extra lowercased phrases. |
|
AudioSet label NAME (lowercased) -> UCS CatID. |
- foley.index.taxonomy.seed.LEGACY_CATIDS: dict[str, str] = {'AMBNature': 'AMBForst', 'AMBUrban': 'AMBUrbn', 'ANMLBird': 'BIRDSong', 'CLOTHMove': 'CLOTHMvmt', 'COMMPhone': 'COMTelph', 'DESTGeneral': 'DESTRCrsh', 'DOORKnob': 'DOORHdwr', 'DOORMetal': 'DOORMetl', 'EXPLGeneral': 'EXPLReal', 'FIREGeneral': 'FIREBurn', 'FIREWhoosh': 'FIREWhsh', 'FOOTConc': 'FEETHmn', 'FOOTGravel': 'FEETHmn', 'FOOTWood': 'FEETHmn', 'GLASBreak': 'GLASBrk', 'GUIBeep': 'UIBeep', 'GUIWhoosh': 'UIMvmt', 'GUNHandgun': 'GUNPis', 'LIQDPour': 'WATRPour', 'MACHGeneral': 'MACHMisc', 'PAPRHandle': 'PAPRHndl', 'VEHCarExt': 'VEHCar', 'VEHCarInt': 'VEHInt', 'WATRRun': 'WATRFlow', 'WATRSplash': 'WATRSplsh', 'WEATHRain': 'RAIN', 'WEATHThunder': 'THUN', 'WEATHWind': 'WIND'}#
The pre-master seed’s invented CatIDs -> the real UCS v8.2.1 CatID that replaced each (#237).
IMPTGeneralhas none: UCS has no generic impact row.get()resolves them.
- foley.index.taxonomy.seed.SEED_AUDIOSET_UCS_MAP: list[dict] = [{'catid': 'DOORWood', 'mid': '/m/02dgv', 'name': 'door'}, {'catid': 'DOORMetl', 'mid': '/m/02y_763', 'name': 'sliding door'}, {'catid': 'BELLDoor', 'mid': '/m/03wwcy', 'name': 'doorbell'}, {'catid': 'RAIN', 'mid': '/m/06mb1', 'name': 'rain'}, {'catid': 'RAIN', 'mid': '/m/07r10fb', 'name': 'raindrop'}, {'catid': 'THUN', 'mid': '/m/0ngt1', 'name': 'thunder'}, {'catid': 'THUN', 'mid': '/m/0jb2l', 'name': 'thunderstorm'}, {'catid': 'WIND', 'mid': '/m/03m9d0z', 'name': 'wind'}, {'catid': 'FEETHmn', 'mid': '/m/07qann', 'name': 'walk, footsteps'}, {'catid': 'FIREBurn', 'mid': '/m/0jbk', 'name': 'fire'}, {'catid': 'FIREBurn', 'mid': '/m/07pc8k4', 'name': 'crackle'}, {'catid': 'WATRFlow', 'mid': '/m/0838f', 'name': 'water'}, {'catid': 'WATRSplsh', 'mid': '/m/07qlwh6', 'name': 'splash, splatter'}, {'catid': 'WATRPour', 'mid': '/m/07q0yl5', 'name': 'pour'}, {'catid': 'GLASBrk', 'mid': '/m/039jq', 'name': 'glass'}, {'catid': 'GLASBrk', 'mid': '/m/07rjwbb', 'name': 'shatter'}, {'catid': 'EXPLReal', 'mid': '/m/014zdl', 'name': 'explosion'}, {'catid': 'GUNPis', 'mid': '/m/032s66', 'name': 'gunshot, gunfire'}, {'catid': 'VEHCar', 'mid': '/m/07yv9', 'name': 'vehicle'}, {'catid': 'VEHCar', 'mid': '/m/0k4j', 'name': 'car'}, {'catid': 'VEHHorn', 'mid': '/m/0912c9', 'name': 'vehicle horn, honk'}, {'catid': 'ANMLDog', 'mid': '/m/0bt9lr', 'name': 'dog'}, {'catid': 'ANMLDog', 'mid': '/m/05tny_', 'name': 'bark'}, {'catid': 'ANMLCat', 'mid': '/m/01yrx', 'name': 'cat'}, {'catid': 'BIRDSong', 'mid': '/m/015p6', 'name': 'bird'}, {'catid': 'COMTelph', 'mid': '/m/07cx4', 'name': 'telephone'}]#
AudioSet label NAME (lowercased) -> UCS CatID.
midis best-effort (verify againstaudioset/ontology.jsonbefore trusting). Everycatidhere MUST exist in the UCS table:load_audioset_ucs_map()asserts this at load time.
- foley.index.taxonomy.seed.SEED_UCS_TABLE: list[dict] = [{'category': 'DOORS', 'catid': 'DOORWood', 'subcategory': 'WOOD', 'synonyms': ['wooden door', 'oak door', 'door creak', 'door open', 'door close', 'door slam']}, {'category': 'DOORS', 'catid': 'DOORMetl', 'subcategory': 'METAL', 'synonyms': ['metal door', 'steel door', 'hatch', 'cell door']}, {'category': 'DOORS', 'catid': 'DOORHdwr', 'subcategory': 'HARDWARE', 'synonyms': ['doorknob', 'door handle', 'latch', 'handle turn']}, {'category': 'RAIN', 'catid': 'RAIN', 'subcategory': 'GENERAL', 'synonyms': ['rain', 'rainfall', 'raining', 'rain on window', 'downpour', 'drizzle']}, {'category': 'WIND', 'catid': 'WIND', 'subcategory': 'GENERAL', 'synonyms': ['wind', 'gust', 'breeze', 'howling wind', 'windy']}, {'category': 'WEATHER', 'catid': 'THUN', 'subcategory': 'THUNDER', 'synonyms': ['thunder', 'thunderclap', 'thunderstorm', 'thunder crack', 'rumble']}, {'category': 'FOOTSTEPS', 'catid': 'FEETHmn', 'subcategory': 'HUMAN', 'synonyms': ['footsteps wood', 'walking wood floor', 'footfall wood', 'footsteps concrete', 'walking pavement', 'footsteps sidewalk', 'footsteps gravel', 'walking gravel', 'crunch gravel']}, {'category': 'DESTRUCTION', 'catid': 'DESTRCrsh', 'subcategory': 'CRASH & DEBRIS', 'synonyms': ['destruction', 'collapse', 'debris', 'rubble', 'demolition']}, {'category': 'GLASS', 'catid': 'GLASBrk', 'subcategory': 'BREAK', 'synonyms': ['glass break', 'glass shatter', 'shattering glass', 'broken glass']}, {'category': 'WATER', 'catid': 'WATRFlow', 'subcategory': 'FLOW', 'synonyms': ['running water', 'stream', 'faucet', 'tap water', 'flowing water']}, {'category': 'WATER', 'catid': 'WATRSplsh', 'subcategory': 'SPLASH', 'synonyms': ['splash', 'splashing', 'water splash', 'plop']}, {'category': 'WATER', 'catid': 'WATRPour', 'subcategory': 'POUR', 'synonyms': ['pour', 'pouring', 'glug', 'liquid pour']}, {'category': 'FIRE', 'catid': 'FIREBurn', 'subcategory': 'BURNING', 'synonyms': ['fire', 'flames', 'campfire', 'crackling fire', 'burning']}, {'category': 'FIRE', 'catid': 'FIREWhsh', 'subcategory': 'WHOOSH', 'synonyms': ['fire whoosh', 'flame burst', 'fireball', 'ignite whoosh']}, {'category': 'VEHICLES', 'catid': 'VEHInt', 'subcategory': 'INTERIOR', 'synonyms': ['car interior', 'in car', 'car cabin']}, {'category': 'VEHICLES', 'catid': 'VEHCar', 'subcategory': 'CAR', 'synonyms': ['car pass by', 'car exterior', 'car drive by', 'engine car']}, {'category': 'VEHICLES', 'catid': 'VEHHorn', 'subcategory': 'HORN', 'synonyms': ['car horn', 'honk', 'vehicle horn', 'beep horn']}, {'category': 'AMBIENCE', 'catid': 'AMBUrbn', 'subcategory': 'URBAN', 'synonyms': ['city ambience', 'street ambience', 'urban background', 'traffic ambience']}, {'category': 'AMBIENCE', 'catid': 'AMBForst', 'subcategory': 'FOREST', 'synonyms': ['nature ambience', 'forest ambience', 'outdoor ambience', 'birdsong bed']}, {'category': 'AMBIENCE', 'catid': 'AMBRoom', 'subcategory': 'ROOM TONE', 'synonyms': ['room tone', 'roomtone', 'interior ambience', 'quiet room']}, {'category': 'USER INTERFACE', 'catid': 'UIBeep', 'subcategory': 'BEEP', 'synonyms': ['ui beep', 'button', 'menu click', 'notification', 'ui blip']}, {'category': 'USER INTERFACE', 'catid': 'UIMvmt', 'subcategory': 'MOTION', 'synonyms': ['ui whoosh', 'swipe', 'ui swipe', 'transition whoosh']}, {'category': 'ANIMALS', 'catid': 'ANMLDog', 'subcategory': 'DOG', 'synonyms': ['dog', 'bark', 'dog bark', 'growl', 'whine dog']}, {'category': 'ANIMALS', 'catid': 'ANMLCat', 'subcategory': 'CAT DOMESTIC', 'synonyms': ['cat', 'meow', 'purr', 'cat meow']}, {'category': 'BIRDS', 'catid': 'BIRDSong', 'subcategory': 'SONGBIRD', 'synonyms': ['bird', 'birdsong', 'chirp', 'tweet', 'bird call']}, {'category': 'GUNS', 'catid': 'GUNPis', 'subcategory': 'PISTOL', 'synonyms': ['gunshot', 'pistol', 'handgun', 'gun fire', 'shot']}, {'category': 'EXPLOSIONS', 'catid': 'EXPLReal', 'subcategory': 'REAL', 'synonyms': ['explosion', 'blast', 'boom', 'detonation', 'explode']}, {'category': 'CLOTH', 'catid': 'CLOTHMvmt', 'subcategory': 'MOVEMENT', 'synonyms': ['cloth', 'cloth movement', 'fabric', 'clothing rustle', 'cloth rustle']}, {'category': 'PAPER', 'catid': 'PAPRHndl', 'subcategory': 'HANDLE', 'synonyms': ['paper', 'paper rustle', 'page turn', 'paper crumple']}, {'category': 'MACHINES', 'catid': 'MACHMisc', 'subcategory': 'MISC', 'synonyms': ['machine', 'motor', 'mechanism', 'machinery', 'servo']}, {'category': 'ELECTRICITY', 'catid': 'ELECBuzz', 'subcategory': 'BUZZ & HUM', 'synonyms': ['electric buzz', 'spark', 'zap', 'electricity', 'arc']}, {'category': 'COMMUNICATIONS', 'catid': 'COMTelph', 'subcategory': 'TELEPHONE', 'synonyms': ['phone ring', 'telephone', 'ringtone', 'cell phone', 'dial tone']}]#
catid, category, subcategory (the master’s), and extra lowercased phrases.
- Type:
Curated rows, keyed by real UCS v8.2.1 CatIDs. Each row