sakshigpatil's picture
remove target accents to add only american, british, indian, australian
edf056d verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Accentify - Speak Like a Local</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-100 min-h-screen">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<section class="text-center mb-12">
<h1 class="text-5xl font-bold text-gray-800 mb-4">Transform Your Accent in Real-Time</h1>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">Speak naturally and hear yourself in different accents instantly. Perfect for language learners and global communicators.</p>
</section>
<div class="bg-white rounded-xl shadow-lg p-8 max-w-4xl mx-auto">
<div class="flex flex-col md:flex-row gap-8">
<div class="flex-1">
<h2 class="text-2xl font-semibold mb-4 text-gray-800">Your Current Accent</h2>
<div class="bg-gray-50 rounded-lg p-6 mb-6">
<div class="flex items-center justify-between mb-4">
<span class="font-medium">Detected Accent:</span>
<span id="currentAccent" class="px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm">Not detected</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5 mb-4">
<div id="volumeMeter" class="bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
</div>
<button id="startBtn" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-lg font-medium flex items-center justify-center gap-2">
<i data-feather="mic"></i> Start Speaking
</button>
</div>
</div>
<div class="flex-1">
<h2 class="text-2xl font-semibold mb-4 text-gray-800">Convert To</h2>
<div class="bg-gray-50 rounded-lg p-6">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Target Accent</label>
<select id="targetAccent" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="american_general">American (General)</option>
<option value="british_rp">British (RP)</option>
<option value="australian_general">Australian (General)</option>
<option value="indian_general">Indian (General)</option>
</select>
</div>
<div class="flex items-center justify-between mb-4">
<span class="font-medium">Converted Audio:</span>
<span id="conversionStatus" class="px-3 py-1 bg-purple-100 text-purple-800 rounded-full text-sm">Ready</span>
</div>
<button id="playBtn" disabled class="w-full bg-purple-600 hover:bg-purple-700 text-white py-3 px-6 rounded-lg font-medium flex items-center justify-center gap-2">
<i data-feather="play"></i> Play Converted Speech
</button>
</div>
</div>
</div>
</div>
<section class="mt-16 max-w-4xl mx-auto">
<h2 class="text-3xl font-bold text-center mb-8 text-gray-800">How It Works</h2>
<div class="grid md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-xl shadow-md text-center">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="mic" class="text-blue-600 w-6 h-6"></i>
</div>
<h3 class="text-xl font-semibold mb-2">1. Speak Naturally</h3>
<p class="text-gray-600">Use your microphone to speak in your natural accent.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-md text-center">
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="cpu" class="text-purple-600 w-6 h-6"></i>
</div>
<h3 class="text-xl font-semibold mb-2">2. AI Processing</h3>
<p class="text-gray-600">Our system analyzes and converts your speech in real-time.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-md text-center">
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="volume-2" class="text-green-600 w-6 h-6"></i>
</div>
<h3 class="text-xl font-semibold mb-2">3. Hear the Difference</h3>
<p class="text-gray-600">Listen to your speech transformed into the target accent.</p>
</div>
</div>
</section>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>