Skip to content

Adesoji1/OpenaiRealtime-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Openai Realtime API

alt_text

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

More UI implementation for interface is yet to be done

Backend

Create a Virtual environment and navigate to backend/requirements.txt and run Pip install -r requirements.txt

Navigate to OpenaiRealtime-API/realtime_api-d0e5afd3b87d3ea6e5a21e7ec8e0c12353a0a81f/backend and run:

uvicorn main:app --host 0.0.0.0 --port 8000

You should see this below in your terminal

INFO: Started server process [190092]

INFO: Waiting for application startup.

INFO: Application startup complete.

INFO: Uvicorn running on port 8000 (Press CTRL+C to quit)

INFO: Shutting down

INFO:root:Frontend WebSocket disconnected

INFO: connection closed

INFO: Waiting for application shutdown.

INFO: Application shutdown complete.

INFO: Finished server process [240890]

INFO: Stopping reloader process [238400]

Frontend

Install package. json at OpenaiRealtime-API/realtime_api-d0e5afd3b87d3ea6e5a21e7ec8e0c12353a0a81f/ff/frontend/package.json using npm install and navigate to /ff/frontend and run "npm run dev"

alt_text

Created by Adesoji

Further Work

Deployment to Kubernetes Cluster using Rancher, dockerization and Monitoring ,Python Environment used was python 3.11.10 and python 3.11.6 while node version is V 20, see blog for more details