Voice as Your Vault: Exploring an Innovative Audio Password System

Voice as Your Vault: Exploring an Innovative Audio Password System

In today's digital world, where cyber threats loom large, traditional passwords often fall

short. Enter voice authentication—a blend of biometrics and signal processing that promises enhanced security. This blog, crafted by Vaishnavi S. Gate from Sardar Patel Institute of Technology, Mumbai, explores her MATLAB-based Audio Password Verification System. This innovative project authenticates users by comparing spoken passwords via correlation analysis, leveraging digital signal processing (DSP) principles to filter noise and evaluate similarity, offering a glimpse into the future of authentication technology.

Project Overview

The core problem: Authenticate users by measuring similarity between a stored audio password and a test sample. The algorithm involves recording clean audio, adding noise for realism (though not directly in the final code), filtering with a FIR low-pass filter, and computing metrics like MSE and PSNR—though the implemented system focuses on correlation.

Key parameters include:

  • Sampling rate: 8000 Hz

  • Recording duration: 3 seconds

  • Bandpass filter: 4th-order Butterworth (300–3400 Hz)

  • Authentication threshold: 0.9

Hardware needs a laptop with microphone and headphones in a quiet space; software is MATLAB with Signal Processing Toolbox.


How the System Works

The script is structured in phases for user-friendliness.

Phase 1: Reference Password Recording

Users record or load a reference audio, with a confirmation loop to ensure quality. Noise is filtered using Butterworth bandpass to isolate speech frequencies. Tips emphasize clear speech and minimal background noise.




Phase 2: Testing Cases

Four test scenarios evaluate robustness:

1.Same user, same text (expected acceptance)


2.Different user, same text (rejection due to voice differences)
        


3.Same user, different text (rejection due to content mismatch)




4.Different user, different text (clear rejection)
        

For each, audio is captured, filtered, and correlated with the reference using Pearson's coefficient.

Phase 3: Results Analysis

A summary table displays correlations and decisions. Expected outcomes yield a confusion matrix: True Positives (1), True Negatives (3), leading to 100% accuracy, precision, recall, and specificity in ideal tests.

Phase 4: Visualizations

MATLAB generates plots: bar charts for correlations (with threshold line), authentication results, confusion matrix heatmap, and performance metrics.

The helper functions handle recording with countdowns, file loading with resampling, noise filtering, correlation calculation (handling length mismatches via padding), and a ternary operator for decisions.

Experimental Results

In runs, Case 1 achieved ~0.95 correlation (accepted), while others hovered below 0.1 (rejected). Outputs show interactive prompts, file info, and playback previews. The system saves results with timestamps for reproducibility.

Limitations and Future Enhancements

While effective in clean conditions, performance dips in noise or with pronunciation variations. The fixed threshold might need adaptive tuning. Future work could integrate machine learning for better speaker identification or add multi-factor elements.

The conclusion notes correlation's efficacy for audio authentication but stresses clear recordings.

Wrapping Up

This project exemplifies DSP's role in security, making voice a reliable key. It's accessible for students and hints at applications in banking or IoT. By combining simplicity with science, it paves the way for password less systems—your voice could soon be your strongest safeguard!


Comments

Post a Comment