Giter VIP home page Giter VIP logo

Comments (13)

jay-pee avatar jay-pee commented on June 30, 2024

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.

from pyroomacoustics.

fakufaku avatar fakufaku commented on June 30, 2024

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.

from pyroomacoustics.

akhilvasvani avatar akhilvasvani commented on June 30, 2024

I have tried testing it with several radius values. Not much difference. Anyhow, solved a couple of my problems. Thank you.

from pyroomacoustics.

fakufaku avatar fakufaku commented on June 30, 2024

@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].

from pyroomacoustics.

akhilvasvani avatar akhilvasvani commented on June 30, 2024

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

from pyroomacoustics.

fakufaku avatar fakufaku commented on June 30, 2024

@akhilvasvani

  • The speed of sound is precisely 343 m/s in the simulation and should not be influenced by the room size.
  • The DOA accuracy will be affected by the reverberation time of the room. Try setting the reverberation time to zero to see if the detection is correct in that case.
  • You are right about the formula I use. I would select frequencies that are not too far from d / 343, where d is the inter-microphone spacing.

from pyroomacoustics.

akhilvasvani avatar akhilvasvani commented on June 30, 2024

Thanks.

from pyroomacoustics.

kehinde-elelu avatar kehinde-elelu commented on June 30, 2024

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?

from pyroomacoustics.

fakufaku avatar fakufaku commented on June 30, 2024

@ELELUABDULSALAM , the DOA algorithms in the package are not appropriate to find the distance.

from pyroomacoustics.

kehinde-elelu avatar kehinde-elelu commented on June 30, 2024

@fakufaku what do you suggest I use to locate the sound distance

from pyroomacoustics.

fakufaku avatar fakufaku commented on June 30, 2024

I have replied in issue #243 .

from pyroomacoustics.

akhilvasvani avatar akhilvasvani commented on June 30, 2024

@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.

from pyroomacoustics.

akhilvasvani avatar akhilvasvani commented on June 30, 2024

@fakufaku I have replied in issue #243 as well with a question.

from pyroomacoustics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.