LCAV / pyroomacoustics

Pyroomacoustics is a package for audio signal processing for indoor applications. It was developed as a fast prototyping platform for beamforming algorithms in indoor scenarios.
https://pyroomacoustics.readthedocs.io
MIT License
1.33k stars 417 forks source link

room.simulate error #318

Closed chenCFD closed 11 months ago

chenCFD commented 11 months ago

when i simulate wth some sources and mics, i encounter the error as below:

File "C:\Users\v003280\Desktop\sound-source-localization\weipeng-he-4mic\run\resnet-eval.py", line 361, in room.simulate()

File "C:\Users\v003280\Anaconda3\lib\site-packages\pyroomacoustics\room.py", line 2449, in simulate premix_signals[s, m, d : d + len(sig) + len(h) - 1] += fftconvolve(

ValueError: operands could not be broadcast together with shapes (68727,) (0,) (68727,)

fakufaku commented 11 months ago

Hi @chenCFD , this looks like a problem with your input signal or the way the simulation of set up. I can help if you share the script that produces the error.

chenCFD commented 11 months ago

Hi @fakufaku, the problem was solved after making sure input signal is correct. Thank you for your remind!

fakufaku commented 11 months ago

Fantastic, I'll close the issue then.