Spaces:
Running
Running
File size: 2,829 Bytes
62d1739 226a74d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | <!DOCTYPE html>
<html lang="my">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Voice Converter UI Demo</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #0f172a;
color: #f8fafc;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
box-sizing: border-box;
}
.container {
background-color: #1e293b;
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
max-width: 400px;
width: 100%;
text-align: center;
}
h2 {
margin-top: 0;
color: #38bdf8;
}
.input-group {
margin: 20px 0;
}
input[type="file"] {
display: none;
}
.custom-file-upload {
border: 2px dashed #38bdf8;
display: inline-block;
padding: 12px 20px;
cursor: pointer;
border-radius: 8px;
color: #38bdf8;
width: 80%;
transition: 0.3s;
}
.custom-file-upload:hover {
background-color: #334155;
}
button {
background-color: #0284c7;
color: white;
border: none;
padding: 12px 24px;
font-size: 16px;
border-radius: 8px;
cursor: pointer;
width: 100%;
margin-top: 10px;
transition: 0.3s;
}
button:hover {
background-color: #0369a1;
}
#status {
margin-top: 15px;
font-size: 14px;
color: #94a3b8;
}
audio {
width: 100%;
margin-top: 20px;
display: none;
}
</style>
</head>
<body>
<div class="container">
<h2>ποΈ Voice Converter</h2>
<p>α‘ααΆααα―ααΊ αα½α±αΈαα»ααΊαα« ααα―α·ααα―ααΊ Upload αααΊαα«</p>
<div class="input-group">
<label for="audioFile" class="custom-file-upload">
π Audio ααα―ααΊαα½α±αΈαααΊ
</label>
<input type="file" id="audioFile" accept="audio/*">
<p id="fileName" style="font-size: 12px; color: #cbd5e1; margin-top: 8px;"></p>
</div>
<button id="convertBtn">α‘ααΆ ααΌα±α¬ααΊαΈαααΊ</button>
<div id="status"></div>
<audio id="audioPlayer" controls></audio>
</div>
<script src="script.js"></script>
</body>
</html>
|