Welcome to the Kozex AI Voice Cloning Project! This is a prototype application for voice cloning and text-to-speech (TTS). Users can:
- Convert text to speech using a high-quality generic voice.
- Clone their voice and generate speech in their voice.
- Record or upload audio and receive the output in a different voice.
- Features
- Folder Structure
- Setup Instructions
- Running the Application
- Usage
- Testing
- Dependencies
- Contributing
- License
- Text-to-Speech (TTS):
- Converts text into speech using high-quality models like Tacotron, FastSpeech, etc.
- Supports multiple pre-trained TTS models.
- Voice Cloning:
- Clones a user’s voice from a short audio sample.
- Generates speech in the cloned voice.
- User-Friendly Interface:
- Record audio via a microphone.
- Upload audio or text files.
- Listen to or download generated audio.
ProdigalAI_Hackathon/
├── README.md # Project documentation
├── requirements.txt # Python dependencies
├── src/ # Source code
│ ├── frontend/ # Frontend (HTML, CSS, JS)
│ ├── backend/ # Backend (Python, Flask)
│ ├── tests/ # Unit tests
├── samples/ # Sample audio files for testing
├── models/ # Pre-trained AI/ML models
└── static/ # Static files (uploaded/generated audio)
- Python: Version 3.6 to 3.8 (Recommended: 3.8). (Install Python 3.8 for Mac)
- Git (optional, for version control).
- Clone the Repository:
git clone https://github.com/epixjayant/kozex.git cd kozex - Create a Virtual Environment:
python -m venv venv_name
- Activate it:
- Mac/Linux:
source venv_name/bin/activate - Windows:
venv_name\Scripts\activate
- Mac/Linux:
- Activate it:
- Install Dependencies:
pip install -r requirements.txt
- Run the Application:
python src/app.py
- Navigate to the backend folder:
cd src/backend - Run the Flask server:
python app.py
- The server starts at
http://127.0.0.1:5000.
- The server starts at
- Open
src/frontend/index.htmlin your browser. - Use the UI to:
- Record audio.
- Upload audio or text files.
- Generate and download output audio.
- Enter text in the input box or upload a text file.
- Click Generate Speech.
- The system will generate speech using a generic voice and provide a download link.
- Record or upload an audio file of the target voice.
- Enter text to be spoken in the cloned voice.
- Click Clone Voice.
- The system will generate speech in the cloned voice and provide a download link.
- Navigate to the
testsfolder:cd src/tests - Run the tests:
python -m unittest test_audio_processing.py python -m unittest test_tts.py python -m unittest test_voice_cloning.py
Run the following command to install Python 3.8 on Mac:
brew install python@3.8- Flask – Web framework for the backend.
- Coqui TTS – Text-to-speech and voice cloning.
- NumPy – Numerical operations.
- SoundFile – Handling audio files.
- HTML, CSS, JavaScript – User interface.
- Web Audio API – For recording audio.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch (
feature-branch). - Make your changes and commit them.
- Push the branch and submit a pull request.
This project is licensed under the MIT License.