Skip to content

Local, real-time AI translator for language immersion. Filters English, translates everything else.

License

Notifications You must be signed in to change notification settings

BrotatoBoiV2/Live-Translate

Repository files navigation

Live Translate

Live Translate is a near-real-time translation application that uses WebRTC VAD and Whisper to translate audio in real-time.


Prerequisites

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-dev

Fedora

sudo dnf install portaudio portaudio-devel

macOS

brew install portaudio

Installation

1. Clone and Enter the Repository

git clone https://github.com/BrotatoBoiV2/Live-Translate.git
cd Live-Translate

2. Create and Activate a Virtual Environment

python -m venv ./env
# Windows
.\env\Scripts\activate
# Linux/Mac
source ./env/bin/activate

3. Install Dependencies

pip install -r requirements.txt

4. 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.py

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.

Documentation

You can find the documentation for this project in the DOCUMENTATION.md file.

Important Acknowledgments

This project was created by a human and refined with the help of AI tools.

The following repos made this project possible: