A web-based voice authentication system that unlocks a login interface when a correct spoken passphrase is detected.
Built using the Web Speech API, with multi-language support, voice feedback, animated waveform, and a mobile-first UI.
⚠️ This project is a frontend demonstration and should not be used as a real security system.
- 🎤 Voice-based unlock using Speech Recognition
- 🌍 Multi-language support (English, Hindi, French, Spanish)
- 🔊 Text-to-Speech feedback
- 🎙️ Animated voice waveform while listening
- 📱 Mobile-first responsive design
- 🎨 Clean & modern UI
- 🧹 Well-structured, readable code
- User clicks “Speak Code”
- Browser listens to the user's voice
- If the spoken phrase matches the secret code:
- Voice-auth section is hidden
- Login UI is revealed
- If incorrect:
- Error message + voice feedback
This project uses the Web Speech API:
SpeechRecognitionfor converting voice → textSpeechSynthesisfor spoken feedback
The authentication logic is handled entirely on the frontend by matching a predefined secret phrase.
- HTML5 – Semantic structure
- CSS3 – Responsive UI & animations
- JavaScript (Vanilla) – App logic
- Web Speech API – Voice recognition & speech synthesis
voice-unlock-auth/
│── index.html
│── style.css
│── main.js
│── media/
│ ├── google-logo.png
│ ├── facebook-logo.png
│ └── github-logo.png
└── README.md
In main.js:
const CONFIG = {
secretCode: "let's start website",
unlockDelay: 1500
};Language can be selected from the UI, or you can set a default:
recognition.lang = "en-US";✅ Chrome (Desktop & Android)
✅ Edge
❌ Safari (SpeechRecognition not supported)
Best experience on Google Chrome
This project is NOT a secure authentication system.
- Voice phrases can be overheard
- Frontend logic can be bypassed
- No biometric voice verification
- Backend authentication
- WebAuthn
- OAuth / Firebase Auth
- AI-based voice biometrics
- 🔐 Backend verification
- 🧠 AI-based phrase matching
- 🎧 Real microphone waveform (Web Audio API)
- 🌗 Dark mode
- 💾 Remember unlock state (localStorage)
- ⚛️ React / Next.js version
MIT License
Feel free to use, modify, and learn from this project.
| Platform | Link |
|---|---|
| https://twitter.com/einzigartigetec/ | |
| https://www.facebook.com/einzigartige/ | |
| https://www.linkedin.com/company/einzigartige/ | |
| YouTube | https://www.youtube.com/@einzigartige_/ |
| Website | http://einzigartige.in/ |
👉 Subscribe here: https://www.youtube.com/@einzigartige_/
Einzigartige - Web & App Development Company
Website: http://einzigartige.in/
⭐ If you like this project, consider giving it a star!