Skip to content

Server code for DMT Shure Sound Visualization Task [flask | apache]

Notifications You must be signed in to change notification settings

devYaoYH/DMT_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server API endpoints

/api/init

POST to /api/init with correctly formatted handshake packet to initialize recording of audio data.

{
    'rate': <Int> Polling rate (Bits/sec),
    'sessionID': <String> Recording session ID (Unique Identifier),
    'location': <String> GPS location
}

We will respond with json:

{
    'success': True/False,
    'url': some url to post audio data to
}

/api/stream/<id>

Use POST to stream recorded sound packets to our server for further analysis.

/view/<sessionID>

Data visualization for sessionID recording session.

/api/analyze/<sessionID>/<fileID>

Get some analysis data from Tim's utils (return json):

{
    'noise': <float> noise level,
    'ifft': [<float>] array of values with ifft smoothened audio (last 50ms)
}

About

Server code for DMT Shure Sound Visualization Task [flask | apache]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published