steDamiano / pyroadacoustics

Python package for road acoustics simulation based on variable length delay lines.
GNU General Public License v3.0
14 stars 4 forks source link

DOI

pyroadacoustics

Pyroadacoustics is an open-source library that enables to simulate the sound propagation in a road scenario. The Python, entirely developed in Python, is built on a geometrical acoustics model to resemble the main acoustic phenomena that affect the sound produced by sources moving on a road, in a realistic outdoor environment.

The simulated acoustic scene is defined by:

The simulator provides an accurate model of the Doppler effect, the acoustic atmospheric absorption, affecting sound propagation at high distances, and of the asphalt reflection properties.

Installation and Use

To install and use pyroadacoustics, the following python packages are required:

You can install the package using pip:

pip install pyroadacoustics

Documentation and Examples

The documentation of all the classes and methods of the package is available in the corresponding docstring.

An example of the definition of the simulation scene and of the use of the simulator is provided in the notebook simulator_demo.ipynb.

Audio Demos

The directory audio_demos contains the audio files of a set of simulations performed in a fixed scenario, with different source signals. The demos were produced with the simulator_demo.ipynb code. The scenario is defined by the following parameters:

The 3 demos were run with different sound source signals:

  1. demo1: sinusoid with frequency F = 2000 Hz, without reflection from the ground (i.e. only direct sound field is simulated).
  2. demo2: sinusoid with frequency F = 2000 Hz, with direct sound field and reflection from the ground.
  3. demo3: white noise signal, with direct sound field and reflection from the ground.

Academic Publication

If you use this package or part of this code in your own research, please cite the following paper:

S. Damiano and T. van Waterschoot. “Pyroadacoustics: a Road Acoustics Simulator Based On Variable Length Delay Lines”, in Proceedings of the 25th International Conference on Digital Audio Effects (DAFx22), Vienna, Austria, Sept. 2022.

Acknowledgements

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 956962 (I-SPOT Project).