Skip to content

SilentProgrammer-max/Voice2Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸŽ™οΈ Voice2Code – Speak. Generate. Code.

Voice2Code is an AI-powered web app that lets you convert voice commands into fully functional HTML, CSS, and JavaScript code in real time no typing, no delay, just speak and build.


πŸš€ What is Voice2Code?

Imagine coding without touching the keyboard. Just say:

πŸ—£οΈ β€œCreate a centered login form with two input fields and a submit button”
And boom πŸ’₯ the code appears instantly.

Voice2Code uses:

  • Real-time speech recognition
  • OpenAI's powerful code generation
  • A simple web interface
    To turn your voice into front-end code like magic ✨

🧠 Features

βœ… Real-time speech-to-code generation
βœ… OpenAI Codex/GPT integration
βœ… HTML/CSS/JS code output
βœ… Copy button to grab code instantly
βœ… Fully responsive design-ready layout
βœ… Built using Node.js, Express, HTML, JS


πŸ“Έ Screenshot

(Coming Soon: Live GIF demo of speaking β†’ code)


πŸ› οΈ Tech Stack

Layer Technology Used
Frontend HTML, CSS, JavaScript
Backend Node.js, Express
AI Engine OpenAI GPT (text-davinci-003)
Voice Web Speech API (JavaScript)
Styling Custom CSS (Tailwind optional)

πŸ“ Folder Structure

voice2code/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ style.css
β”‚   └── script.js
β”œβ”€β”€ server/
β”‚   └── server.js
β”œβ”€β”€ .env
β”œβ”€β”€ package.json
└── README.md

βš™οΈ Setup Instructions

  1. Clone the Repository
git clone https://github.com/your-username/voice2code.git
cd voice2code
  1. Install Backend Dependencies
npm install
  1. Create a .env File
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  1. Run the Server
node server/server.js
  1. Open the App Just open public/index.html in your browser and click πŸŽ™οΈ
    Say something like β€œCreate a red button that says Subscribe” β†’ your code will appear instantly!

πŸŽ₯ Preview the Magic

Desktop View Mobile View

πŸ’‘ Example Voice Commands

Try saying:

  • β€œCreate a responsive navbar with three links”
  • β€œAdd a dark theme background and a login card”
  • β€œMake a centered contact form with name, email, and message fields”
  • β€œDesign a heading and a paragraph with padding and margins”

✨ Planned Features

  • Syntax highlighting with Prism.js
  • Code export/download as .html
  • UI redesign using Tailwind or Bootstrap
  • Multi-language speech recognition
  • React version for developers
  • Live deployed demo link

πŸ“£ Why Use Voice2Code?

This tool makes front-end prototyping faster and more accessible.
Whether you're a beginner, a rapid prototyper, or just curious about voice + AI, Voice2Code brings something rare and powerful to the table.


🀝 Contribute

Want to contribute to this voice+AI revolution?
Pull requests are welcome! πŸ’₯
You can:

  • Improve UI
  • Add backend enhancements
  • Suggest better prompt engineering
  • Submit bug fixes

⭐ Like It? Star It!

If you love the idea of coding with your voice, don’t forget to ⭐ this repository.
Let’s build the future of voice-driven coding together!

Made with πŸ’» + 🧠 + πŸŽ™οΈ
by Ayesha

About

Voice2Code is a smart AI-based tool that converts your voice commands into working HTML/CSS/JS code in real-time. Built with Node.js, OpenAI API, and pure frontend tech, it's designed to simplify coding through speech. Speak your idea, get instant code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors