Skip to main content

Spoof-Aware Speaker Verification System

Project description

Sonic-Cipher: Spoof-Aware Speaker Verification System

Sonic-Cipher is a Python package for robust speaker verification with integrated spoof detection. It combines automatic speaker verification (ASV) with countermeasure (CM) models to identify and reject spoofed audio inputs. Perfect for secure authentication systems using voice biometrics.

Installation and Configuration

  1. Install the package
  • From Pypi
pip install sonic-cipher
  • Build from Scratch
git clone https://github.com/SonicCypher/Speaker-Verification-Application.git
cd Speaker-Verification-Application
pip install build
python -m build
pip install -e .
  1. Create a virtual environment and install the dependencies
pip install -r requirements.txt
  1. Export the below envrionment variables
DB_NAME=<your_database>
DB_USER=<your_username>
DB_PASSWORD=<your_password>
DB_HOST=<your_database_host>
DB_PORT=<your_database_port>

Note: Currently sonic-cipher supports only Postgres databases

Usage Example

📝 Register a Speaker

from sonic_cipher import register_user

register_user(username, path1, path2, path3)
  • In the registration process, register_user accepts paths of 3 audio clips of the user

🔍 Verify a Speaker

from sonic_cipher import predict_verification

is_verified, confidence_score = register_user(username, path_of_test_audio, device="cpu", threshold=0.1994701042959457)
  • Required parameters: username, path of the test audio

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonic_cipher-1.0.0.tar.gz (16.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonic_cipher-1.0.0-py3-none-any.whl (16.4 MB view details)

Uploaded Python 3

File details

Details for the file sonic_cipher-1.0.0.tar.gz.

File metadata

  • Download URL: sonic_cipher-1.0.0.tar.gz
  • Upload date:
  • Size: 16.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sonic_cipher-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f2e54b938150255f7568b3148f5938d764a8db80e40cfd30dd31cc54291c0bb8
MD5 b334b74ee700e6a57610500c636ad35c
BLAKE2b-256 5a677f76a0b2902718672907ce3a89d3a005ca70f88c23c77c1c45116608e909

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonic_cipher-1.0.0.tar.gz:

Publisher: publish.yaml on SonicCypher/Speaker-Verification-Application

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sonic_cipher-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sonic_cipher-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sonic_cipher-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2447376b6de9e0b11521d9429855e81e1b176a1405fb7644f938149b2d7179d9
MD5 c0363dba1dc6231209433ebf46eaa9e2
BLAKE2b-256 06a2d349c4e51d8d5473afd9583fd8942b271cf69108cbef62d3d9549e17ca3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonic_cipher-1.0.0-py3-none-any.whl:

Publisher: publish.yaml on SonicCypher/Speaker-Verification-Application

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page