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
Metadata
Release files for sonic-cipher 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sonic_cipher-1.0.0.tar.gz | 16.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sonic_cipher-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.7 MB
Release files / sonic_cipher-1.0.0.tar.gz
| Download URL | sonic_cipher-1.0.0.tar.gz |
|---|---|
| Size | 16.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2e54b938150255f7568b3148f5938d764a8db80e40cfd30dd31cc54291c0bb8
|
|
BLAKE2b-256 checksum How to use checksums |
5a677f76a0b2902718672907ce3a89d3a005ca70f88c23c77c1c45116608e909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2025.
Transparency logRelease files / sonic_cipher-1.0.0-py3-none-any.whl
| Download URL | sonic_cipher-1.0.0-py3-none-any.whl |
|---|---|
| Size | 16.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2447376b6de9e0b11521d9429855e81e1b176a1405fb7644f938149b2d7179d9
|
|
BLAKE2b-256 checksum How to use checksums |
06a2d349c4e51d8d5473afd9583fd8942b271cf69108cbef62d3d9549e17ca3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2025.
Transparency log