https://github.com/adesoji1/openairealtime-api
This describes a conversational bot between An Ai Agent and a Human in Realtime
https://github.com/adesoji1/openairealtime-api
fastapi mediarecorder openai-api reactjs redis-server schema websocket websocket-client worklet-loader
Last synced: about 2 months ago
JSON representation
This describes a conversational bot between An Ai Agent and a Human in Realtime
- Host: GitHub
- URL: https://github.com/adesoji1/openairealtime-api
- Owner: Adesoji1
- Created: 2024-11-12T11:28:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-12T13:15:11.000Z (over 1 year ago)
- Last Synced: 2025-01-23T13:33:57.005Z (over 1 year ago)
- Topics: fastapi, mediarecorder, openai-api, reactjs, redis-server, schema, websocket, websocket-client, worklet-loader
- Language: Python
- Homepage: https://collabnix.com/?p=28479&preview=true#Building_Realtime_Conversations_with_OpenAI_Realtime_API
- Size: 428 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Openai Realtime API

## 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:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/)for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
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](http://0.0.0.0: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"

Created by [Adesoji](https://www.github.com/Adesoji1)
## 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