{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/spatial-scaper-a-library-to-simulate-and","title":"Spatial Scaper: A Library to Simulate and Augment Soundscapes for Sound Event Localization and Detection in Realistic Rooms","arxiv_id":"2401.12238","date":"2024-01-19","proceeding":null,"authors":["Iran R. Roman","Christopher Ick","Sivan Ding","Adrian S. Roman","Brian McFee","Juan P. Bello"],"abstract":"Sound event localization and detection (SELD) is an important task in machine listening. Major advancements rely on simulated data with sound events in specific rooms and strong spatio-temporal labels. SELD data is simulated by convolving spatialy-localized room impulse responses (RIRs) with sound waveforms to place sound events in a soundscape. However, RIRs require manual collection in specific rooms. We present SpatialScaper, a library for SELD data simulation and augmentation. Compared to existing tools, SpatialScaper emulates virtual rooms via parameters such as size and wall absorption. This allows for parameterized placement (including movement) of foreground and background sound sources. SpatialScaper also includes data augmentation pipelines that can be applied to existing SELD data. As a case study, we use SpatialScaper to add rooms to the DCASE SELD data. Training a model with our data led to progressive performance improves as a direct function of acoustic diversity. These results show that SpatialScaper is valuable to train robust SELD models.","url_abs":"https://arxiv.org/abs/2401.12238v1","url_pdf":"https://arxiv.org/pdf/2401.12238v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"spatial-scaper-a-library-to-simulate-and","repo_url":"https://github.com/iranroman/spatialscaper","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"CC-BY-4.0"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"sound-event-localization-and-detection","task_name":"Sound Event Localization and Detection"}],"methods":[{"method_slug":null,"method_name":"Library"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2401.12238","atlas_url":"https://app.syntology.ai/?focus=2401.12238","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.12238"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/iranroman/spatialscaper","reach":{"status":"ok","spdx":"CC-BY-4.0"}}],"summary":{"ran":11,"unverified":1},"by_repo_kind":{"official":{"samples":12,"ran":11,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":12,"samples":[{"code_sha256_prefix":"e410d02150db5a7c","entry":"cartesian_to_polar","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/utils.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"e410d02150db5a7c"}},{"code_sha256_prefix":"622c63d5bc13d282","entry":"center_mic_coords","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/room_sim.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/room_sim.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"622c63d5bc13d282"}},{"code_sha256_prefix":"a4d77816b988fa07","entry":"deg2rad","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/room_sim.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/room_sim.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"a4d77816b988fa07"}},{"code_sha256_prefix":"531a022f6ac2332a","entry":"generate_interpolation_matrix","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/spatialize.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/spatialize.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"531a022f6ac2332a"}},{"code_sha256_prefix":"23fd28a17e799015","entry":"get_timegrid","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/utils.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"23fd28a17e799015"}},{"code_sha256_prefix":"12ded41ec88433aa","entry":"map_to_cylinder","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/tau_utils.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/tau_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"12ded41ec88433aa"}},{"code_sha256_prefix":"f0b21381711f8c16","entry":"rad2deg","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/room_sim.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/room_sim.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"f0b21381711f8c16"}},{"code_sha256_prefix":"169700cc60c66ce9","entry":"sort_matrix_by_columns","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/utils.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"169700cc60c66ce9"}},{"code_sha256_prefix":"dd51be8b63fa0838","entry":"stft","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/spatialize.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/spatialize.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"dd51be8b63fa0838"}},{"code_sha256_prefix":"8c818bcfa4164872","entry":"stft_num_frames","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/spatialize.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/spatialize.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"8c818bcfa4164872"}},{"code_sha256_prefix":"1f0896704f5d1aff","entry":"unitvec_to_cartesian","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/tau_utils.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/tau_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"1f0896704f5d1aff"}},{"code_sha256_prefix":"03732e56bb523c75","entry":"load_paths","repo":"iranroman/spatialscaper","repo_kind":"official","path":"spatialscaper/tau_utils.py","file_url":"https://github.com/iranroman/spatialscaper/blob/HEAD/spatialscaper/tau_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"CC-BY-4.0","inline_ok":false,"mcp_get_code":{"code_sha256":"03732e56bb523c75"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}