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
- 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 .
- Create a virtual environment and install the dependencies
pip install -r requirements.txt
- 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-ciphersupports 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_useraccepts 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2e54b938150255f7568b3148f5938d764a8db80e40cfd30dd31cc54291c0bb8
|
|
| MD5 |
b334b74ee700e6a57610500c636ad35c
|
|
| BLAKE2b-256 |
5a677f76a0b2902718672907ce3a89d3a005ca70f88c23c77c1c45116608e909
|
Provenance
The following attestation bundles were made for sonic_cipher-1.0.0.tar.gz:
Publisher:
publish.yaml on SonicCypher/Speaker-Verification-Application
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonic_cipher-1.0.0.tar.gz -
Subject digest:
f2e54b938150255f7568b3148f5938d764a8db80e40cfd30dd31cc54291c0bb8 - Sigstore transparency entry: 221544668
- Sigstore integration time:
-
Permalink:
SonicCypher/Speaker-Verification-Application@d2df6f3b009656b203c6f87c7ed2bbec4f77fd97 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SonicCypher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@d2df6f3b009656b203c6f87c7ed2bbec4f77fd97 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2447376b6de9e0b11521d9429855e81e1b176a1405fb7644f938149b2d7179d9
|
|
| MD5 |
c0363dba1dc6231209433ebf46eaa9e2
|
|
| BLAKE2b-256 |
06a2d349c4e51d8d5473afd9583fd8942b271cf69108cbef62d3d9549e17ca3d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonic_cipher-1.0.0-py3-none-any.whl -
Subject digest:
2447376b6de9e0b11521d9429855e81e1b176a1405fb7644f938149b2d7179d9 - Sigstore transparency entry: 221544671
- Sigstore integration time:
-
Permalink:
SonicCypher/Speaker-Verification-Application@d2df6f3b009656b203c6f87c7ed2bbec4f77fd97 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SonicCypher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@d2df6f3b009656b203c6f87c7ed2bbec4f77fd97 -
Trigger Event:
release
-
Statement type: