# ๐ง Synthetic-Voice-Detection-Vocoder-Artifacts
---
## ๐ LibriSeVoc Dataset
1. **We are the first to identify neural vocoders as a source of features to expose synthetic human voices.**
Here are the differences shown by the six vocoders compared to the original audio:

2. **We provide LibriSeVoC** as a dataset of self-vocoding samples created with six state-of-the-art vocoders to highlight and exploit the vocoder artifacts.
The composition of the dataset is shown in the following table:
The source of our dataset ground truth comes from **LibriTTS**. Therefore, we follow the naming logic of LibriTTS.
For example:
`27_123349_000006_000000.wav` โ
- `27` is the reader's ID
- `123349` is the ID of the chapter
---
## ๐ฏ Deepfake Detection
We propose a new approach to detecting synthetic human voices by:
- Exposing signal artifacts left by neural vocoders
- Modifying and improving the RawNet2 baseline by adding multi-loss
โ
This lowers the error rate from **6.10% to 4.54%** on the **ASVspoof Dataset**.
Here is the framework of the proposed synthesized voice detection method:
---
## ๐ Paper & Dataset
- ๐ Paper:
**[AI-Synthesized Voice Detection Using Neural Vocoder Artifacts โ CVPRW 2023](https://openaccess.thecvf.com/content/CVPR2023W/WMF/html/Sun_AI-Synthesized_Voice_Detection_Using_Neural_Vocoder_Artifacts_CVPRW_2023_paper.html)**
- ๐ฆ Dataset:
**[Download LibriSeVoc](https://drive.google.com/file/d/1Zh6b51S1WIsFjdCDRTQhYW61CQ0Ue1lk/view?usp=sharing)**
---
## ๐ ๏ธ Usage
### ๐๏ธโโ๏ธ To train the model, run:
```bash
python main.py --data_path /your/path/to/LibriSeVoc/ --model_save_path /your/path/to/models/
```
### ๐งช To test with your sample, run:
```bash
python eval.py --input_path /your/path/to/sample.wav --model_path /your/path/to/your_model.pth
```
### ๐ฅ Pretrained Model Weights
Download the trained model weights from the link below:
```bash
https://drive.google.com/file/d/15qOi26czvZddIbKP_SOR8SLQFZK8cf8E/view?usp=sharing
```
### ๐ In-the-Wild Testing
You can test audio samples live on our lab's Deepfake O Meter platform:
```bash
https://zinc.cse.buffalo.edu/ubmdfl/deep-o-meter/landing_page
```
## ๐ License
This repository is licensed under the **MIT License**.
You are free to use, modify, and distribute the code with proper attribution.
- ๐ [MIT License](https://opensource.org/licenses/MIT)