Closed akhilvasvani closed 3 weeks ago
As far I know, you can't calculate distance with these algorithms. There are efforts made to calculate the distance from the coherent-to-defuse ratio but this is not very reliable, because it is strongly depended on the room measures. However, this would be of course very helpful for a lot of applications. From this algorithms you only get azimuth and elevation angle.
That is correct, most of these algorithms only return the angles. With the exception of SRP-PHAT which seems to have a near
field mode (see the doc ans source). In this case, you also provide a list of candidate distances r
which is used to produce mode vectors with different norms. I don't know if the near field SRP has been really tested, so please let us now the result.
I have tried testing it with several radius values. Not much difference. Anyhow, solved a couple of my problems. Thank you.
@akhilvasvani One last thing, I saw that your microphones are separated by several meters. In that case, the frequency range [2900, 3500]
will be plagued by aliasing. You need to use much lower frequency, say [100, 500]
.
Ok, I made a mistake. I inputted all my microphones and room dimensions in inches instead of centimeters. Now that I have corrected that—all my numbers are a LOT smaller.
I know you mentioned that: "The spacing should be somewhere around half or a quarter of the wavelength of the frequency bands." And I'm almost certain you're using the formula: v = l*f (where v is speed of sound, l is the wavelength, and f is the frequency) to find the frequency.
Since we're in a reverberant room—the speed of sound is not exactly 34,300 cm/s. And my room is not exactly a square.
However, when I input your changes and put in the frequency band [100,500] MUSIC improves in finding the right azimuth, but TOPS and SRP become bad. When I put in [2900,3500] as my frequency band SRP and TOPS improve significantly.
Is there something I am missing in this picture to accurately determine the frequency bands for SPR and TOPS? If so, why?
Thank you @fakufaku
@akhilvasvani
d / 343
, where d
is the inter-microphone spacing.Thanks.
Hey @akhilvasvani. I am currently trying to find the distance between the sound source and microphone array, the DOA algorithm just provides us with the angle of the sound source. Are you able to use the lib to figure out the distance?
@ELELUABDULSALAM , the DOA algorithms in the package are not appropriate to find the distance.
@fakufaku what do you suggest I use to locate the sound distance
I have replied in issue #243 .
@ELELUABDULSALAM, as @fakufaku and you mentioned, the pyroomacoutics library provides angles where the sound source is located. That said, I am exploring an alternative strategy of using a clustering to determine the true sound source location given multiple candidate locations. Check out my repo.
@fakufaku I have replied in issue #243 as well with a question.
Hi,
I am trying to find the distance between the center of my microphone array and the source sound in a 3-D environment. I have looked through the source code, and I see it can support it. However, I am unsure of two things. The first is if the DOA methods—SRP, MUSIC, TOPS, FRIDA—themselves can support source localization in 3-d. And secondly, regardless if they can or cannot, I am trying to use the algorithms so find me the distance between the source and the center of my microphone array. Is this possible to do?
NOTE: I have put in comments safety check for a comparison sake. I would like to remove this once I figure out the problems listed above.
See my code below: