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-0.1.0rc1.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-0.1.0rc1-py3-none-any.whl (16.4 MB view details)

Uploaded Python 3

File details

Details for the file sonic_cipher-0.1.0rc1.tar.gz.

File metadata

  • Download URL: sonic_cipher-0.1.0rc1.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-0.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 e47bf0fbe1d82782ea97598b4a70d35ba6363510ffaea8eebd7f1edc7ce0730f
MD5 49407594692dbe9b6ed100de36a44bd3
BLAKE2b-256 2cef6a612879c103682e5509a4375287dc7c7e6b053d547a3c89344bcca492cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonic_cipher-0.1.0rc1.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-0.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for sonic_cipher-0.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0804da61294bb4f8eeb5923b8e2bf55bf769c0c50187566df2846f861822499
MD5 d54db881a4687a47f297ac040edb58f8
BLAKE2b-256 720cd2b6a14d3904fcddd13a7bfb9f904b272536617c998ae26d783b2e068ea5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sonic_cipher-0.1.0rc1-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