LCAV / pyroomacoustics

Pyroomacoustics is a package for audio signal processing for indoor applications. It was developed as a fast prototyping platform for beamforming algorithms in indoor scenarios.
https://pyroomacoustics.readthedocs.io
MIT License
1.33k stars 417 forks source link

Creating a Room with a Complex Shape Including Passages #320

Closed masachika-kamada closed 4 months ago

masachika-kamada commented 10 months ago

Hello,

I'm interested in using pyroomacoustics to model a somewhat complex room structure. Specifically, I want to simulate two rooms (a cubic room with 10m sides and another cubic room with 1m sides) connected by a narrow passage (with a cross-section of 10cm x 10cm and a length of 30cm).

From my understanding of the documentation, it seems that pyroomacoustics primarily supports simple polygonal (2D) or polyhedral (3D) room shapes. I wonder if there's a way to define a more complex room shape that includes passages, perhaps by combining multiple polygons/polyhedra?

If such a feature doesn't currently exist, would it be possible to add it in a future version of pyroomacoustics? Or alternatively, do you recommend any other approaches or libraries for achieving this kind of simulation?

Thank you for your time and help.

Best, masachika kamada

masachika-kamada commented 4 months ago

Hello,

I figured out how to model my complex room using room_from_stl.py from pyroomacoustics. It worked well for my needs. Here's the link that helped me: Room from STL Example.

Closing this issue now. Thanks!