- setup a python virtual environment with 64 bit python
pip install -r requirements.txt
The IR-directory contains multiple subdirectories, each representing a person (e.g., Person1, Person2, etc.). Each person's directory contains:
- A set of stereo
.wavfiles that correspond to the 7.1.4 channel speaker configuration. - The file names correspond to the positions in a 7.1.4 surround system:
frontleft.wav,frontright.wav,frontcenter.wavsideleft.wav,sideright.wavbackleft.wav,backright.wavtopfrontleft.wav,topfrontcenter.wav,topfrontright.wavlfe1.wav(low-frequency effects channel)voiceofgod.wav(likely an overhead source)
The top level directory contains
- This subdirectory will store the binaural output after processing for each person
- A 12-channel
.wavfile that serves as the input. - This file will be convolved with the impulse response files from each person's folder to generate personalized binaural audio.
- The program should iterate through each person's directory, access their 7.1.4 stereo impulse response
.wavfiles, and perform convolution with the 12-channel input file from the"in"directory. - The resulting binaural output should be stored in each person's
"out"directory.
- Place the 12-channel input
.wavfile inside the"in"directory. - Assure the IR-directory is setup properly based on (file structure)[Impulse Response Files (IRs)]
- Run the Python script to perform convolution and generate binaural audio.
- The output files will be saved inside
"out"directory.
- The script uses Scipy's
signal.convolvefunction to convolve the input file with the impulse responses. - Impulse responses are trimmed to 0.5 seconds to remove irrelevant tail noise.
- The output is normalized before being saved.
python conv.py