This repository contains the source code used in a study projects to characterise rooms in terms of acoustic metrics (R60, EDT, C50...). Based on audio records of claps and sineswepts, this code calculates all metrics and outputs the results in a .csv file for investigation.
The simplest protocol:
- Place a microphone in a room
- Produce a short impulsion in the room (get close as posible to a Dirac impulsion), for instance by clapping your hands or making balloons explode
- Record the output
A more refined protocol:
- Place as well a speaker in the room
- Play a sweptsine signal in the speaker. This type of signal is defined using a central frequency, and allows for a more precise calculation.
- A tool script is included to generate sweptsine signals
- Record the response of the room
Illustration of the experimental protocol used for the experiments
- Place all your data in a folder using the following structure:
data/ room_1/ audio_1.wav audio_2.wav ... audio_n.wav room_2/ ...
- If an audio is the room response to a sweptsine, the filename must have a format that can be set in the script using the following named groups:
- f1 and f2 and the minimum and maximum frequencies of the signal
- Fs is the sampling rate
- T is the duration of the signal (not the audio)
The default format is:
sweptsine_f1-f2_Hz_-_Fs_T_s.wav
- If an audio is the room response to a sweptsine, the filename must have a format that can be set in the script using the following named groups:
- Set up the parameters in the main MATLAB script
main.m
- Run the script to extract all data in a
.csv
file- The script will ask for each audio signal to set a maximum treatment duration. Graphs of the signal energy are shown in log-scale, it is common to stop the treatment when the main .. has been observed
Metrics include:
- The reverberation time calculated using the T30
- The reverberation time calculated using the T20
- The Early Decay Time (EDT)
- Definitions and speech clarity at 50ms (D50, C50)
- Speech clarity at 80ms
You can optionally try to recreate the experiments in a numerical simulation. We used CATT-Acoustics v8, examples can be found in the corresponding folder.
Numerical reproduction of a classroom
Numerical reproduction of an amphitheater
- Main contributors: Thรฉo Vidal, Benoit Keryer
- Supervisor: Karsten Plamann