gpuRIR: A python library for room impulse response simulation with GPU acceleration

  • PDF / 1,214,515 Bytes
  • 19 Pages / 439.642 x 666.49 pts Page_size
  • 8 Downloads / 184 Views

DOWNLOAD

REPORT


gpuRIR: A python library for room impulse response simulation with GPU acceleration David Diaz-Guerra1

· Antonio Miguel1 · Jose R. Beltran1

Received: 16 December 2019 / Revised: 8 July 2020 / Accepted: 16 September 2020 / © Springer Science+Business Media, LLC, part of Springer Nature 2020

Abstract The Image Source Method (ISM) is one of the most employed techniques to calculate acoustic Room Impulse Responses (RIRs), however, its computational complexity grows fast with the reverberation time of the room and its computation time can be prohibitive for some applications where a huge number of RIRs are needed. In this paper, we present a new implementation that dramatically improves the computation speed of the ISM by using Graphic Processing Units (GPUs) to parallelize both the simulation of multiple RIRs and the computation of the images inside each RIR. Additional speedups were achieved by exploiting the mixed precision capabilities of the newer GPUs and by using lookup tables. We provide a Python library under GNU license that can be easily used without any knowledge about GPU programming and we show that it is about 100 times faster than other state of the art CPU libraries. It may become a powerful tool for many applications that need to perform a large number of acoustic simulations, such as training machine learning systems for audio signal processing, or for real-time room acoustics simulations for immersive multimedia systems, such as augmented or virtual reality. Keywords Room impulse response (RIR) · Image source method (ISM) · Room acoustics · Graphic processing units (GPUs)

1 Introduction The simulation of the acoustics of a room is needed in many fields and applications of audio engineering and acoustic signal processing, such as training robust Speech Recognition systems [30] or training and evaluating Sound Source Localization [7] or Speech Enhancement [31] algorithms. Although there are many low complexity techniques to This work was supported in part by the Regional Government of Aragon (Spain) with a grant for postgraduate research contracts (2017-2021) co-funded by the Operative Program FSE Aragon 2014-2020. This material is based upon work supported by Google Cloud.  David Diaz-Guerra

[email protected] 1

Department of Electronic Engineering and Communications, University of Zaragoza, Zaragoza, Spain

Multimedia Tools and Applications

simulate the reverberation effect of a room in real time, as the classic Schroeder Reverberator [27], some applications require an accurate simulation of the reflections causing the reverberation. The information of all those reflections is gathered in the Room Impulse Response (RIR) between the source and the receiver positions, which allows to simulate the reverberation process by filtering the source signal with it. Our goal in this work is to provide a fast method to obtain these RIRs. The Image Source Method (ISM) is probably the most used technique for RIR simulation due its conceptual simplicity and its flexibility to modify parameters such as the room