-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RIR simulation #324
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thank you very much for your work, I recently found the following problems while generating rir using hybrid method:
The following is the code of my experiment. Please help me check whether hybrid method is used correctly. Thank you very much!
====
import pyroomacoustics as pra
import pdb
import numpy as np
import soundfile as sf
room_dim = [5.25,11.01,3.09]
mic_locs = np.c_[[2.53,2.35, 1.31]]
rt60 = 1.01
fs=32000
e_absorption, max_order = pra.inverse_sabine(rt60, room_dim)
room = pra.ShoeBox(
room_dim,
fs=fs,
materials=pra.Material(e_absorption),
max_order=3,
ray_tracing=True,
air_absorption=True,
)
room.add_source([2.43, 2.40, 1.43])
room.add_microphone_array(mic_locs)
room.compute_rir()
RIRs = room.rir[0][0]
sf.write('rir.wav',RIRs,fs)
The text was updated successfully, but these errors were encountered: