AI Translator Agent using VideoSDK and OpenAI Realtime API
This project integrates VideoSDK, OpenAI Realtime APIs to create an AI Translator Agent. Below are the setup instructions.
Start with the project​
1
Clone the Repository
Start by cloning the GitHub repository to get the project files.
Clone Repository
git clone https://github.com/videosdk-community/videosdk-openai-realtime-translator.git
Navigate to Project Directory
cd videosdk-openai-realtime-translator
2
Client Setup
Navigate to the client folder and set up the environment variables.
Move to Client Directory
cd client
Copy Environment File
cp .env.example .env
Update .env File
VITE_APP_VIDEOSDK_TOKEN=your_videosdk_auth_token_here
3
Server Setup (Python FastAPI)
Create a virtual environment and install dependencies.
Create Virtual Environment
python -m venv .venv
Activate Virtual Environment (Mac/Linux)
source .venv/bin/activate
Activate Virtual Environment (Windows)
.\venv\Scripts\activate
Install Dependencies
pip install -r requirements.txt
Copy the environment file and update required API keys.
Copy .env File
cp .env.example .env
Update .env File
OPENAI_API_KEY=your_openai_key_here
Generate your OpenAI API key from OpenAI Platform and update it in the .env file.
4
Running the Application
Start the backend server using Uvicorn.
Run Backend Server
uvicorn app:app --reload
Start the frontend client application.
Run Frontend
npm run dev
Got a Question? Ask us on discord