Spaces:
No application file
No application file
Create Index.html
Browse files- Index.html +129 -0
Index.html
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="UTF-8">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
+
<title>AI Video Dubbing - English to Hindi</title>
|
8 |
+
<link href="style.css" rel="stylesheet" type="text/css" />
|
9 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
10 |
+
</head>
|
11 |
+
|
12 |
+
<body>
|
13 |
+
<div class="container">
|
14 |
+
<header class="header">
|
15 |
+
<h1>π§ AI Video Dubbing</h1>
|
16 |
+
<p class="subtitle">English to Hindi Video Translation & Dubbing</p>
|
17 |
+
</header>
|
18 |
+
|
19 |
+
<div class="main-content">
|
20 |
+
<div class="prompt-section">
|
21 |
+
<div class="prompt-box">
|
22 |
+
<h2>ποΈ How it works:</h2>
|
23 |
+
<ol>
|
24 |
+
<li>Transcribe the video</li>
|
25 |
+
<li>Translate the transcript to Hindi</li>
|
26 |
+
<li>Dub the audio using a natural Hindi voice</li>
|
27 |
+
</ol>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
|
31 |
+
<div class="input-section">
|
32 |
+
<div class="input-container">
|
33 |
+
<label for="videoUrl">π Paste your YouTube video link below:</label>
|
34 |
+
<input type="url" id="videoUrl" placeholder="https://www.youtube.com/watch?v=XXXXXXXXXXX" required>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<div class="options-section">
|
38 |
+
<div class="option-group">
|
39 |
+
<label class="checkbox-container">
|
40 |
+
<input type="checkbox" id="addSubtitles">
|
41 |
+
<span class="checkmark"></span>
|
42 |
+
Add Hindi subtitles
|
43 |
+
</label>
|
44 |
+
</div>
|
45 |
+
|
46 |
+
<div class="option-group">
|
47 |
+
<label for="voiceStyle">Voice Style:</label>
|
48 |
+
<select id="voiceStyle">
|
49 |
+
<option value="female">Female</option>
|
50 |
+
<option value="male">Male</option>
|
51 |
+
<option value="neutral">Neutral</option>
|
52 |
+
</select>
|
53 |
+
</div>
|
54 |
+
|
55 |
+
<div class="option-group">
|
56 |
+
<label for="targetLanguage">Translate to:</label>
|
57 |
+
<select id="targetLanguage">
|
58 |
+
<option value="hindi">Hindi</option>
|
59 |
+
<option value="tamil">Tamil</option>
|
60 |
+
<option value="bengali">Bengali</option>
|
61 |
+
<option value="telugu">Telugu</option>
|
62 |
+
<option value="marathi">Marathi</option>
|
63 |
+
</select>
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
|
67 |
+
<button id="generateBtn" class="generate-btn">
|
68 |
+
<i class="fas fa-play"></i>
|
69 |
+
π¬ Generate Hindi Dubbed Video
|
70 |
+
</button>
|
71 |
+
</div>
|
72 |
+
|
73 |
+
<div id="loadingSection" class="loading-section" style="display: none;">
|
74 |
+
<div class="loading-spinner"></div>
|
75 |
+
<p class="loading-text">Processing your video... this may take a few minutes</p>
|
76 |
+
<div class="progress-bar">
|
77 |
+
<div class="progress-fill"></div>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
|
81 |
+
<div id="outputSection" class="output-section" style="display: none;">
|
82 |
+
<h3>β
Processing Complete!</h3>
|
83 |
+
|
84 |
+
<div class="video-preview">
|
85 |
+
<div class="video-container">
|
86 |
+
<video id="dubbedVideo" controls>
|
87 |
+
<source src="" type="video/mp4">
|
88 |
+
Your browser does not support the video tag.
|
89 |
+
</video>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
|
93 |
+
<div class="download-section">
|
94 |
+
<button id="downloadBtn" class="download-btn">
|
95 |
+
<i class="fas fa-download"></i>
|
96 |
+
Download Hindi Dubbed Video
|
97 |
+
</button>
|
98 |
+
</div>
|
99 |
+
|
100 |
+
<div class="transcript-section">
|
101 |
+
<h4>π Hindi Transcript:</h4>
|
102 |
+
<div class="transcript-container">
|
103 |
+
<textarea id="hindiTranscript" readonly></textarea>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
|
107 |
+
<div class="playback-controls">
|
108 |
+
<button id="playBtn" class="control-btn">
|
109 |
+
<i class="fas fa-play"></i>
|
110 |
+
</button>
|
111 |
+
<button id="pauseBtn" class="control-btn">
|
112 |
+
<i class="fas fa-pause"></i>
|
113 |
+
</button>
|
114 |
+
<button id="restartBtn" class="control-btn">
|
115 |
+
<i class="fas fa-redo"></i>
|
116 |
+
</button>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
|
121 |
+
<footer class="footer">
|
122 |
+
<p>Powered by AI β’ English to Hindi Video Dubbing</p>
|
123 |
+
</footer>
|
124 |
+
</div>
|
125 |
+
|
126 |
+
<script src="script.js"></script>
|
127 |
+
</body>
|
128 |
+
|
129 |
+
</html>
|