Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webpage/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def upload():
project_info={"project_name": form.get("project_name",None),
"visual_anonymization": form.get("visual_anonymization",None),
"pitch": form.get("pitch",None),
"echo":str(float(form.get("echo",None))/10),
"echo":str(float(form.get("echo",None))),
"distortion":form.get("distortion",None),
"status":"0"
}
Expand Down
20 changes: 20 additions & 0 deletions webpage/static/main/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,23 @@ function handleFiles(files) {
PENDING_FILES.push(files[i]);
}
}

var pitch_val=document.getElementById("pitch")
var pitch_out=document.getElementById("pitch_value")
pitch_out.innerHTML = pitch_val.value;
pitch_val.oninput = function() {
pitch_out.innerHTML = this.value;
}

var echo_val=document.getElementById("echo")
var echo_out=document.getElementById("echo_value")
echo_out.innerHTML = echo_val.value;
echo_val.oninput = function() {
echo_out.innerHTML = this.value;
}
var distortion_val=document.getElementById("distortion")
var distortion_out=document.getElementById("distortion_value")
distortion_out.innerHTML = pitch_val.value;
distortion_val.oninput = function() {
distortion_out.innerHTML = this.value;
}
1 change: 1 addition & 0 deletions webpage/templates/login.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- /static/utils/utils.css -->
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
11 changes: 8 additions & 3 deletions webpage/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,20 @@ <h1>Audio Anonymization</h1>
</label>
<div class="flex items-center">
<span style="padding-right: 52px;">Pitch</span>
<input type="range" min="-10" max="10" step="1" value="0" class="slider" name="pitch">
<input type="range" min="-10" max="10" step="1" value="0" class="slider" name="pitch" id="pitch">
<span id="pitch_value"></span>
</div>
<div class="flex items-center">
<span style="padding-right: 52px;">Echo</span>
<input type="range" min="-10" max="10" step="1" value="0" class="slider" name="echo">
<input type="range" min="0.1" max="0.9" step="0.1" value="0.1" class="slider" name="echo" id="echo">
<span id="echo_value"></span>

</div>
<div class="flex items-center">
<span style="padding-right: 15px;">Distortion</span>
<input type="range" min="-10" max="10" step="1" value="0" class="slider" name="distortion">
<input type="range" min="-10" max="10" step="1" value="0" class="slider" name="distortion" id="distortion">
<span id="distortion_value"></span>

</div>

</div>
Expand Down