--- title: Deepfake Audio emoji: πŸŽ™οΈ colorFrom: indigo colorTo: yellow sdk: gradio sdk_version: 6.5.1 python_version: 3.11 app_file: app.py pinned: false license: mit short_description: A neural voice cloning studio powered by SV2TTS technology ---
# Deepfake Audio [![License: MIT](https://img.shields.io/badge/License-MIT-lightgrey)](LICENSE) ![Status](https://img.shields.io/badge/Status-Completed-success) [![Technology](https://img.shields.io/badge/Technology-Python%20%7C%20Deep%20Learning-blueviolet)](https://github.com/Amey-Thakur/DEEPFAKE-AUDIO) [![Developed by Amey Thakur and Mega Satish](https://img.shields.io/badge/Developed%20by-Amey%20Thakur%20%26%20Mega%20Satish-blue.svg)](https://github.com/Amey-Thakur/DEEPFAKE-AUDIO) An advanced neural voice synthesis platform implementing Transfer Learning from Speaker Verification to Multispeaker Text-To-Speech Synthesis (SV2TTS) for high-fidelity zero-shot voice cloning. **[Source Code](Source%20Code/Deepfake-Audio/)**  Β·  **[Technical Specification](docs/SPECIFICATION.md)**  Β·  **[Video Demo](https://youtu.be/i3wnBcbHDbs)**  Β·  **[Live Demo](https://huggingface.co/spaces/ameythakur/Deepfake-Audio)**
Video Demo
---
[Authors](#authors)  Β·  [Overview](#overview)  Β·  [Features](#features)  Β·  [Structure](#project-structure)  Β·  [Results](#results)  Β·  [Quick Start](#quick-start)  Β·  [Usage Guidelines](#usage-guidelines)  Β·  [License](#license)  Β·  [About](#about-this-repository)  Β·  [Acknowledgments](#acknowledgments)
---
## Authors | Amey Thakur
[**Amey Thakur**](https://github.com/Amey-Thakur)

[![ORCID](https://img.shields.io/badge/ORCID-0000--0001--5644--1575-green.svg)](https://orcid.org/0000-0001-5644-1575) | Mega Satish
[**Mega Satish**](https://github.com/msatmod)

[![ORCID](https://img.shields.io/badge/ORCID-0000--0002--1844--9557-green.svg)](https://orcid.org/0000-0002-1844-9557) | | :---: | :---: |
> [!IMPORTANT] > ### 🀝🏻 Special Acknowledgement > *Special thanks to **[Mega Satish](https://github.com/msatmod)** for her meaningful contributions, guidance, and support that helped shape this work.* --- ## Overview **Deepfake Audio** is a multi-stage neural voice synthesis architecture designed to clone speaker identities and generate high-fidelity speech from textual input. By implementing the **SV2TTS** framework, this project translates skeletal vocal characteristics into a latent embedding, which then conditions a generative model to produce new vocalizations with strikingly natural prosody and timbre. > [!IMPORTANT] > ### Attribution > This project builds upon the foundational research and implementation of the **[Real-Time-Voice-Cloning](https://github.com/CorentinJ/Real-Time-Voice-Cloning)** repository by **[Corentin Jemine](https://github.com/CorentinJ)**. > [!NOTE] > ### πŸŽ™οΈ Defining Audio Deepfakes > An **audio deepfake** is when a β€œcloned” voice that is potentially indistinguishable from the real person’s is used to produce synthetic audio. This process involves utilizing advanced neural architectures, such as the **SV2TTS** framework, to distillate high-dimensional vocal identities into latent embeddings. These embeddings then condition a generative model to synthesize new speech that mirrors the original speaker's prosody, timbre, and acoustic nuances with striking fidelity. The repository serves as a digital study into the mechanics of neural cloning and signal processing, brought into a modern context via a **Progressive Web App (PWA)** interface, enabling high-performance voice synthesis through a decoupled engine architecture. ### Synthesis Heuristics The classification engine is governed by strict **computational design patterns** ensuring fidelity and responsiveness: * **Speaker Normalization**: The encoder utilizes a linear speaker verification pipeline, incrementally distilling lexical tokens into a global affective voice state. * **Zero-Shot Inference**: Beyond simple playback, the system integrates a **Tacotron 2-based synthesizer** that dynamically refines its accuracy over time, simulating an organic learning curve for complex phonetic structures. * **Real-Time Vocoding**: Audio reconstruction supports both streaming and batch generation, ensuring **high-fidelity** waveform response critical for interactive neural study. > [!TIP] > **Acoustic Precision Integration** > > To maximize cloning clarity, the engine employs a **multi-stage neural pipeline**. **Latent filters** refine the embedding stream, and **probabilistic weights** visualize the voice's confidence vector, strictly coupling acoustic flair with state changes. This ensures the user's mental model is constantly synchronized with the underlying neural simulation. --- ## Features | Feature | Description | |---------|-------------| | **SV2TTS Core** | Combines **LSTM Speaker Encoders** with **Tacotron Synthesizers** for comprehensive voice cloning. | | **PWA Architecture** | Implements a robust standalone installable interface for immediate neural vocalization study. | | **Academic Clarity** | In-depth and detailed comments integrated throughout the codebase for transparent logic study. | | **Neural Topology** | Efficient **Decoupled Engine execution** via Gradio and Torch for native high-performance access. | | **Inference Pipeline** | Asynchronous architecture ensuring **stability** and responsiveness on local clients. | | **Visual Feedback** | **Interactive Status Monitors** that trigger on synthesis events for sensory reward. | | **State Feedback** | **Embedding-Based Indicators** and waveform effects for high-impact acoustic feel. | | **Social Persistence** | **Interactive Footer Integration** bridging the analysis to the source repository. | > [!NOTE] > ### Interactive Polish: The Acoustic Singularity > We have engineered a **Logic-Driven State Manager** that calibrates vocal scores across multiple vectors to simulate human-like identity transfer. The visual language focuses on the minimalist "Neon Mic" aesthetic, ensuring maximum focus on the interactive neural trajectory. ### Tech Stack - **Languages**: Python 3.9+ - **Logic**: **Neural Pipelines** (SV2TTS & Signal Processing) - **Frameworks**: **PyTorch** & **TensorFlow** (Inference) - **UI System**: Modern Design (Gradio & Custom CSS) - **Deployment**: Local execution / Hugging Face Spaces - **Architecture**: Progressive Web App (PWA) --- ## Project Structure ```python DEEPFAKE-AUDIO/ β”‚ β”œβ”€β”€ Dataset/ # Neural Assets β”‚ β”œβ”€β”€ samples/ # Voice Reference Audio β”‚ β”œβ”€β”€ encoder.pt # Speaker Verification Model β”‚ β”œβ”€β”€ synthesizer.pt # TTS Synthesis Model β”‚ └── vocoder.pt # Waveform Reconstruction Model β”‚ β”œβ”€β”€ docs/ # Academic Documentation β”‚ └── SPECIFICATION.md # Technical Architecture β”‚ β”œβ”€β”€ Mega/ # Attribution Assets β”‚ β”œβ”€β”€ Filly.jpg # Companion (Filly) β”‚ └── Mega.png # Profile Image (Mega Satish) β”‚ β”œβ”€β”€ screenshots/ # Visual Gallery β”‚ β”œβ”€β”€ 01_landing_page.png β”‚ β”œβ”€β”€ 02_landing_page_footer.png β”‚ β”œβ”€β”€ 03_example_run_config.png β”‚ β”œβ”€β”€ 04_example_run_processing.png β”‚ β”œβ”€β”€ 05_example_run_results.png β”‚ β”œβ”€β”€ 06_example_run_results_footer.png β”‚ β”œβ”€β”€ 07_download_option.png β”‚ β”œβ”€β”€ Audio.wav # Sample Output β”‚ └── favicon.png # Project Icon β”‚ β”œβ”€β”€ Source Code/ # Primary Application Layer β”‚ β”œβ”€β”€ app.py # Gradio Studio Interface β”‚ β”œβ”€β”€ app_ui_demo.py # UI-Only Verification Mode β”‚ β”œβ”€β”€ Dockerfile # Containerization Config β”‚ β”œβ”€β”€ requirements.txt # Dependency Manifest β”‚ β”œβ”€β”€ favicon.png # Application Icon β”‚ └── intro_message.wav # Audio Branding β”‚ β”œβ”€β”€ .gitattributes # Signal Normalization β”œβ”€β”€ .gitignore # Deployment Exclusions β”œβ”€β”€ DEEPFAKE-AUDIO.ipynb # Research Notebook β”œβ”€β”€ DEEPFAKE-AUDIO.py # Research Script (Standalone CLI) β”œβ”€β”€ SECURITY.md # Security Protocols β”œβ”€β”€ CITATION.cff # Academic Citation Manifest β”œβ”€β”€ codemeta.json # Metadata Standard β”œβ”€β”€ LICENSE # MIT License (Verbatim) └── README.md # Project Entrance ``` --- ## Results
Main Interface: Modern Design
Initial system state with clean aesthetics and synchronized brand identity.

Landing Page
πŸ’‘ Interactive Element: Engage the title header to activate the system's auditory introduction.


Interactive Polish: Footer Integration
Seamlessly integrated authorship and social persistence.

Footer UI


Synthesis Setup: Adaptive Config
Configuring target text and reference identity for neural cloning.

Configuration


Neural Processing: Real-Time Inference
System Distillery extracting acoustic embeddings and synthesizing mel-spectrograms.

Processing


Quantified Output: Generated Results
Successful high-fidelity audio synthesis with precise identity fidelity.

Results


Complete User Flow: Result & Footer
Comprehensive view of the post-synthesis state.

Results Footer


System Options: Audio Export
Exporting synthesized waveforms for downstream academic reference.

Download


Generated Result Output: Audio Signal
Interactive verified output from the neural synthesis pipeline.

Audio Result
Listen to Generated Sample
--- ## Quick Start ### 1. Prerequisites - **Python 3.9+**: Required for runtime execution. [Download Python](https://www.python.org/downloads/) - **Git**: For version control and cloning. [Download Git](https://git-scm.com/downloads) > [!WARNING] > ### Neural Model Acquisition > > The synthesis engine relies on pre-trained neural models. Ensure you have the weights (`encoder.pt`, `synthesizer.pt`, `vocoder.pt`) placed in the `Dataset/` directory. Failure to synchronize these assets will result in initialization errors. ### 2. Installation & Setup #### Step 1: Clone the Repository Open your terminal and clone the repository: ```bash git clone https://github.com/Amey-Thakur/DEEPFAKE-AUDIO.git cd DEEPFAKE-AUDIO ``` #### Step 2: Configure Virtual Environment Prepare an isolated environment to manage dependencies: **Windows (Command Prompt / PowerShell):** ```bash python -m venv venv venv\Scripts\activate ``` **macOS / Linux (Terminal):** ```bash python3 -m venv venv source venv/bin/activate ``` #### Step 3: Install Core Dependencies Ensure your environment is active, then install the required libraries: ```bash pip install -r "Source Code/requirements.txt" ``` ### 3. Execution #### A. Interactive Web Studio (PWA) Launch the primary Gradio-based studio engine: ```bash python "Source Code/app.py" ``` > [!TIP] > **PWA Installation**: Once the studio is running, you can click the "Install" icon in your browser's address bar to add the **Deepfake Audio Studio** to your desktop as a standalone application. #### B. Research & Automation Script For automated synthesis or command-line research workflows: ```bash # Example: Using a preset identity python DEEPFAKE-AUDIO.py --preset "Steve Jobs.wav" --text "Neural cloning active." # Example: Using a custom voice file python DEEPFAKE-AUDIO.py --input "my_voice.wav" --text "Synthesizing new speech." ``` --- ## Usage Guidelines This repository is openly shared to support learning and knowledge exchange across the academic community. **For Students** Use this project as reference material for understanding **Neural Voice Synthesis**, **Transfer Learning (SV2TTS)**, and **real-time audio inference**. The source code is available for study to facilitate self-paced learning and exploration of **Python-based deep learning pipelines and PWA integration**. **For Educators** This project may serve as a practical lab example or supplementary teaching resource for **Deep Learning**, **Acoustic Science**, and **Interactive System Architecture** courses. Attribution is appreciated when utilizing content. **For Researchers** The documentation and architectural approach may provide insights into **academic project structuring**, **neural identity representation**, and **hybrid multi-stage synthesis pipelines**. --- ## License This repository and all its creative and technical assets are made available under the **MIT License**. See the [LICENSE](LICENSE) file for complete terms. > [!NOTE] > **Summary**: You are free to share and adapt this content for any purpose, even commercially, as long as you provide appropriate attribution to the original authors. Copyright Β© 2021 Amey Thakur & Mega Satish --- ## About This Repository **Created & Maintained by**: [Amey Thakur](https://github.com/Amey-Thakur) & [Mega Satish](https://github.com/msatmod) This project features **Deepfake Audio**, a three-stage neural voice synthesis system. It represents a personal exploration into **Deep Learning**-based identity transfer and high-performance interactive application architecture via **Gradio**. **Connect:** [GitHub](https://github.com/Amey-Thakur)  Β·  [LinkedIn](https://www.linkedin.com/in/amey-thakur)  Β·  [ORCID](https://orcid.org/0000-0001-5644-1575) ### Acknowledgments Grateful acknowledgment to [**Mega Satish**](https://github.com/msatmod) for her exceptional collaboration and scholarly partnership on this neural voice cloning research. Her constant support, technical clarity, and dedication to software quality were instrumental in achieving the system's functional objectives. Learning alongside her was a transformative experience; her thoughtful approach to problem-solving and steady encouragement turned complex requirements into meaningful learning moments. This work reflects the growth and insights gained from our side-by-side academic journey. Thank you, Mega, for everything you shared and taught along the way. Special thanks to [**Corentin Jemine**](https://github.com/CorentinJ) for the foundational research and open-source implementation of the **Real-Time-Voice-Cloning** repository, which served as the cornerstone for this project's technical architecture. ---
[↑ Back to Top](#readme-top) [Authors](#authors)  Β·  [Overview](#overview)  Β·  [Features](#features)  Β·  [Structure](#project-structure)  Β·  [Results](#results)  Β·  [Quick Start](#quick-start)  Β·  [Usage Guidelines](#usage-guidelines)  Β·  [License](#license)  Β·  [About](#about-this-repository)  Β·  [Acknowledgments](#acknowledgments)
πŸŽ™οΈ **[Deepfake Audio](https://huggingface.co/spaces/ameythakur/Deepfake-Audio)** --- ### πŸŽ“ [Computer Engineering Repository](https://github.com/Amey-Thakur/COMPUTER-ENGINEERING) **Computer Engineering (B.E.) - University of Mumbai** *Semester-wise curriculum, laboratories, projects, and academic notes.*