Audio Sleuth
A torch based open-source framework for detecting audio generated from generative systems. The overarching goal of this repository is to be a toolbox for datasets, augmentations, and pretrained baseline models to assist researchers in the task of audio deepfake detection.
Install
To install, simply use pip:
pip install audio-sleuth
Usage
The goal of this package is to contain augmentations, models, and losses all as a torch.nn.Module class. Each augmentation contains an internal LabelAlignment such that you can implement various time-frequency transformations to automatically translate the sample-wise labels as well.
Here is an example of how to chain together augmentations on the Half Truth Dataset.
from audio_sleuth.augmentations import Resample, LFCC, Augmentations
from audio_sleuth.data.datasets import HalfTruthDataset
# Augmentation chain
transform = Augmentations(
[
Resample(input_sr=48000, new_sr=16000, return_original_sr=False), # Downsample block
LFCC(
fs=16000, n_fft=512, hop_size=128, win_size=128, n_filters=128, n_lfcc=40 # LFCC augmentation
)
]
)
# Returns torch Dataset that can be fed into DataLoader
dataset = HalfTruthDataset(
path_to_txt, # Initialize to your txt file of filepaths and labels from dataset
fs=16000,
transform = transform
)
Metadata
Release files for audio-sleuth 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| audio_sleuth-0.0.2.tar.gz | 11.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| audio_sleuth-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.3 kB
Release files / audio_sleuth-0.0.2.tar.gz
| Download URL | audio_sleuth-0.0.2.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30f6bde25b3f572dc1c3a4dabc056330f813217785f715fa3ae25d3db1179a9c
|
|
BLAKE2b-256 checksum How to use checksums |
d31aaabc7778c3ea9e1dee1228c81d4373de238f9d39cbaf0453013c3f391071
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / audio_sleuth-0.0.2-py3-none-any.whl
| Download URL | audio_sleuth-0.0.2-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7020cddddd049be91293966aaff9b28785f1e95466e471a197712c4a9d0745d
|
|
BLAKE2b-256 checksum How to use checksums |
b7caab9d5744864db53e313b04dbc0ae58a567d56138ae3f92c36a951a293a78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for audio-sleuth 0.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.