Skip to content

Lawrenceeeeeeee/openai_realtime_api_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Realtime API Python Implementation Demo

基于Python的简单OpenAI实时API应用示例

零延迟对话,可以随时打断。

后续会添加更多功能,如function call等。

使用前准备

在项目目录下创建.env文件,写入你的OpenAI apikey:

OPENAI_API_KEY=sk-xxx

安装依赖

pip install -r requirements.txt

运行

python main.py

OpenAI Realtime API Python Implementation Demo

A simple Python-based example for OpenAI Realtime API application.

Zero-latency conversation, can be interrupted at any time.

More features will be added later, such as function calls.

Preparation

Create a .env file in the project directory and add your OpenAI API key:

OPENAI_API_KEY=sk-xxx

Install Dependencies

pip install -r requirements.txt

Run

python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages