Skip to content
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

Open
shenbuguanni opened this issue Sep 4, 2023 · 0 comments
Open

RIR simulation #324

shenbuguanni opened this issue Sep 4, 2023 · 0 comments

Comments

@shenbuguanni
Copy link

Hi, thank you very much for your work, I recently found the following problems while generating rir using hybrid method:

  1. The distance from the simulated sound source to the mic is about 0.17m, and the subscript of the direct sound (the maximum rir) can be calculated to be about 15 sampling points, and the simulated rir actually has 55 points. May I ask what caused it? When using gpurir, there is no such problem
  2. From the spectrum of the generated rir, the high-frequency gain is obviously larger, and there are vertical bars at the tail, I wonder if it is reasonable?
    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant