Live Translate is a near-real-time translation application that uses WebRTC VAD and Whisper to translate audio in real-time.
Before installing, you may need to make sure you have installed the following system libraries for audio handling:
Ubuntu/Debian
sudo apt-get install libportaudio2 libportaudio-dev portaudio19-devFedora
sudo dnf install portaudio portaudio-develmacOS
brew install portaudio1. Clone and Enter the Repository
git clone https://github.com/BrotatoBoiV2/Live-Translate.git
cd Live-Translate2. Create and Activate a Virtual Environment
python -m venv ./env
# Windows
.\env\Scripts\activate
# Linux/Mac
source ./env/bin/activate3. Install Dependencies
pip install -r requirements.txt4. Open main.py and modify the device index to match your audio device.:
You can find what index number your device is by running the following command python -m sounddevice - available after running pip install -r requirements.txt.
5. Run the Program
python main.pyThis project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
You can find the documentation for this project in the DOCUMENTATION.md file.
This project was created by a human and refined with the help of AI tools.
The following repos made this project possible: