Comments (13)
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.
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.
I have tried testing it with several radius values. Not much difference. Anyhow, solved a couple of my problems. Thank you.
from pyroomacoustics.
@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.
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.
- 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
, whered
is the inter-microphone spacing.
from pyroomacoustics.
Thanks.
from pyroomacoustics.
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.
@ELELUABDULSALAM , the DOA algorithms in the package are not appropriate to find the distance.
from pyroomacoustics.
@fakufaku what do you suggest I use to locate the sound distance
from pyroomacoustics.
I have replied in issue #243 .
from pyroomacoustics.
@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.
@fakufaku I have replied in issue #243 as well with a question.
from pyroomacoustics.
Related Issues (20)
- Equal beamforming outputs despite the different shapes of the rooms HOT 3
- RIR simulation
- wrong judgement by is_inside()
- how can we replace a source with another one in a generated room HOT 1
- Raise warning when extruding Shoebox HOT 3
- Proper way to define a 3D room with walls of different heights HOT 1
- Testing CNN model using sound generated from pyroomacoustics room simulation HOT 2
- Adding a diffuser
- problem in pip HOT 4
- Has Gaussian-Laplace IVA (IVA-GL) been also implemented in this library? HOT 1
- Bug in auxiva? Script did not show any error, but got nan in the result of source matrix HOT 2
- Compute RIR up to a K (earliest or strongest) reflection (or max time)
- ValueError: operands could not be broadcast together with shapes (2709,96) (2500,1) (2709,96)
- Waves in the signal after convolving the signal with the RIR HOT 3
- Question regarding materials HOT 1
- scipy.signal.hann is deprecated in SciPy 1.13.0
- How to simulation energy decrease? HOT 8
- why conj in ILRMA HOT 4
- Error in pyroomacoustics/pyroomacoustics /beamforming.py HOT 1
- Differences With Other Libraries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyroomacoustics.