Skip to content

Voice bio-metric authentication system with speaker recognition - Python & Vosk

License

Notifications You must be signed in to change notification settings

cybernahx/voice-biometric-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Voice Biometric Security System

Initial version developed during 2024–2025

An advanced voice biometric authentication system using speaker recognition and voice commands. Authenticate users based on their unique voice characteristics and provide secure access control.

🎯 Features

  • 🎤 Voice Enrollment - Register users with voice samples
  • 🔍 Speaker Verification - Verify user identity through voice
  • 🎙️ Real-time Voice Commands - Control system via voice
  • 🔐 Biometric Security - Voice-based authentication
  • 📊 Voice Analysis - Speaker recognition using Vosk
  • 🛡️ Secure Access Control - Dummy/Real data protection
  • 🗣️ Voice Command Processing - Natural language understanding

🛠️ Tech Stack

  • Python - Core programming language
  • Vosk - Offline speech recognition
  • PyAudio - Audio input/output
  • Wave - Audio file processing
  • Speaker Recognition - Voice biometrics

📦 Installation

Prerequisites

  • Python 3.7 or higher
  • Microphone for voice input

Setup

# Clone the repository
git clone https://github.com/A-Hacker-06/voice-biometric-security.git
cd voice-biometric-security

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install vosk pyaudio wave

Download Vosk Model

# Download from: https://alphacephei.com/vosk/models
# Place in: app/voice_model/model/

🚀 Usage

Enroll New User

python app/voice_model/enroll.py

Verify User

python app/main.py

Voice Commands

The system listens for:

  • Activation codewords - Wake up the system
  • Authentication - Verify speaker identity
  • Action commands - Execute protected operations

📂 Project Structure

voice-biometric-security/
│
├── app/
│   ├── main.py                 # Main application entry
│   ├── config.json             # Configuration settings
│   ├── voice_model/            # Voice recognition module
│   │   ├── model/              # Vosk model files
│   │   ├── enroll.py           # User enrollment
│   │   ├── verify.py           # Speaker verification
│   │   └── recode.py           # Voice recording
│   │
│   └── actions/                # Action handlers
│       ├── open_real.py        # Real data access
│       ├── open_dummy.py       # Dummy data access
│       └── delete_data.py      # Data deletion
│
└── README.md

🔒 Security Features

  • Voice Biometrics - Unique voice characteristics verification
  • Multi-factor Authentication - Voice + codeword verification
  • Secure Data Access - Protected resource management
  • Real-time Verification - Instant speaker recognition
  • Offline Processing - No cloud dependency, enhanced privacy

🎤 How It Works

  1. Enrollment Phase:

    • User records voice samples
    • System creates voice profile
    • Stores biometric template
  2. Verification Phase:

    • User speaks activation codeword
    • System captures voice sample
    • Compares with stored profile
    • Grants/denies access based on match
  3. Command Execution:

    • Authenticated user issues voice commands
    • System executes protected operations
    • Maintains security throughout session

📊 Use Cases

  • Secure Authentication - Replace passwords with voice
  • Access Control - Restrict sensitive operations
  • Smart Home Security - Voice-controlled locks
  • Banking & Finance - Secure transactions
  • Healthcare - Protected patient records
  • Corporate Security - Employee verification

🔧 Configuration

Edit app/config.json to customize:

{
  "codewords": ["activate", "access", "unlock"],
  "paths": {
    "real_data": "/path/to/real",
    "dummy_data": "/path/to/dummy"
  }
}

🚧 Future Enhancements

  • Multi-language support
  • Anti-spoofing detection
  • Continuous authentication
  • Mobile app integration
  • Cloud backup of voice profiles
  • Advanced noise cancellation

📄 License

MIT License - see LICENSE file for details

👨‍💻 Developer

Created with security in mind during 2024-2025


Secure your systems with voice! 🔐🎤

About

Voice bio-metric authentication system with speaker recognition - Python & Vosk

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •