LiveTranslate is a local, real-time speech transcription and parallel translation application designed to run seamlessly on MacOS with Metal Performance Shaders (MPS) acceleration.
It captures live audio from your microphone, transcribes it instantly, and translates it simultaneously into multiple target languages using state-of-the-art on-device machine learning models.
The project is split into two main components:
Backend (Python + FastAPI)
transformers to deliver fast and accurate translations.Frontend (React + Vite)
Clone the repository and navigate to the project directory:
git clone https://github.com/sebastian/LiveTranslate.git
cd LiveTranslate/LiveTranslateApp
Create a virtual environment and install the required dependencies:
python3 -m venv venv
source venv/bin/activate
pip install fastapi uvicorn websockets moonshine-voice transformers torch torchaudio accelerate huggingface_hub sounddevice numpy
Navigate to the frontend directory and install the Node modules:
cd frontend
npm install
You will need two terminal windows to run both the backend and frontend simultaneously.
Note: The very first time you start the backend, it will automatically download the necessary AI models from Hugging Face (~3.6GB for the translation model and ~50MB for the transcription models).
Terminal 1: Start the Backend
cd LiveTranslateApp
source venv/bin/activate
python backend/server.py
Terminal 2: Start the Frontend
cd LiveTranslateApp/frontend
npm run dev
http://localhost:5173).LiveTranslate is a local, real-time speech transcription and parallel translation application designed to run seamlessly on MacOS with Metal Performance Shaders (MPS) acceleration.
It captures live audio from your microphone, transcribes it instantly, and translates it simultaneously into multiple target languages using state-of-the-art on-device machine learning models.
The project is split into two main components:
Backend (Python + FastAPI)
transformers to deliver fast and accurate translations.Frontend (React + Vite)
Clone the repository and navigate to the project directory:
git clone https://github.com/sebastian/LiveTranslate.git
cd LiveTranslate/LiveTranslateApp
Create a virtual environment and install the required dependencies:
python3 -m venv venv
source venv/bin/activate
pip install fastapi uvicorn websockets moonshine-voice transformers torch torchaudio accelerate huggingface_hub sounddevice numpy
Navigate to the frontend directory and install the Node modules:
cd frontend
npm install
You will need two terminal windows to run both the backend and frontend simultaneously.
Note: The very first time you start the backend, it will automatically download the necessary AI models from Hugging Face (~3.6GB for the translation model and ~50MB for the transcription models).
Terminal 1: Start the Backend
cd LiveTranslateApp
source venv/bin/activate
python backend/server.py
Terminal 2: Start the Frontend
cd LiveTranslateApp/frontend
npm run dev
http://localhost:5173).