Giter Site home page Giter Site logo

socket AND file output about odas_web HOT 2 CLOSED

introlab avatar introlab commented on August 16, 2024
socket AND file output

from odas_web.

Comments (2)

lembit1 avatar lembit1 commented on August 16, 2024

Update: I fixed physical mic connection and now tracks.txt is populated. Here's typical json message:
{
"timeStamp": 1202,
"src": [
{ "id": 7, "tag": "dynamic", "x": -0.004, "y": -0.858, "z": 0.513, "activity": 0.000 },
{ "id": 22, "tag": "dynamic", "x": 0.825, "y": -0.006, "z": 0.565, "activity": 0.999 },
{ "id": 0, "tag": "", "x": 0.000, "y": 0.000, "z": 0.000, "activity": 0.000 },
{ "id": 0, "tag": "", "x": 0.000, "y": 0.000, "z": 0.000, "activity": 0.000 }
]
}
Q5: what is the timeStamp unit? If it is an async count, can you guide me how to replace with system Unix time?
Q6: is the activity value related to some movement-related parameter? Can you describe?
Q7: are there any other formats available other than json?
when I divert the SSL export to a file, the json messages look like
{
"timeStamp": 1146,
"src": [
{ "x": 0.552, "y": -0.648, "z": 0.525, "E": 0.442 },
{ "x": 0.672, "y": -0.719, "z": 0.175, "E": 0.359 },
{ "x": 0.460, "y": -0.840, "z": 0.288, "E": 0.126 },
{ "x": 0.728, "y": -0.453, "z": 0.514, "E": 0.058 }
]
}
Q8: can you parse this please?
Thanks much!

from odas_web.

GodCed avatar GodCed commented on August 16, 2024

Q1: you can have one sink interface per output. So you can't send the same data to both a file and ODAS Studio.

Q2: Yes. It is gain_sep under the SSS module. You also have gain_pf for post-filtered separated audio.

Q3: odaslive, which does the actual processing. ODAS studio is simply a GUI which receive data from the odaslive process trough sockets.

Q4: no clue on that one. It was non existant while I coded ODAS Studio as an IntRoLab's intern. You'll need to ask on the ODAS repo.

Q5: it's an incremental message counter. You must edit the odas library source code to change it. I would advise you add a secondary field instead of modifying the existing timestamp field, I'm pretty sure it would reduce the chance of messing up odas pocessing pipeline.

Q6: it goes from 0 to 1 and indicate "how much the tracking filter consider the source as producing sound". when it is first heard it starts at one, then when the sound stops it "slowly" goes back to zero. The idea is allow the source to survive if the sound drops momentarily to allow tracking of intermittent source such as a person talking.

A7: only JSON for tracking data.

Q8: timeStamp, incremental as discussed; src, array of directions (x,y,z unit vector) from which sound energy (E) is coming. If E is high enough, long enough, this direction becomes a tracked source and it appears in tracking data (SST output).

For reference, here is the link to the ODAS repo https://github.com/introlab/odas.

from odas_web.

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.