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om",
|
| 6 |
+
"Bowed_string_instrument",
|
| 7 |
+
"Burping_and_eructation",
|
| 8 |
+
"Camera",
|
| 9 |
+
"Chewing_and_mastication",
|
| 10 |
+
"Child_speech_and_kid_speaking",
|
| 11 |
+
"Clapping",
|
| 12 |
+
"Coin_(dropping)",
|
| 13 |
+
"Computer_keyboard",
|
| 14 |
+
"Cough",
|
| 15 |
+
"Crack",
|
| 16 |
+
"Crackle",
|
| 17 |
+
"Crash_cymbal",
|
| 18 |
+
"Cricket",
|
| 19 |
+
"Crumpling_and_crinkling",
|
| 20 |
+
"Crushing",
|
| 21 |
+
"Crying_and_sobbing",
|
| 22 |
+
"Dishes_and_pots_and_pans",
|
| 23 |
+
"Drawer_open_or_close",
|
| 24 |
+
"Drill",
|
| 25 |
+
"Electric_guitar",
|
| 26 |
+
"Fart",
|
| 27 |
+
"Female_singing",
|
| 28 |
+
"Female_speech_and_woman_speaking",
|
| 29 |
+
"Finger_snapping",
|
| 30 |
+
"Giggle",
|
| 31 |
+
"Gong",
|
| 32 |
+
"Gunshot_and_gunfire",
|
| 33 |
+
"Hammer",
|
| 34 |
+
"Harp",
|
| 35 |
+
"Keys_jangling",
|
| 36 |
+
"Knock",
|
| 37 |
+
"Livestock_and_farm_animals_and_working_animals",
|
| 38 |
+
"Male_speech_and_man_speaking",
|
| 39 |
+
"Meow",
|
| 40 |
+
"Microwave_oven",
|
| 41 |
+
"Organ",
|
| 42 |
+
"Piano",
|
| 43 |
+
"Printer",
|
| 44 |
+
"Rattle",
|
| 45 |
+
"Rattle_(instrument)",
|
| 46 |
+
"Run",
|
| 47 |
+
"Sawing",
|
| 48 |
+
"Scissors",
|
| 49 |
+
"Scratching_(performance_technique)",
|
| 50 |
+
"Screaming",
|
| 51 |
+
"Skateboard",
|
| 52 |
+
"Slam",
|
| 53 |
+
"Snare_drum",
|
| 54 |
+
"Splash_and_splatter",
|
| 55 |
+
"Squeak",
|
| 56 |
+
"Stream",
|
| 57 |
+
"Tap",
|
| 58 |
+
"Tearing",
|
| 59 |
+
"Thump_and_thud",
|
| 60 |
+
"Toilet_flush",
|
| 61 |
+
"Train",
|
| 62 |
+
"Trumpet",
|
| 63 |
+
"Walk_and_footsteps",
|
| 64 |
+
"Water_tap_and_faucet",
|
| 65 |
+
"Waves_and_surf",
|
| 66 |
+
"Whoosh_and_swoosh_and_swish",
|
| 67 |
+
"Wind",
|
| 68 |
+
"Wind_chime",
|
| 69 |
+
"Wind_instrument_and_woodwind_instrument",
|
| 70 |
+
"Writing",
|
| 71 |
+
"Zipper_(clothing)",
|
| 72 |
+
]
|
| 73 |
+
|
| 74 |
+
COARSE_TO_FINE = {
|
| 75 |
+
"Acoustic_guitar": "Music",
|
| 76 |
+
"Bark": "Animal",
|
| 77 |
+
"Bass_guitar": "Music",
|
| 78 |
+
"Boom": "Sounds_of_things",
|
| 79 |
+
"Bowed_string_instrument": "Music",
|
| 80 |
+
"Burping_and_eructation": "Human_sounds",
|
| 81 |
+
"Camera": "Sounds_of_things",
|
| 82 |
+
"Chewing_and_mastication": "Human_sounds",
|
| 83 |
+
"Child_speech_and_kid_speaking": "Human_sounds",
|
| 84 |
+
"Clapping": "Human_sounds",
|
| 85 |
+
"Coin_(dropping)": "Sounds_of_things",
|
| 86 |
+
"Computer_keyboard": "Sounds_of_things",
|
| 87 |
+
"Cough": "Human_sounds",
|
| 88 |
+
"Crack": "Sounds_of_things",
|
| 89 |
+
"Crackle": "Natural_sounds",
|
| 90 |
+
"Crash_cymbal": "Music",
|
| 91 |
+
"Cricket": "Animal",
|
| 92 |
+
"Crumpling_and_crinkling": "Source_ambiguous_sounds",
|
| 93 |
+
"Crushing": "Source_ambiguous_sounds",
|
| 94 |
+
"Crying_and_sobbing": "Human_sounds",
|
| 95 |
+
"Dishes_and_pots_and_pans": "Sounds_of_things",
|
| 96 |
+
"Drawer_open_or_close": "Sounds_of_things",
|
| 97 |
+
"Drill": "Sounds_of_things",
|
| 98 |
+
"Electric_guitar": "Music",
|
| 99 |
+
"Fart": "Human_sounds",
|
| 100 |
+
"Female_singing": "Human_sounds",
|
| 101 |
+
"Female_speech_and_woman_speaking": "Human_sounds",
|
| 102 |
+
"Finger_snapping": "Human_sounds",
|
| 103 |
+
"Giggle": "Human_sounds",
|
| 104 |
+
"Gong": "Music",
|
| 105 |
+
"Gunshot_and_gunfire": "Sounds_of_things",
|
| 106 |
+
"Hammer": "Sounds_of_things",
|
| 107 |
+
"Harp": "Music",
|
| 108 |
+
"Keys_jangling": "Sounds_of_things",
|
| 109 |
+
"Knock": "Sounds_of_things",
|
| 110 |
+
"Livestock_and_farm_animals_and_working_animals": "Animal",
|
| 111 |
+
"Male_speech_and_man_speaking": "Human_sounds",
|
| 112 |
+
"Meow": "Animal",
|
| 113 |
+
"Microwave_oven": "Sounds_of_things",
|
| 114 |
+
"Organ": "Music",
|
| 115 |
+
"Piano": "Music",
|
| 116 |
+
"Printer": "Sounds_of_things",
|
| 117 |
+
"Rattle": "Animal",
|
| 118 |
+
"Rattle_(instrument)": "Music",
|
| 119 |
+
"Run": "Human_sounds",
|
| 120 |
+
"Sawing": "Sounds_of_things",
|
| 121 |
+
"Scissors": "Sounds_of_things",
|
| 122 |
+
"Scratching_(performance_technique)": "Music",
|
| 123 |
+
"Screaming": "Human_sounds",
|
| 124 |
+
"Skateboard": "Sounds_of_things",
|
| 125 |
+
"Slam": "Sounds_of_things",
|
| 126 |
+
"Snare_drum": "Music",
|
| 127 |
+
"Splash_and_splatter": "Sounds_of_things",
|
| 128 |
+
"Squeak": "Sounds_of_things",
|
| 129 |
+
"Stream": "Natural_sounds",
|
| 130 |
+
"Tap": "Sounds_of_things",
|
| 131 |
+
"Tearing": "Source_ambiguous_sounds",
|
| 132 |
+
"Thump_and_thud": "Sounds_of_things",
|
| 133 |
+
"Toilet_flush": "Sounds_of_things",
|
| 134 |
+
"Train": "Sounds_of_things",
|
| 135 |
+
"Trumpet": "Music",
|
| 136 |
+
"Walk_and_footsteps": "Human_sounds",
|
| 137 |
+
"Water_tap_and_faucet": "Sounds_of_things",
|
| 138 |
+
"Waves_and_surf": "Natural_sounds",
|
| 139 |
+
"Whoosh_and_swoosh_and_swish": "Sounds_of_things",
|
| 140 |
+
"Wind": "Natural_sounds",
|
| 141 |
+
"Wind_chime": "Music",
|
| 142 |
+
"Wind_instrument_and_woodwind_instrument": "Music",
|
| 143 |
+
"Writing": "Sounds_of_things",
|
| 144 |
+
"Zipper_(clothing)": "Sounds_of_things",
|
| 145 |
+
}
|