Spaces:
Running
Running
generate the best of the be Transcriber ( Audio and Video) that even TurboScribe can not match . it supposed to be simple but powerful. it should have both the Manual transcription and the AI transcription - Follow Up Deployment
Browse files- index.html +495 -301
- prompts.txt +2 -0
index.html
CHANGED
|
@@ -3,365 +3,559 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
-
<!-- CodeMirror for better text editing -->
|
| 10 |
-
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.css" rel="stylesheet">
|
| 11 |
-
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/monokai.min.css" rel="stylesheet">
|
| 12 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.js"></script>
|
| 13 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/mode/markdown/markdown.min.js"></script>
|
| 14 |
<style>
|
| 15 |
-
.
|
| 16 |
-
|
| 17 |
-
}
|
| 18 |
-
.task-item {
|
| 19 |
-
transition: all 0.2s ease;
|
| 20 |
}
|
| 21 |
-
.
|
| 22 |
-
|
| 23 |
-
}
|
| 24 |
-
.CodeMirror {
|
| 25 |
-
height: 300px;
|
| 26 |
border: 1px solid #e5e7eb;
|
| 27 |
-
border-radius: 0.5rem;
|
| 28 |
}
|
| 29 |
-
.
|
| 30 |
-
|
| 31 |
-
|
|
|
|
| 32 |
}
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
60% { content: '...'; }
|
| 37 |
-
80%, 100% { content: ''; }
|
| 38 |
}
|
| 39 |
-
.
|
| 40 |
-
|
|
|
|
| 41 |
}
|
| 42 |
-
@keyframes
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
</style>
|
| 47 |
</head>
|
| 48 |
-
<body class="bg-gray-50">
|
| 49 |
-
<div class="
|
| 50 |
-
<!--
|
| 51 |
-
<
|
| 52 |
-
<div class="
|
| 53 |
-
<div class="
|
| 54 |
-
<i class="fas fa-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
</div>
|
| 56 |
-
<h1 class="text-xl font-bold">Quantals Collect</h1>
|
| 57 |
-
</div>
|
| 58 |
-
|
| 59 |
-
<nav class="flex-1 p-4 space-y-2">
|
| 60 |
-
<a href="dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 61 |
-
<i class="fas fa-home"></i>
|
| 62 |
-
<span>Dashboard</span>
|
| 63 |
-
</a>
|
| 64 |
-
<a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 65 |
-
<i class="fas fa-project-diagram"></i>
|
| 66 |
-
<span>Projects</span>
|
| 67 |
-
</a>
|
| 68 |
-
<a href="participants.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 69 |
-
<i class="fas fa-users"></i>
|
| 70 |
-
<span>Participants</span>
|
| 71 |
-
</a>
|
| 72 |
-
<a href="interviews.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 73 |
-
<i class="fas fa-microphone"></i>
|
| 74 |
-
<span>Interviews</span>
|
| 75 |
-
</a>
|
| 76 |
-
<a href="notes.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 77 |
-
<i class="fas fa-sticky-note"></i>
|
| 78 |
-
<span>Notes</span>
|
| 79 |
-
</a>
|
| 80 |
-
<a href="analysis.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 81 |
-
<i class="fas fa-chart-pie"></i>
|
| 82 |
-
<span>Analysis</span>
|
| 83 |
-
</a>
|
| 84 |
-
<a href="ai-assist.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
|
| 85 |
-
<i class="fas fa-robot"></i>
|
| 86 |
-
<span>AI Assist</span>
|
| 87 |
-
</a>
|
| 88 |
-
<a href="transcriber.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 89 |
-
<i class="fas fa-keyboard"></i>
|
| 90 |
-
<span>Transcriber</span>
|
| 91 |
-
</a>
|
| 92 |
-
</nav>
|
| 93 |
-
|
| 94 |
-
<div class="p-4 border-t border-indigo-700">
|
| 95 |
-
<a href="settings.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 96 |
-
<i class="fas fa-cog"></i>
|
| 97 |
-
<span>Settings</span>
|
| 98 |
-
</a>
|
| 99 |
</div>
|
| 100 |
-
|
|
|
|
| 101 |
|
| 102 |
-
<!-- Main Content
|
| 103 |
-
<
|
| 104 |
-
<!--
|
| 105 |
-
<
|
| 106 |
-
<div class="
|
| 107 |
-
<
|
| 108 |
-
<
|
| 109 |
-
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
</div>
|
| 112 |
-
</
|
| 113 |
|
| 114 |
-
<!--
|
| 115 |
-
<div class="
|
| 116 |
-
<
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
</
|
| 125 |
-
<
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
</
|
| 129 |
-
<
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
</
|
| 141 |
-
<
|
| 142 |
-
|
| 143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
</button>
|
| 145 |
-
<button class="
|
| 146 |
-
<i class="fas fa-
|
| 147 |
-
<span>Custom Prompt</span>
|
| 148 |
</button>
|
| 149 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
</div>
|
| 151 |
</div>
|
|
|
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
</div>
|
| 168 |
-
</div>
|
| 169 |
-
</div>
|
| 170 |
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
</div>
|
| 183 |
-
<textarea id="input-text" class="w-full h-64 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"></textarea>
|
| 184 |
</div>
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
<
|
| 189 |
-
|
| 190 |
-
<div class="flex items-center space-x-2">
|
| 191 |
-
<button id="copy-output" class="px-3 py-2 text-sm text-gray-600 hover:bg-gray-100 rounded-lg">
|
| 192 |
-
<i class="fas fa-copy mr-2"></i>Copy
|
| 193 |
-
</button>
|
| 194 |
-
<button id="download-output" class="px-3 py-2 text-sm text-gray-600 hover:bg-gray-100 rounded-lg">
|
| 195 |
-
<i class="fas fa-download mr-2"></i>Download
|
| 196 |
-
</button>
|
| 197 |
-
</div>
|
| 198 |
-
</div>
|
| 199 |
-
<div id="output-text" class="w-full min-h-64 p-3 border border-gray-300 rounded-lg bg-gray-50"></div>
|
| 200 |
</div>
|
| 201 |
</div>
|
| 202 |
</div>
|
| 203 |
-
|
| 204 |
-
<!--
|
| 205 |
-
<div class="
|
| 206 |
-
<div class="
|
| 207 |
-
<
|
| 208 |
-
<
|
| 209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
</div>
|
| 211 |
</div>
|
| 212 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
</div>
|
| 214 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
</div>
|
| 216 |
|
| 217 |
-
<!-- Scripts -->
|
| 218 |
<script>
|
| 219 |
-
//
|
| 220 |
-
const
|
| 221 |
-
|
| 222 |
-
theme: 'monokai',
|
| 223 |
-
lineNumbers: true,
|
| 224 |
-
lineWrapping: true
|
| 225 |
-
});
|
| 226 |
-
|
| 227 |
-
// Task prompts
|
| 228 |
-
const taskPrompts = {
|
| 229 |
-
summarize: "Summarize this interview into major themes and include 2-3 key quotes for each.",
|
| 230 |
-
code: "Suggest qualitative research codes based on the following transcript. Group them hierarchically if possible.",
|
| 231 |
-
improve: "Refine this note for grammar, spelling, and clarity without changing meaning.",
|
| 232 |
-
translate: "Translate the following interview from a local language into English.",
|
| 233 |
-
cluster: "Group the following field notes into thematic clusters using semantic similarity.",
|
| 234 |
-
memo: "Create a theoretical memo from this field data and suggest next steps in analysis.",
|
| 235 |
-
custom: "Please analyze the following text:"
|
| 236 |
-
};
|
| 237 |
|
| 238 |
-
|
| 239 |
-
|
|
|
|
| 240 |
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
document.querySelectorAll('.task-item').forEach(btn => {
|
| 246 |
-
btn.classList.remove('bg-indigo-50');
|
| 247 |
-
});
|
| 248 |
-
button.classList.add('bg-indigo-50');
|
| 249 |
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
});
|
| 253 |
});
|
| 254 |
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
const file = e.target.files[0];
|
| 258 |
-
if (file) {
|
| 259 |
-
const reader = new FileReader();
|
| 260 |
-
reader.onload = (e) => {
|
| 261 |
-
editor.setValue(e.target.result);
|
| 262 |
-
};
|
| 263 |
-
reader.readAsText(file);
|
| 264 |
-
}
|
| 265 |
});
|
| 266 |
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
if (!input.trim()) return;
|
| 271 |
-
|
| 272 |
-
// Show loading state
|
| 273 |
-
const runButton = document.getElementById('run-ai');
|
| 274 |
-
const originalText = runButton.innerHTML;
|
| 275 |
-
runButton.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i>Processing';
|
| 276 |
-
runButton.disabled = true;
|
| 277 |
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
headers: {
|
| 282 |
-
"Authorization": "Bearer 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",
|
| 283 |
-
"Content-Type": "application/json"
|
| 284 |
-
},
|
| 285 |
-
body: JSON.stringify({
|
| 286 |
-
model: "deepseek-coder:52-r1",
|
| 287 |
-
messages: [
|
| 288 |
-
{ role: "system", content: "You are a research assistant helping with qualitative data analysis." },
|
| 289 |
-
{ role: "user", content: taskPrompts[currentTask] + "\n\n" + input }
|
| 290 |
-
]
|
| 291 |
-
})
|
| 292 |
-
});
|
| 293 |
|
| 294 |
-
|
| 295 |
-
throw new Error('Network response was not ok');
|
| 296 |
-
}
|
| 297 |
|
| 298 |
-
|
| 299 |
-
|
|
|
|
|
|
|
|
|
|
| 300 |
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
outputElement.classList.add('fade-in');
|
| 305 |
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
</div>
|
| 313 |
`;
|
| 314 |
-
} finally {
|
| 315 |
-
// Reset button state
|
| 316 |
-
runButton.innerHTML = originalText;
|
| 317 |
-
runButton.disabled = false;
|
| 318 |
}
|
| 319 |
-
}
|
| 320 |
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
|
|
|
|
|
|
| 333 |
|
| 334 |
-
//
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 346 |
});
|
| 347 |
|
| 348 |
-
//
|
| 349 |
-
|
| 350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 351 |
});
|
| 352 |
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
<div class="text-red-600">
|
| 357 |
-
<i class="fas fa-wifi-slash mr-2"></i>
|
| 358 |
-
No internet connection. Please check your network.
|
| 359 |
-
</div>
|
| 360 |
-
`;
|
| 361 |
});
|
| 362 |
|
| 363 |
-
//
|
| 364 |
-
document.
|
|
|
|
|
|
|
| 365 |
</script>
|
| 366 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://deepsite.hf.co/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/transcriber" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 367 |
-
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>UltraScribe - The Ultimate Transcription Tool</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
<style>
|
| 10 |
+
.waveform {
|
| 11 |
+
background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 var(--progress, 0%), #e5e7eb var(--progress, 0%), #e5e7eb 100%);
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
+
.editor-container {
|
| 14 |
+
min-height: 300px;
|
|
|
|
|
|
|
|
|
|
| 15 |
border: 1px solid #e5e7eb;
|
|
|
|
| 16 |
}
|
| 17 |
+
.tab-active {
|
| 18 |
+
border-bottom: 3px solid #3b82f6;
|
| 19 |
+
color: #3b82f6;
|
| 20 |
+
font-weight: 600;
|
| 21 |
}
|
| 22 |
+
.dropzone {
|
| 23 |
+
border: 2px dashed #9ca3af;
|
| 24 |
+
transition: all 0.3s ease;
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
+
.dropzone.active {
|
| 27 |
+
border-color: #3b82f6;
|
| 28 |
+
background-color: #f0f7ff;
|
| 29 |
}
|
| 30 |
+
@keyframes pulse {
|
| 31 |
+
0%, 100% { opacity: 1; }
|
| 32 |
+
50% { opacity: 0.5; }
|
| 33 |
+
}
|
| 34 |
+
.animate-pulse {
|
| 35 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 36 |
}
|
| 37 |
</style>
|
| 38 |
</head>
|
| 39 |
+
<body class="bg-gray-50 min-h-screen">
|
| 40 |
+
<div class="container mx-auto px-4 py-8 max-w-6xl">
|
| 41 |
+
<!-- Header -->
|
| 42 |
+
<header class="mb-10">
|
| 43 |
+
<div class="flex justify-between items-center">
|
| 44 |
+
<div class="flex items-center">
|
| 45 |
+
<i class="fas fa-keyboard text-blue-500 text-3xl mr-3"></i>
|
| 46 |
+
<h1 class="text-3xl font-bold text-gray-800">Ultra<span class="text-blue-500">Scribe</span></h1>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="flex items-center space-x-4">
|
| 49 |
+
<button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition">
|
| 50 |
+
<i class="fas fa-sign-in-alt mr-2"></i>Sign In
|
| 51 |
+
</button>
|
| 52 |
+
<button class="px-4 py-2 bg-white border border-blue-500 text-blue-500 rounded-lg hover:bg-blue-50 transition">
|
| 53 |
+
<i class="fas fa-user-plus mr-2"></i>Register
|
| 54 |
+
</button>
|
| 55 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
</div>
|
| 57 |
+
<p class="text-gray-600 mt-2">Transcribe audio & video with unmatched accuracy and speed</p>
|
| 58 |
+
</header>
|
| 59 |
|
| 60 |
+
<!-- Main Content -->
|
| 61 |
+
<main>
|
| 62 |
+
<!-- Upload Section -->
|
| 63 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 64 |
+
<div class="flex flex-col md:flex-row gap-6">
|
| 65 |
+
<!-- File Upload -->
|
| 66 |
+
<div class="flex-1">
|
| 67 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Upload Your Media</h2>
|
| 68 |
+
<div id="dropzone" class="dropzone rounded-lg p-8 text-center cursor-pointer transition">
|
| 69 |
+
<div class="flex flex-col items-center justify-center">
|
| 70 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-blue-500 mb-3"></i>
|
| 71 |
+
<p class="text-gray-600 mb-2">Drag & drop your audio or video file here</p>
|
| 72 |
+
<p class="text-sm text-gray-500 mb-4">or</p>
|
| 73 |
+
<input type="file" id="fileInput" accept="audio/*,video/*" class="hidden">
|
| 74 |
+
<label for="fileInput" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition cursor-pointer">
|
| 75 |
+
<i class="fas fa-folder-open mr-2"></i>Browse Files
|
| 76 |
+
</label>
|
| 77 |
+
<p class="text-xs text-gray-500 mt-3">Supports MP3, WAV, MP4, MOV, and more (max 2GB)</p>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<!-- Recent Files -->
|
| 83 |
+
<div class="flex-1">
|
| 84 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800">Recent Files</h2>
|
| 85 |
+
<div class="border rounded-lg p-4 h-full">
|
| 86 |
+
<div class="flex items-center justify-between mb-3 pb-2 border-b">
|
| 87 |
+
<p class="font-medium text-gray-700">No recent files</p>
|
| 88 |
+
<button class="text-blue-500 text-sm hover:underline">View All</button>
|
| 89 |
+
</div>
|
| 90 |
+
<div class="text-center py-8 text-gray-500">
|
| 91 |
+
<i class="fas fa-history text-3xl mb-2"></i>
|
| 92 |
+
<p>Your recent transcriptions will appear here</p>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
</div>
|
| 97 |
+
</div>
|
| 98 |
|
| 99 |
+
<!-- Transcription Options -->
|
| 100 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
| 101 |
+
<h2 class="text-xl font-semibold mb-6 text-gray-800">Transcription Options</h2>
|
| 102 |
+
|
| 103 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
| 104 |
+
<!-- Language Selection -->
|
| 105 |
+
<div>
|
| 106 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Language</label>
|
| 107 |
+
<select class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
|
| 108 |
+
<option>Automatic Detection</option>
|
| 109 |
+
<option>English (US)</option>
|
| 110 |
+
<option>English (UK)</option>
|
| 111 |
+
<option>Spanish</option>
|
| 112 |
+
<option>French</option>
|
| 113 |
+
<option>German</option>
|
| 114 |
+
<option>Chinese</option>
|
| 115 |
+
<option>Japanese</option>
|
| 116 |
+
<option>+50 more languages...</option>
|
| 117 |
+
</select>
|
| 118 |
+
</div>
|
| 119 |
+
|
| 120 |
+
<!-- Transcription Type -->
|
| 121 |
+
<div>
|
| 122 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Transcription Type</label>
|
| 123 |
+
<select class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
|
| 124 |
+
<option>Standard (General Purpose)</option>
|
| 125 |
+
<option>Medical</option>
|
| 126 |
+
<option>Legal</option>
|
| 127 |
+
<option>Technical</option>
|
| 128 |
+
<option>Interview</option>
|
| 129 |
+
<option>Meeting</option>
|
| 130 |
+
</select>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
|
| 134 |
+
<!-- Advanced Options -->
|
| 135 |
+
<div class="mb-6">
|
| 136 |
+
<div class="flex items-center justify-between cursor-pointer" onclick="toggleAdvancedOptions()">
|
| 137 |
+
<h3 class="font-medium text-gray-700">Advanced Options</h3>
|
| 138 |
+
<i id="advancedOptionsIcon" class="fas fa-chevron-down text-gray-500 transition-transform"></i>
|
| 139 |
+
</div>
|
| 140 |
+
<div id="advancedOptions" class="hidden mt-4 space-y-4">
|
| 141 |
+
<div class="flex items-center">
|
| 142 |
+
<input type="checkbox" id="punctuation" class="mr-2" checked>
|
| 143 |
+
<label for="punctuation" class="text-sm text-gray-700">Add punctuation</label>
|
| 144 |
+
</div>
|
| 145 |
+
<div class="flex items-center">
|
| 146 |
+
<input type="checkbox" id="speakerDiarization" class="mr-2" checked>
|
| 147 |
+
<label for="speakerDiarization" class="text-sm text-gray-700">Speaker identification</label>
|
| 148 |
+
</div>
|
| 149 |
+
<div class="flex items-center">
|
| 150 |
+
<input type="checkbox" id="profanityFilter" class="mr-2">
|
| 151 |
+
<label for="profanityFilter" class="text-sm text-gray-700">Filter profanity</label>
|
| 152 |
+
</div>
|
| 153 |
+
<div class="flex items-center">
|
| 154 |
+
<input type="checkbox" id="timestamps" class="mr-2" checked>
|
| 155 |
+
<label for="timestamps" class="text-sm text-gray-700">Include timestamps</label>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
<!-- Transcription Mode Tabs -->
|
| 161 |
+
<div class="mb-6">
|
| 162 |
+
<div class="flex border-b">
|
| 163 |
+
<button id="aiTab" class="px-4 py-2 font-medium text-gray-700 tab-active" onclick="switchTab('ai')">
|
| 164 |
+
<i class="fas fa-robot mr-2"></i>AI Transcription
|
| 165 |
+
</button>
|
| 166 |
+
<button id="manualTab" class="px-4 py-2 font-medium text-gray-700" onclick="switchTab('manual')">
|
| 167 |
+
<i class="fas fa-user-edit mr-2"></i>Manual Transcription
|
| 168 |
+
</button>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<!-- AI Transcription Content -->
|
| 172 |
+
<div id="aiContent" class="mt-4">
|
| 173 |
+
<div class="bg-blue-50 border border-blue-200 rounded-lg p-4 mb-4">
|
| 174 |
+
<div class="flex items-start">
|
| 175 |
+
<i class="fas fa-info-circle text-blue-500 mt-1 mr-2"></i>
|
| 176 |
+
<p class="text-sm text-blue-800">Our AI transcription is 95% accurate and processes files up to 10x faster than competitors.</p>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
<button id="startAiTranscription" class="w-full py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition flex items-center justify-center">
|
| 180 |
+
<i class="fas fa-play mr-2"></i>Start AI Transcription
|
| 181 |
+
</button>
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<!-- Manual Transcription Content -->
|
| 185 |
+
<div id="manualContent" class="hidden mt-4">
|
| 186 |
+
<div class="bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-4">
|
| 187 |
+
<div class="flex items-start">
|
| 188 |
+
<i class="fas fa-exclamation-circle text-yellow-500 mt-1 mr-2"></i>
|
| 189 |
+
<p class="text-sm text-yellow-800">Manual transcription gives you complete control but requires more time and effort.</p>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
|
| 193 |
+
<button id="playPauseBtn" class="py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition flex items-center justify-center">
|
| 194 |
+
<i class="fas fa-play mr-2"></i>Play/Pause
|
| 195 |
</button>
|
| 196 |
+
<button id="rewindBtn" class="py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition flex items-center justify-center">
|
| 197 |
+
<i class="fas fa-backward mr-2"></i>Rewind 5s
|
|
|
|
| 198 |
</button>
|
| 199 |
</div>
|
| 200 |
+
<div class="mb-4">
|
| 201 |
+
<div class="waveform h-8 rounded-lg mb-2" style="--progress: 0%"></div>
|
| 202 |
+
<div class="flex justify-between text-xs text-gray-500">
|
| 203 |
+
<span>0:00</span>
|
| 204 |
+
<span id="duration">0:00</span>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
<div class="mb-4">
|
| 208 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Playback Speed</label>
|
| 209 |
+
<select id="playbackSpeed" class="w-full p-2 border border-gray-300 rounded-lg">
|
| 210 |
+
<option value="0.5">0.5x</option>
|
| 211 |
+
<option value="0.75">0.75x</option>
|
| 212 |
+
<option value="1" selected>1x (Normal)</option>
|
| 213 |
+
<option value="1.25">1.25x</option>
|
| 214 |
+
<option value="1.5">1.5x</option>
|
| 215 |
+
<option value="2">2x</option>
|
| 216 |
+
</select>
|
| 217 |
+
</div>
|
| 218 |
+
<div class="editor-container rounded-lg p-4 bg-gray-50">
|
| 219 |
+
<textarea class="w-full h-40 p-2 focus:outline-none bg-transparent" placeholder="Start typing your transcription here..."></textarea>
|
| 220 |
+
</div>
|
| 221 |
</div>
|
| 222 |
</div>
|
| 223 |
+
</div>
|
| 224 |
|
| 225 |
+
<!-- Processing State (Hidden by default) -->
|
| 226 |
+
<div id="processingState" class="hidden bg-white rounded-xl shadow-md p-6 mb-8">
|
| 227 |
+
<div class="text-center py-8">
|
| 228 |
+
<div class="animate-pulse mb-4">
|
| 229 |
+
<i class="fas fa-cogs text-4xl text-blue-500"></i>
|
| 230 |
+
</div>
|
| 231 |
+
<h3 class="text-xl font-semibold mb-2 text-gray-800">Processing Your File</h3>
|
| 232 |
+
<p class="text-gray-600 mb-4">Our AI is transcribing your audio with industry-leading accuracy</p>
|
| 233 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5 mb-4">
|
| 234 |
+
<div id="progressBar" class="bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
|
| 235 |
+
</div>
|
| 236 |
+
<p id="progressText" class="text-sm text-gray-500">Estimated time remaining: <span id="timeRemaining">30 seconds</span></p>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
|
|
|
|
|
|
|
|
|
| 239 |
|
| 240 |
+
<!-- Results Section (Hidden by default) -->
|
| 241 |
+
<div id="resultsSection" class="hidden bg-white rounded-xl shadow-md p-6">
|
| 242 |
+
<div class="flex justify-between items-center mb-6">
|
| 243 |
+
<h2 class="text-xl font-semibold text-gray-800">Transcription Results</h2>
|
| 244 |
+
<div class="flex space-x-2">
|
| 245 |
+
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">
|
| 246 |
+
<i class="fas fa-download mr-1"></i>Download
|
| 247 |
+
</button>
|
| 248 |
+
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">
|
| 249 |
+
<i class="fas fa-copy mr-1"></i>Copy
|
| 250 |
+
</button>
|
| 251 |
+
<button class="px-3 py-1 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition">
|
| 252 |
+
<i class="fas fa-edit mr-1"></i>Edit
|
| 253 |
+
</button>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
|
| 257 |
+
<div class="flex flex-col md:flex-row gap-6">
|
| 258 |
+
<!-- Transcription Text -->
|
| 259 |
+
<div class="flex-1">
|
| 260 |
+
<div class="border rounded-lg p-4 h-full">
|
| 261 |
+
<div class="flex items-center justify-between mb-3 pb-2 border-b">
|
| 262 |
+
<p class="font-medium text-gray-700">Transcription Text</p>
|
| 263 |
+
<div class="flex items-center space-x-2">
|
| 264 |
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">95% Accuracy</span>
|
| 265 |
+
<button class="text-blue-500 text-sm hover:underline">Show Timestamps</button>
|
| 266 |
</div>
|
|
|
|
| 267 |
</div>
|
| 268 |
+
<div id="transcriptionText" class="prose max-w-none">
|
| 269 |
+
<p>[00:00] Speaker 1: Welcome everyone to today's meeting. Let's begin with the quarterly report.</p>
|
| 270 |
+
<p>[00:05] Speaker 2: Thank you. As you can see on slide one, our revenue has increased by 15% compared to last quarter.</p>
|
| 271 |
+
<p>[00:12] Speaker 1: That's excellent news. What were the main drivers of this growth?</p>
|
| 272 |
+
<p>[00:16] Speaker 2: The primary factors were our new product line and expanded marketing efforts in the European market.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
</div>
|
| 274 |
</div>
|
| 275 |
</div>
|
| 276 |
+
|
| 277 |
+
<!-- Media Player -->
|
| 278 |
+
<div class="flex-1">
|
| 279 |
+
<div class="border rounded-lg p-4 h-full">
|
| 280 |
+
<div class="flex items-center justify-between mb-3 pb-2 border-b">
|
| 281 |
+
<p class="font-medium text-gray-700">Media Player</p>
|
| 282 |
+
<button class="text-blue-500 text-sm hover:underline">Sync Text</button>
|
| 283 |
+
</div>
|
| 284 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-100 rounded-lg mb-4 flex items-center justify-center">
|
| 285 |
+
<i class="fas fa-play-circle text-5xl text-blue-500 opacity-70"></i>
|
| 286 |
+
</div>
|
| 287 |
+
<div class="waveform h-8 rounded-lg mb-2" style="--progress: 30%"></div>
|
| 288 |
+
<div class="flex justify-between text-sm text-gray-500 mb-4">
|
| 289 |
+
<span>0:30</span>
|
| 290 |
+
<span>2:45</span>
|
| 291 |
+
</div>
|
| 292 |
+
<div class="flex justify-center space-x-4">
|
| 293 |
+
<button class="p-2 text-gray-700 hover:text-blue-500">
|
| 294 |
+
<i class="fas fa-backward"></i>
|
| 295 |
+
</button>
|
| 296 |
+
<button class="p-2 text-gray-700 hover:text-blue-500">
|
| 297 |
+
<i class="fas fa-play"></i>
|
| 298 |
+
</button>
|
| 299 |
+
<button class="p-2 text-gray-700 hover:text-blue-500">
|
| 300 |
+
<i class="fas fa-forward"></i>
|
| 301 |
+
</button>
|
| 302 |
+
<button class="p-2 text-gray-700 hover:text-blue-500">
|
| 303 |
+
<i class="fas fa-volume-up"></i>
|
| 304 |
+
</button>
|
| 305 |
+
</div>
|
| 306 |
</div>
|
| 307 |
</div>
|
| 308 |
</div>
|
| 309 |
+
|
| 310 |
+
<!-- Action Buttons -->
|
| 311 |
+
<div class="flex justify-end space-x-3 mt-6">
|
| 312 |
+
<button class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">
|
| 313 |
+
<i class="fas fa-redo mr-2"></i>Retry
|
| 314 |
+
</button>
|
| 315 |
+
<button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition">
|
| 316 |
+
<i class="fas fa-save mr-2"></i>Save Transcription
|
| 317 |
+
</button>
|
| 318 |
+
</div>
|
| 319 |
+
</div>
|
| 320 |
+
</main>
|
| 321 |
+
|
| 322 |
+
<!-- Features Section -->
|
| 323 |
+
<section class="bg-white rounded-xl shadow-md p-6 mt-8">
|
| 324 |
+
<h2 class="text-xl font-semibold mb-6 text-center text-gray-800">Why UltraScribe is Better</h2>
|
| 325 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 326 |
+
<div class="text-center p-4">
|
| 327 |
+
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 328 |
+
<i class="fas fa-bolt text-blue-500 text-2xl"></i>
|
| 329 |
+
</div>
|
| 330 |
+
<h3 class="font-semibold mb-2">Lightning Fast</h3>
|
| 331 |
+
<p class="text-gray-600 text-sm">Process files up to 10x faster than competitors with our optimized AI engine.</p>
|
| 332 |
+
</div>
|
| 333 |
+
<div class="text-center p-4">
|
| 334 |
+
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 335 |
+
<i class="fas fa-bullseye text-green-500 text-2xl"></i>
|
| 336 |
+
</div>
|
| 337 |
+
<h3 class="font-semibold mb-2">95% Accuracy</h3>
|
| 338 |
+
<p class="text-gray-600 text-sm">Industry-leading accuracy with context-aware transcription technology.</p>
|
| 339 |
+
</div>
|
| 340 |
+
<div class="text-center p-4">
|
| 341 |
+
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 342 |
+
<i class="fas fa-lock text-purple-500 text-2xl"></i>
|
| 343 |
+
</div>
|
| 344 |
+
<h3 class="font-semibold mb-2">Secure & Private</h3>
|
| 345 |
+
<p class="text-gray-600 text-sm">Military-grade encryption and automatic deletion options for your files.</p>
|
| 346 |
+
</div>
|
| 347 |
+
</div>
|
| 348 |
+
</section>
|
| 349 |
+
|
| 350 |
+
<!-- Footer -->
|
| 351 |
+
<footer class="mt-12 pt-8 border-t border-gray-200">
|
| 352 |
+
<div class="flex flex-col md:flex-row justify-between">
|
| 353 |
+
<div class="mb-6 md:mb-0">
|
| 354 |
+
<div class="flex items-center">
|
| 355 |
+
<i class="fas fa-keyboard text-blue-500 text-2xl mr-2"></i>
|
| 356 |
+
<h2 class="text-xl font-bold text-gray-800">Ultra<span class="text-blue-500">Scribe</span></h2>
|
| 357 |
+
</div>
|
| 358 |
+
<p class="text-gray-600 mt-2 text-sm">The most powerful transcription tool on the planet.</p>
|
| 359 |
+
</div>
|
| 360 |
+
<div class="grid grid-cols-2 md:grid-cols-3 gap-8">
|
| 361 |
+
<div>
|
| 362 |
+
<h3 class="text-sm font-semibold text-gray-900 uppercase tracking-wider mb-4">Product</h3>
|
| 363 |
+
<ul class="space-y-2">
|
| 364 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Features</a></li>
|
| 365 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Pricing</a></li>
|
| 366 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">API</a></li>
|
| 367 |
+
</ul>
|
| 368 |
+
</div>
|
| 369 |
+
<div>
|
| 370 |
+
<h3 class="text-sm font-semibold text-gray-900 uppercase tracking-wider mb-4">Resources</h3>
|
| 371 |
+
<ul class="space-y-2">
|
| 372 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Documentation</a></li>
|
| 373 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Help Center</a></li>
|
| 374 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Blog</a></li>
|
| 375 |
+
</ul>
|
| 376 |
+
</div>
|
| 377 |
+
<div>
|
| 378 |
+
<h3 class="text-sm font-semibold text-gray-900 uppercase tracking-wider mb-4">Company</h3>
|
| 379 |
+
<ul class="space-y-2">
|
| 380 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">About</a></li>
|
| 381 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Careers</a></li>
|
| 382 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Contact</a></li>
|
| 383 |
+
</ul>
|
| 384 |
+
</div>
|
| 385 |
+
</div>
|
| 386 |
</div>
|
| 387 |
+
<div class="mt-8 pt-8 border-t border-gray-200 flex flex-col md:flex-row justify-between items-center">
|
| 388 |
+
<p class="text-gray-500 text-sm mb-4 md:mb-0">© 2023 UltraScribe. All rights reserved.</p>
|
| 389 |
+
<div class="flex space-x-6">
|
| 390 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 391 |
+
<i class="fab fa-twitter"></i>
|
| 392 |
+
</a>
|
| 393 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 394 |
+
<i class="fab fa-facebook"></i>
|
| 395 |
+
</a>
|
| 396 |
+
<a href="#" class="text-gray-400 hover:text-gray-500">
|
| 397 |
+
<i class="fab fa-linkedin"></i>
|
| 398 |
+
</a>
|
| 399 |
+
</div>
|
| 400 |
+
</div>
|
| 401 |
+
</footer>
|
| 402 |
</div>
|
| 403 |
|
|
|
|
| 404 |
<script>
|
| 405 |
+
// Dropzone functionality
|
| 406 |
+
const dropzone = document.getElementById('dropzone');
|
| 407 |
+
const fileInput = document.getElementById('fileInput');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 408 |
|
| 409 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 410 |
+
dropzone.addEventListener(eventName, preventDefaults, false);
|
| 411 |
+
});
|
| 412 |
|
| 413 |
+
function preventDefaults(e) {
|
| 414 |
+
e.preventDefault();
|
| 415 |
+
e.stopPropagation();
|
| 416 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 417 |
|
| 418 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
| 419 |
+
dropzone.addEventListener(eventName, highlight, false);
|
|
|
|
| 420 |
});
|
| 421 |
|
| 422 |
+
['dragleave', 'drop'].forEach(eventName => {
|
| 423 |
+
dropzone.addEventListener(eventName, unhighlight, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 424 |
});
|
| 425 |
|
| 426 |
+
function highlight() {
|
| 427 |
+
dropzone.classList.add('active');
|
| 428 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
|
| 430 |
+
function unhighlight() {
|
| 431 |
+
dropzone.classList.remove('active');
|
| 432 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 433 |
|
| 434 |
+
dropzone.addEventListener('drop', handleDrop, false);
|
|
|
|
|
|
|
| 435 |
|
| 436 |
+
function handleDrop(e) {
|
| 437 |
+
const dt = e.dataTransfer;
|
| 438 |
+
const files = dt.files;
|
| 439 |
+
handleFiles(files);
|
| 440 |
+
}
|
| 441 |
|
| 442 |
+
fileInput.addEventListener('change', function() {
|
| 443 |
+
handleFiles(this.files);
|
| 444 |
+
});
|
|
|
|
| 445 |
|
| 446 |
+
function handleFiles(files) {
|
| 447 |
+
if (files.length) {
|
| 448 |
+
const file = files[0];
|
| 449 |
+
console.log('File selected:', file.name);
|
| 450 |
+
// Here you would typically upload the file
|
| 451 |
+
dropzone.innerHTML = `
|
| 452 |
+
<div class="flex items-center justify-between">
|
| 453 |
+
<div class="flex items-center">
|
| 454 |
+
<i class="fas fa-file-alt text-2xl text-blue-500 mr-3"></i>
|
| 455 |
+
<div>
|
| 456 |
+
<p class="text-gray-800 font-medium">${file.name}</p>
|
| 457 |
+
<p class="text-sm text-gray-500">${(file.size / (1024 * 1024)).toFixed(2)} MB</p>
|
| 458 |
+
</div>
|
| 459 |
+
</div>
|
| 460 |
+
<button onclick="removeFile()" class="text-red-500 hover:text-red-700">
|
| 461 |
+
<i class="fas fa-times"></i>
|
| 462 |
+
</button>
|
| 463 |
</div>
|
| 464 |
`;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 465 |
}
|
| 466 |
+
}
|
| 467 |
|
| 468 |
+
function removeFile() {
|
| 469 |
+
fileInput.value = '';
|
| 470 |
+
dropzone.innerHTML = `
|
| 471 |
+
<div class="flex flex-col items-center justify-center">
|
| 472 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-blue-500 mb-3"></i>
|
| 473 |
+
<p class="text-gray-600 mb-2">Drag & drop your audio or video file here</p>
|
| 474 |
+
<p class="text-sm text-gray-500 mb-4">or</p>
|
| 475 |
+
<label for="fileInput" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition cursor-pointer">
|
| 476 |
+
<i class="fas fa-folder-open mr-2"></i>Browse Files
|
| 477 |
+
</label>
|
| 478 |
+
<p class="text-xs text-gray-500 mt-3">Supports MP3, WAV, MP4, MOV, and more (max 2GB)</p>
|
| 479 |
+
</div>
|
| 480 |
+
`;
|
| 481 |
+
}
|
| 482 |
|
| 483 |
+
// Tab switching
|
| 484 |
+
function switchTab(tab) {
|
| 485 |
+
if (tab === 'ai') {
|
| 486 |
+
document.getElementById('aiTab').classList.add('tab-active');
|
| 487 |
+
document.getElementById('manualTab').classList.remove('tab-active');
|
| 488 |
+
document.getElementById('aiContent').classList.remove('hidden');
|
| 489 |
+
document.getElementById('manualContent').classList.add('hidden');
|
| 490 |
+
} else {
|
| 491 |
+
document.getElementById('manualTab').classList.add('tab-active');
|
| 492 |
+
document.getElementById('aiTab').classList.remove('tab-active');
|
| 493 |
+
document.getElementById('manualContent').classList.remove('hidden');
|
| 494 |
+
document.getElementById('aiContent').classList.add('hidden');
|
| 495 |
+
}
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
// Advanced options toggle
|
| 499 |
+
function toggleAdvancedOptions() {
|
| 500 |
+
const options = document.getElementById('advancedOptions');
|
| 501 |
+
const icon = document.getElementById('advancedOptionsIcon');
|
| 502 |
+
if (options.classList.contains('hidden')) {
|
| 503 |
+
options.classList.remove('hidden');
|
| 504 |
+
icon.classList.add('rotate-180');
|
| 505 |
+
} else {
|
| 506 |
+
options.classList.add('hidden');
|
| 507 |
+
icon.classList.remove('rotate-180');
|
| 508 |
+
}
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
// Simulate AI transcription
|
| 512 |
+
document.getElementById('startAiTranscription').addEventListener('click', function() {
|
| 513 |
+
document.getElementById('processingState').classList.remove('hidden');
|
| 514 |
+
|
| 515 |
+
let progress = 0;
|
| 516 |
+
const progressBar = document.getElementById('progressBar');
|
| 517 |
+
const progressText = document.getElementById('progressText');
|
| 518 |
+
const timeRemaining = document.getElementById('timeRemaining');
|
| 519 |
+
|
| 520 |
+
const interval = setInterval(() => {
|
| 521 |
+
progress += Math.random() * 5;
|
| 522 |
+
if (progress > 100) progress = 100;
|
| 523 |
+
progressBar.style.width = `${progress}%`;
|
| 524 |
+
|
| 525 |
+
const remaining = Math.floor((100 - progress) / 5);
|
| 526 |
+
timeRemaining.textContent = `${remaining} seconds`;
|
| 527 |
+
|
| 528 |
+
if (progress === 100) {
|
| 529 |
+
clearInterval(interval);
|
| 530 |
+
setTimeout(() => {
|
| 531 |
+
document.getElementById('processingState').classList.add('hidden');
|
| 532 |
+
document.getElementById('resultsSection').classList.remove('hidden');
|
| 533 |
+
}, 500);
|
| 534 |
+
}
|
| 535 |
+
}, 500);
|
| 536 |
});
|
| 537 |
|
| 538 |
+
// Manual transcription controls
|
| 539 |
+
document.getElementById('playPauseBtn').addEventListener('click', function() {
|
| 540 |
+
const icon = this.querySelector('i');
|
| 541 |
+
if (icon.classList.contains('fa-play')) {
|
| 542 |
+
icon.classList.remove('fa-play');
|
| 543 |
+
icon.classList.add('fa-pause');
|
| 544 |
+
} else {
|
| 545 |
+
icon.classList.remove('fa-pause');
|
| 546 |
+
icon.classList.add('fa-play');
|
| 547 |
+
}
|
| 548 |
});
|
| 549 |
|
| 550 |
+
document.getElementById('rewindBtn').addEventListener('click', function() {
|
| 551 |
+
// Rewind functionality would go here
|
| 552 |
+
console.log('Rewinding 5 seconds');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 553 |
});
|
| 554 |
|
| 555 |
+
// Playback speed change
|
| 556 |
+
document.getElementById('playbackSpeed').addEventListener('change', function() {
|
| 557 |
+
console.log('Playback speed changed to:', this.value);
|
| 558 |
+
});
|
| 559 |
</script>
|
| 560 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://deepsite.hf.co/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/transcriber" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 561 |
+
</html>
|
prompts.txt
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
generate the best of the be Transcriber ( Audio and Video) that even TurboScribe can not match . it supposed to be simple but powerful. it should have both the Manual transcription and the AI transcription
|