RepoReplicateReplicatepublished Apr 3, 2025seen 5d

replicate/getting-started-openai-realtime

JavaScript

Open original ↗

Captured source

source ↗

replicate/getting-started-openai-realtime

Description: A real-time demo app using OpenAI, Replicate, and Cloudflare that lets you run functions in your browser using your voice.

Language: JavaScript

Stars: 13

Forks: 2

Open issues: 0

Created: 2025-04-03T02:21:12Z

Pushed: 2025-06-21T05:10:34Z

Default branch: main

Fork: no

Archived: no

README:

Getting started with the OpenAI Realtime API

This is a real-time demo app that lets you run functions in your browser using your voice.

It's powered by OpenAI's Realtime API over WebRTC, runs on Cloudflare Workers, and uses Replicate models to generate images.

Check out the guide to running this app: replicate.com/docs/guides/openai-realtime

!screenshot

Prerequisites

Here's what you'll need to build this project:

Development

Copy [.dev.vars.example](./.dev.vars.example) to .dev.vars:

cp .dev.vars.example .dev.vars

Edit .dev.vars and add your OpenAI API key and Replicate API token:

OPENAI_API_KEY=...
REPLICATE_API_TOKEN=...

Install dependencies

npm install

Run local server

npm run dev

Deploy

Upload your secrets

npx wrangler secret put OPENAI_API_KEY
npx wrangler secret put REPLICATE_API_TOKEN
npm run deploy

Notability

notability 3.0/10

Routine starter repo, low stars