-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
242 lines (229 loc) · 11.6 KB
/
index.html
File metadata and controls
242 lines (229 loc) · 11.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Voice2Code</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
function toggleMenu(x) {
x.classList.toggle("change");
document.getElementById("mobileNav").classList.toggle("active");
}
</script>
<!-- Hamburger Menu Button -->
<div class="hamburger" onclick="toggleMenu(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<nav class="nav">
<h1>Voice2Code</h1>
<!-- Desktop Navigation -->
<ul class="ul">
<li><a href="#howto">How to Use</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<select name="language" id="language">
<option value="en-US">English (US)</option>
<option value="en-GB">English (UK)</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="ar">Arabic</option>
<option value="hi">Hindi</option>
<option value="zh">Chinese</option>
<option value="ru">Russian</option>
<option value="ja">Japanese</option>
<option value="pt">Portuguese</option>
<option value="ur">Urdu</option>
</select>
<!-- Hidden Mobile Menu (uses same class .ul) -->
<div class="mobile-nav" id="mobileNav">
<ul class="ul">
<li><a href="#howto">How to Use</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<h2>Voice To Code Conversion</h2>
<div class="div">
<div class="now">
<button onclick="startListening()" class="but">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="mic-icon">
<path d="M192 0C139 0 96 43
96 96V256c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1
66.2 162.7 152 174.4V464H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7
24-24s-10.7-24-24-24H216V430.4c85.8-11.7 152-85.3 152-174.4V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0
70.7-57.3 128-128 128s-128-57.3-128-128V216z" />
</svg>
</button>
<span onclick="startListening()" class="bet">Speak Now</span>
</div>
<p id="voiceText"></p>
<DIV class="codeOutput">
<pre id="codeOutput">Your code will appear here...</pre>
</DIV>
<pre class="pre">free. No account required.</pre>
<button onclick="copyCode()" class="button">Copy Code</button>
</div>
<div class="img">
<img src="assets/img1.png" alt="voice2text image">
</div>
<script src="script.js"></script>
<section id="howto">
<div class="howto">
<h3>How To Use</h3>
<p>
Voice2Code is a smart and beginner-friendly tool that allows you to write code just by speaking. It uses
voice recognition technology to convert your spoken words into real, working code. This platform is
designed for both beginners and experienced developers who want to save time and work hands-free.
<br><br>
You don’t need to install anything or create an account. Just open the website, allow microphone access,
and start speaking. It supports multiple languages and can generate different types of code including
HTML, CSS, JavaScript, and more. Whether you're building a simple button, a complete layout, or writing
basic functions, Voice2Code makes the process faster and easier.
<br><br>
It's especially useful for students, hobby coders, or anyone with disabilities who may have difficulty
typing. The app is lightweight, fast, and compatible with most modern browsers.
</p>
<p><strong>Main Steps:</strong></p>
<ul>
<li> ⦾ <strong>Open the Voice2Code Web App:</strong> Simply visit the
website in any modern browser like
Chrome or Edge.</li>
<li> ⦾ <strong>Allow Microphone Access:</strong> When prompted, click
"Allow" to give the app permission to
use your mic for voice input.</li>
<li> ⦾ <strong>Click on the Microphone Button:</strong> This starts
the speech recognition process your
voice is now being listened to.</li>
<li> ⦾ <strong>Speak Your Code Command Clearly:</strong> For example, say
"Create a div with a class
container and add a heading inside it."</li>
<li> ⦾ <strong>View the Generated Code:</strong> The system will convert
your speech to text, understand
the intent, and generate code instantly in the output area.</li>
<li> ⦾ <strong>Edit or Copy:</strong> You can manually edit the code, or
copy it directly to use in your
own projects.</li>
<li> ⦾ <strong>Click Stop to End:</strong> Once done, press the stop button
to stop the mic and end the
voice input session.</li>
</ul>
<div class="howtouse">
<img src="assets/img3.PNG" alt="Step by step guide image">
</div>
</section>
<section id="about">
<div class="about">
<div class="abo">
<h3>About Me</h3>
<p>
My name is Ayesha, a passionate tech enthusiast and self-taught developer who believes in building
solutions that make life easier for others. I’ve always been fascinated by the idea of speaking to
machines and getting meaningful results that’s where the concept of Voice2Code was born.
<br>
I created Voice2Code to help students, beginners, and even professionals who struggle with typing or
want to speed up their coding process. Whether you’re learning to code, suffering from hand fatigue,
or
just looking for a smarter way to work, this tool is for you.
<br>
My aim is to simplify programming through voice commands so anyone can write code using natural
language, without worrying about syntax errors or long hours of typing. This project reflects my
vision
of combining voice technology with the world of development to create smarter, faster, and more
inclusive tools.
</p>
<p>
<strong>Why I Created Voice2Code:</strong>
<ul>
<li> ⦾ To make coding accessible through voice for beginners and
non-programmers.</li>
<li> ⦾ To help people with physical limitations who cannot type easily.</li>
<li> ⦾ To save time by reducing manual typing with accurate voice2code
conversion.</li>
<li> ⦾ To build an innovative tool that blends AI, speech recognition, and
coding.</li>
<li> ⦾ To allow students to practice coding faster with hands-free experience.
</li>
<li> ⦾ To improve productivity for developers and reduce burnout.</li>
<li> ⦾ To support learning and experimentation in a new, fun, and interactive
way.</li>
</ul>
</p>
</div>
<div class="abou">
<img src="assets/img4.jpeg" alt="Ayesha - Voice2Code Creator">
<span>Ayesha Khan</span>
</div>
</div>
<div class="cards">
<div class="card">
<img src="https://cdn-icons-png.flaticon.com/512/2920/2920277.png" alt="Voice Command">
<h4>Speak to Code</h4>
<span>Voice Input</span>
<p>Simply say what you want to code from HTML tags to full JS functions. No keyboard needed!</p>
</div>
<div class="card">
<img src="https://cdn-icons-png.flaticon.com/512/4248/4248443.png" alt="AI Engine">
<h4>Powered by AI</h4>
<span>OpenAI API</span>
<p>Behind the scenes, advanced AI models understand your voice and generate clean code instantly.</p>
</div>
<div class="card">
<img src="https://cdn-icons-png.flaticon.com/512/2721/2721268.png" alt="Output">
<h4>Instant Output</h4>
<span>Code Preview</span>
<p>Your spoken code appears in real-time on the screen. Review, edit, or copy with a click.</p>
</div>
<div class="card">
<img src="https://cdn-icons-png.flaticon.com/512/2541/2541988.png" alt="Productivity Boost">
<h4>Productivity Boost</h4>
<span>Work Faster</span>
<p>Voice2Code saves time and boosts speed ideal for coders, learners, and rapid prototyping.</p>
</div>
</div>
</section>
<section id="contact">
<div class="cont">
<div class="contact">
<h3>Contact</h3>
<p>
If you're looking for a modern, voice-powered web or app interface I'm here to help!
I design clean, smart, and efficient websites with a focus on innovation like Voice2Code.
You can reach out anytime to discuss custom web or app solutions tailored to your needs.
</p>
<ul>
<li> ⦾ Web & App UI Design</li>
<li> ⦾ Voice-to-Code Integration</li>
<li> ⦾ Frontend Development (HTML, CSS, JS)</li>
<li> ⦾ Custom Projects on Demand</li>
<li> ⦾ Fast Delivery & Clear Communication</li>
</ul>
</p>
</div>
<form action="https://formspree.io/f/mrbknnlr" method="POST" class="container">
<pre>Contact Me</pre>
<h5>Username</h5>
<input type="text" name="username" placeholder="Enter your username" required>
<h5>Email</h5>
<input type="email" name="email" placeholder="Enter your email" required>
<textarea name="message" id="comments" rows="4" cols="50" placeholder="Write your comment"
required></textarea>
<button type="submit">Send</button>
</form>
</div>
</section>
<footer>
<p>Copywrite © 2025
<strong><a href="#">Voice2Code</a></strong>
<span>All Right Reserved</span>
</p>
</footer>
</body>
</html>