# ๐Ÿง  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: ![image](https://github.com/csun22/Synthetic-Voice-Detection-Vocoder-Artifacts/assets/90001788/6c3381c4-af7e-4ce2-a446-b3c76bf52aee) 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: image 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: image --- ## ๐Ÿ“„ 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)