-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
222 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Open-MIC Challenge</title> | ||
|
||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="../audio-annotator/static/css/materialize.min.css"> | ||
<link rel="stylesheet" type="text/css" href="../audio-annotator/static/css/urban-ears.css"> | ||
|
||
<script type="text/javascript" src="../audio-annotator/static/js/lib/jquery-2.2.3.min.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/lib/materialize.min.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/lib/wavesurfer.min.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/lib/wavesurfer.spectrogram.min.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/colormap/colormap.min.js"></script> | ||
|
||
<script type="text/javascript" src="../audio-annotator/static/js/src/message.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/src/wavesurfer.regions.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/src/wavesurfer.drawer.extended.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/src/wavesurfer.labels.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/src/hidden_image.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/src/components.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/src/annotation_stages.js"></script> | ||
<script type="text/javascript" src="../audio-annotator/static/js/src/main.js" defer></script> | ||
</head> | ||
<body> | ||
<div class="row header"> | ||
<div class="col s12"> | ||
<div class="divider"></div> | ||
</div> | ||
<div class="col s6"> | ||
<div class="left"> | ||
<h5>Recording <span id="recording-index"></span> of 9</h5> | ||
<h6 class="left">approx. <span id="time-remaining"></span> minutes remaining</h6> | ||
</div> | ||
</div> | ||
<div class="col s6 "> | ||
<div class="right"> | ||
<h5>Open-MIC Challenge</h5> | ||
<a class="waves-effect waves-light modal-trigger right" href="#modal1">Tutorial Video</a> | ||
</div> | ||
</div> | ||
<div class="col s12"> | ||
<div class="divider bottom"></div> | ||
</div> | ||
</div> | ||
<!-- Modal Structure --> | ||
<div id="modal1" class="modal"> | ||
<div class="modal-content"> | ||
<h4>Tutorial Video</h4> | ||
<div class="videowrapper"> | ||
<iframe id="tutorial-video" width="100%" height="100%" frameborder="0" allowfullscreen></iframe> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<a href="#!" class=" modal-action modal-close waves-effect waves-red btn-flat">Close</a> | ||
</div> | ||
</div> | ||
<div class="row prompt"> | ||
<h4 class="center">Highlight & Tag Each Sound</h4> | ||
<h6 class="center">Click and drag to create a new annotation. Listen for sound events and tag them from the list under the audio recording.</h6> | ||
</div> | ||
<div class="annotation"> | ||
<div class="labels"></div> | ||
<div class="audio_visual"></div> | ||
<div class="play_bar"></div> | ||
<div class="hidden_img"></div> | ||
<div class="creation_stage_container"></div> | ||
<div class="submit_container"></div> | ||
</div> | ||
<script> | ||
// Change me! Is there an easy way to config this? | ||
var dataUrl = 'http://localhost:8080/api/v0.1/task'; | ||
var postUrl = 'http://localhost:8080/api/v0.1/annotation/submit'; | ||
|
||
$(document).ready(function(){ | ||
$('.modal-trigger').leanModal(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# Start the backend server | ||
python backend_server/main.py --port 8080 --local --debug & | ||
CMS_PID=$! | ||
sleep 4s | ||
|
||
# Ingest the audio data | ||
curl -F "audio=@data/audio/267508__mickleness__3nf.ogg" \ | ||
localhost:8080/api/v0.1/audio | ||
|
||
curl -F "audio=@data/audio/345515__furbyguy__strings-piano.ogg" \ | ||
localhost:8080/api/v0.1/audio | ||
|
||
sleep 1s | ||
python -m http.server & | ||
HTTP_PID=$! | ||
|
||
sleep 1s | ||
# Wait | ||
echo "\n\nAnnotator serving at: http://localhost:8000/docs/annotator.html" | ||
echo "NOTE: Use a private / incognito session to avoid weird cache behavior." | ||
read -n 1 -p " >> Press any key to exit." | ||
|
||
# Clean-up | ||
kill $CMS_PID; | ||
kill $HTTP_PID; |