Spaces:
Running
Running
File size: 31,346 Bytes
03f5670 ab5d0df 49b63d2 03f5670 ab5d0df 79e77c3 ab5d0df 49b63d2 03f5670 ab5d0df 79e77c3 ab5d0df 49b63d2 ab5d0df 49b63d2 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 49b63d2 ab5d0df 49b63d2 ab5d0df 49b63d2 03f5670 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 49b63d2 ab5d0df 49b63d2 03f5670 ab5d0df 49b63d2 03f5670 ab5d0df 03f5670 ab5d0df 03f5670 79e77c3 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 49b63d2 03f5670 ab5d0df 49b63d2 79e77c3 ab5d0df 03f5670 ab5d0df 79e77c3 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 49b63d2 79e77c3 ab5d0df 03f5670 ab5d0df 03f5670 ab5d0df 79e77c3 03f5670 ab5d0df 49b63d2 03f5670 ab5d0df 03f5670 49b63d2 ab5d0df 03f5670 ab5d0df | 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 103 104 105 106 107 108 109 110 111 112 113 114 115 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 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 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 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UltraScribe - The Ultimate Transcription Tool</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.waveform {
background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 var(--progress, 0%), #e5e7eb var(--progress, 0%), #e5e7eb 100%);
}
.editor-container {
min-height: 300px;
border: 1px solid #e5e7eb;
}
.tab-active {
border-bottom: 3px solid #3b82f6;
color: #3b82f6;
font-weight: 600;
}
.dropzone {
border: 2px dashed #9ca3af;
transition: all 0.3s ease;
}
.dropzone.active {
border-color: #3b82f6;
background-color: #f0f7ff;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<div class="container mx-auto px-4 py-8 max-w-6xl">
<!-- Header -->
<header class="mb-10">
<div class="flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-keyboard text-blue-500 text-3xl mr-3"></i>
<h1 class="text-3xl font-bold text-gray-800">Ultra<span class="text-blue-500">Scribe</span></h1>
</div>
<div class="flex items-center space-x-4">
<button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition">
<i class="fas fa-sign-in-alt mr-2"></i>Sign In
</button>
<button class="px-4 py-2 bg-white border border-blue-500 text-blue-500 rounded-lg hover:bg-blue-50 transition">
<i class="fas fa-user-plus mr-2"></i>Register
</button>
</div>
</div>
<p class="text-gray-600 mt-2">Transcribe audio & video with unmatched accuracy and speed</p>
</header>
<!-- Main Content -->
<main>
<!-- Upload Section -->
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<div class="flex flex-col md:flex-row gap-6">
<!-- File Upload -->
<div class="flex-1">
<h2 class="text-xl font-semibold mb-4 text-gray-800">Upload Your Media</h2>
<div id="dropzone" class="dropzone rounded-lg p-8 text-center cursor-pointer transition">
<div class="flex flex-col items-center justify-center">
<i class="fas fa-cloud-upload-alt text-4xl text-blue-500 mb-3"></i>
<p class="text-gray-600 mb-2">Drag & drop your audio or video file here</p>
<p class="text-sm text-gray-500 mb-4">or</p>
<input type="file" id="fileInput" accept="audio/*,video/*" class="hidden">
<label for="fileInput" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition cursor-pointer">
<i class="fas fa-folder-open mr-2"></i>Browse Files
</label>
<p class="text-xs text-gray-500 mt-3">Supports MP3, WAV, MP4, MOV, and more (max 2GB)</p>
</div>
</div>
</div>
<!-- Recent Files -->
<div class="flex-1">
<h2 class="text-xl font-semibold mb-4 text-gray-800">Recent Files</h2>
<div class="border rounded-lg p-4 h-full">
<div class="flex items-center justify-between mb-3 pb-2 border-b">
<p class="font-medium text-gray-700">No recent files</p>
<button class="text-blue-500 text-sm hover:underline">View All</button>
</div>
<div class="text-center py-8 text-gray-500">
<i class="fas fa-history text-3xl mb-2"></i>
<p>Your recent transcriptions will appear here</p>
</div>
</div>
</div>
</div>
</div>
<!-- Transcription Options -->
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<h2 class="text-xl font-semibold mb-6 text-gray-800">Transcription Options</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<!-- Language Selection -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Language</label>
<select class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
<option>Automatic Detection</option>
<option>English (US)</option>
<option>English (UK)</option>
<option>Spanish</option>
<option>French</option>
<option>German</option>
<option>Chinese</option>
<option>Japanese</option>
<option>+50 more languages...</option>
</select>
</div>
<!-- Transcription Type -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Transcription Type</label>
<select class="w-full p-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500">
<option>Standard (General Purpose)</option>
<option>Medical</option>
<option>Legal</option>
<option>Technical</option>
<option>Interview</option>
<option>Meeting</option>
</select>
</div>
</div>
<!-- Advanced Options -->
<div class="mb-6">
<div class="flex items-center justify-between cursor-pointer" onclick="toggleAdvancedOptions()">
<h3 class="font-medium text-gray-700">Advanced Options</h3>
<i id="advancedOptionsIcon" class="fas fa-chevron-down text-gray-500 transition-transform"></i>
</div>
<div id="advancedOptions" class="hidden mt-4 space-y-4">
<div class="flex items-center">
<input type="checkbox" id="punctuation" class="mr-2" checked>
<label for="punctuation" class="text-sm text-gray-700">Add punctuation</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="speakerDiarization" class="mr-2" checked>
<label for="speakerDiarization" class="text-sm text-gray-700">Speaker identification</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="profanityFilter" class="mr-2">
<label for="profanityFilter" class="text-sm text-gray-700">Filter profanity</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="timestamps" class="mr-2" checked>
<label for="timestamps" class="text-sm text-gray-700">Include timestamps</label>
</div>
</div>
</div>
<!-- Transcription Mode Tabs -->
<div class="mb-6">
<div class="flex border-b">
<button id="aiTab" class="px-4 py-2 font-medium text-gray-700 tab-active" onclick="switchTab('ai')">
<i class="fas fa-robot mr-2"></i>AI Transcription
</button>
<button id="manualTab" class="px-4 py-2 font-medium text-gray-700" onclick="switchTab('manual')">
<i class="fas fa-user-edit mr-2"></i>Manual Transcription
</button>
</div>
<!-- AI Transcription Content -->
<div id="aiContent" class="mt-4">
<div class="bg-blue-50 border border-blue-200 rounded-lg p-4 mb-4">
<div class="flex items-start">
<i class="fas fa-info-circle text-blue-500 mt-1 mr-2"></i>
<p class="text-sm text-blue-800">Our AI transcription is 95% accurate and processes files up to 10x faster than competitors.</p>
</div>
</div>
<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">
<i class="fas fa-play mr-2"></i>Start AI Transcription
</button>
</div>
<!-- Manual Transcription Content -->
<div id="manualContent" class="hidden mt-4">
<div class="bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-4">
<div class="flex items-start">
<i class="fas fa-exclamation-circle text-yellow-500 mt-1 mr-2"></i>
<p class="text-sm text-yellow-800">Manual transcription gives you complete control but requires more time and effort.</p>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
<button id="playPauseBtn" class="py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition flex items-center justify-center">
<i class="fas fa-play mr-2"></i>Play/Pause
</button>
<button id="rewindBtn" class="py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition flex items-center justify-center">
<i class="fas fa-backward mr-2"></i>Rewind 5s
</button>
</div>
<div class="mb-4">
<div class="waveform h-8 rounded-lg mb-2" style="--progress: 0%"></div>
<div class="flex justify-between text-xs text-gray-500">
<span>0:00</span>
<span id="duration">0:00</span>
</div>
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Playback Speed</label>
<select id="playbackSpeed" class="w-full p-2 border border-gray-300 rounded-lg">
<option value="0.5">0.5x</option>
<option value="0.75">0.75x</option>
<option value="1" selected>1x (Normal)</option>
<option value="1.25">1.25x</option>
<option value="1.5">1.5x</option>
<option value="2">2x</option>
</select>
</div>
<div class="editor-container rounded-lg p-4 bg-gray-50">
<textarea class="w-full h-40 p-2 focus:outline-none bg-transparent" placeholder="Start typing your transcription here..."></textarea>
</div>
</div>
</div>
</div>
<!-- Processing State (Hidden by default) -->
<div id="processingState" class="hidden bg-white rounded-xl shadow-md p-6 mb-8">
<div class="text-center py-8">
<div class="animate-pulse mb-4">
<i class="fas fa-cogs text-4xl text-blue-500"></i>
</div>
<h3 class="text-xl font-semibold mb-2 text-gray-800">Processing Your File</h3>
<p class="text-gray-600 mb-4">Our AI is transcribing your audio with industry-leading accuracy</p>
<div class="w-full bg-gray-200 rounded-full h-2.5 mb-4">
<div id="progressBar" class="bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
</div>
<p id="progressText" class="text-sm text-gray-500">Estimated time remaining: <span id="timeRemaining">30 seconds</span></p>
</div>
</div>
<!-- Results Section (Hidden by default) -->
<div id="resultsSection" class="hidden bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-800">Transcription Results</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">
<i class="fas fa-download mr-1"></i>Download
</button>
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">
<i class="fas fa-copy mr-1"></i>Copy
</button>
<button class="px-3 py-1 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition">
<i class="fas fa-edit mr-1"></i>Edit
</button>
</div>
</div>
<div class="flex flex-col md:flex-row gap-6">
<!-- Transcription Text -->
<div class="flex-1">
<div class="border rounded-lg p-4 h-full">
<div class="flex items-center justify-between mb-3 pb-2 border-b">
<p class="font-medium text-gray-700">Transcription Text</p>
<div class="flex items-center space-x-2">
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">95% Accuracy</span>
<button class="text-blue-500 text-sm hover:underline">Show Timestamps</button>
</div>
</div>
<div id="transcriptionText" class="prose max-w-none">
<p>[00:00] Speaker 1: Welcome everyone to today's meeting. Let's begin with the quarterly report.</p>
<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>
<p>[00:12] Speaker 1: That's excellent news. What were the main drivers of this growth?</p>
<p>[00:16] Speaker 2: The primary factors were our new product line and expanded marketing efforts in the European market.</p>
</div>
</div>
</div>
<!-- Media Player -->
<div class="flex-1">
<div class="border rounded-lg p-4 h-full">
<div class="flex items-center justify-between mb-3 pb-2 border-b">
<p class="font-medium text-gray-700">Media Player</p>
<button class="text-blue-500 text-sm hover:underline">Sync Text</button>
</div>
<div class="aspect-w-16 aspect-h-9 bg-gray-100 rounded-lg mb-4 flex items-center justify-center">
<i class="fas fa-play-circle text-5xl text-blue-500 opacity-70"></i>
</div>
<div class="waveform h-8 rounded-lg mb-2" style="--progress: 30%"></div>
<div class="flex justify-between text-sm text-gray-500 mb-4">
<span>0:30</span>
<span>2:45</span>
</div>
<div class="flex justify-center space-x-4">
<button class="p-2 text-gray-700 hover:text-blue-500">
<i class="fas fa-backward"></i>
</button>
<button class="p-2 text-gray-700 hover:text-blue-500">
<i class="fas fa-play"></i>
</button>
<button class="p-2 text-gray-700 hover:text-blue-500">
<i class="fas fa-forward"></i>
</button>
<button class="p-2 text-gray-700 hover:text-blue-500">
<i class="fas fa-volume-up"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Action Buttons -->
<div class="flex justify-end space-x-3 mt-6">
<button class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition">
<i class="fas fa-redo mr-2"></i>Retry
</button>
<button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition">
<i class="fas fa-save mr-2"></i>Save Transcription
</button>
</div>
</div>
</main>
<!-- Features Section -->
<section class="bg-white rounded-xl shadow-md p-6 mt-8">
<h2 class="text-xl font-semibold mb-6 text-center text-gray-800">Why UltraScribe is Better</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="text-center p-4">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-bolt text-blue-500 text-2xl"></i>
</div>
<h3 class="font-semibold mb-2">Lightning Fast</h3>
<p class="text-gray-600 text-sm">Process files up to 10x faster than competitors with our optimized AI engine.</p>
</div>
<div class="text-center p-4">
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-bullseye text-green-500 text-2xl"></i>
</div>
<h3 class="font-semibold mb-2">95% Accuracy</h3>
<p class="text-gray-600 text-sm">Industry-leading accuracy with context-aware transcription technology.</p>
</div>
<div class="text-center p-4">
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-lock text-purple-500 text-2xl"></i>
</div>
<h3 class="font-semibold mb-2">Secure & Private</h3>
<p class="text-gray-600 text-sm">Military-grade encryption and automatic deletion options for your files.</p>
</div>
</div>
</section>
<!-- Footer -->
<footer class="mt-12 pt-8 border-t border-gray-200">
<div class="flex flex-col md:flex-row justify-between">
<div class="mb-6 md:mb-0">
<div class="flex items-center">
<i class="fas fa-keyboard text-blue-500 text-2xl mr-2"></i>
<h2 class="text-xl font-bold text-gray-800">Ultra<span class="text-blue-500">Scribe</span></h2>
</div>
<p class="text-gray-600 mt-2 text-sm">The most powerful transcription tool on the planet.</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 gap-8">
<div>
<h3 class="text-sm font-semibold text-gray-900 uppercase tracking-wider mb-4">Product</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Features</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Pricing</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">API</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-900 uppercase tracking-wider mb-4">Resources</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Documentation</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Help Center</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Blog</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-900 uppercase tracking-wider mb-4">Company</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">About</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Careers</a></li>
<li><a href="#" class="text-gray-600 hover:text-blue-500 text-sm">Contact</a></li>
</ul>
</div>
</div>
</div>
<div class="mt-8 pt-8 border-t border-gray-200 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-500 text-sm mb-4 md:mb-0">© 2023 UltraScribe. All rights reserved.</p>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-gray-500">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-gray-500">
<i class="fab fa-facebook"></i>
</a>
<a href="#" class="text-gray-400 hover:text-gray-500">
<i class="fab fa-linkedin"></i>
</a>
</div>
</div>
</footer>
</div>
<script>
// Dropzone functionality
const dropzone = document.getElementById('dropzone');
const fileInput = document.getElementById('fileInput');
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
dropzone.addEventListener(eventName, preventDefaults, false);
});
function preventDefaults(e) {
e.preventDefault();
e.stopPropagation();
}
['dragenter', 'dragover'].forEach(eventName => {
dropzone.addEventListener(eventName, highlight, false);
});
['dragleave', 'drop'].forEach(eventName => {
dropzone.addEventListener(eventName, unhighlight, false);
});
function highlight() {
dropzone.classList.add('active');
}
function unhighlight() {
dropzone.classList.remove('active');
}
dropzone.addEventListener('drop', handleDrop, false);
function handleDrop(e) {
const dt = e.dataTransfer;
const files = dt.files;
handleFiles(files);
}
fileInput.addEventListener('change', function() {
handleFiles(this.files);
});
function handleFiles(files) {
if (files.length) {
const file = files[0];
console.log('File selected:', file.name);
// Here you would typically upload the file
dropzone.innerHTML = `
<div class="flex items-center justify-between">
<div class="flex items-center">
<i class="fas fa-file-alt text-2xl text-blue-500 mr-3"></i>
<div>
<p class="text-gray-800 font-medium">${file.name}</p>
<p class="text-sm text-gray-500">${(file.size / (1024 * 1024)).toFixed(2)} MB</p>
</div>
</div>
<button onclick="removeFile()" class="text-red-500 hover:text-red-700">
<i class="fas fa-times"></i>
</button>
</div>
`;
}
}
function removeFile() {
fileInput.value = '';
dropzone.innerHTML = `
<div class="flex flex-col items-center justify-center">
<i class="fas fa-cloud-upload-alt text-4xl text-blue-500 mb-3"></i>
<p class="text-gray-600 mb-2">Drag & drop your audio or video file here</p>
<p class="text-sm text-gray-500 mb-4">or</p>
<label for="fileInput" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition cursor-pointer">
<i class="fas fa-folder-open mr-2"></i>Browse Files
</label>
<p class="text-xs text-gray-500 mt-3">Supports MP3, WAV, MP4, MOV, and more (max 2GB)</p>
</div>
`;
}
// Tab switching
function switchTab(tab) {
if (tab === 'ai') {
document.getElementById('aiTab').classList.add('tab-active');
document.getElementById('manualTab').classList.remove('tab-active');
document.getElementById('aiContent').classList.remove('hidden');
document.getElementById('manualContent').classList.add('hidden');
} else {
document.getElementById('manualTab').classList.add('tab-active');
document.getElementById('aiTab').classList.remove('tab-active');
document.getElementById('manualContent').classList.remove('hidden');
document.getElementById('aiContent').classList.add('hidden');
}
}
// Advanced options toggle
function toggleAdvancedOptions() {
const options = document.getElementById('advancedOptions');
const icon = document.getElementById('advancedOptionsIcon');
if (options.classList.contains('hidden')) {
options.classList.remove('hidden');
icon.classList.add('rotate-180');
} else {
options.classList.add('hidden');
icon.classList.remove('rotate-180');
}
}
// Simulate AI transcription
document.getElementById('startAiTranscription').addEventListener('click', function() {
document.getElementById('processingState').classList.remove('hidden');
let progress = 0;
const progressBar = document.getElementById('progressBar');
const progressText = document.getElementById('progressText');
const timeRemaining = document.getElementById('timeRemaining');
const interval = setInterval(() => {
progress += Math.random() * 5;
if (progress > 100) progress = 100;
progressBar.style.width = `${progress}%`;
const remaining = Math.floor((100 - progress) / 5);
timeRemaining.textContent = `${remaining} seconds`;
if (progress === 100) {
clearInterval(interval);
setTimeout(() => {
document.getElementById('processingState').classList.add('hidden');
document.getElementById('resultsSection').classList.remove('hidden');
}, 500);
}
}, 500);
});
// Manual transcription controls
document.getElementById('playPauseBtn').addEventListener('click', function() {
const icon = this.querySelector('i');
if (icon.classList.contains('fa-play')) {
icon.classList.remove('fa-play');
icon.classList.add('fa-pause');
} else {
icon.classList.remove('fa-pause');
icon.classList.add('fa-play');
}
});
document.getElementById('rewindBtn').addEventListener('click', function() {
// Rewind functionality would go here
console.log('Rewinding 5 seconds');
});
// Playback speed change
document.getElementById('playbackSpeed').addEventListener('change', function() {
console.log('Playback speed changed to:', this.value);
});
</script>
<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>
</html> |