Skip to content

S4mpl3r/openai-realtime-console-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Realtime API Console

A simple command-line-based python console for testing and interacting with the OpenAI Realtime API, inspired by the official OpenAI Realtime Console app.

OpenAI Realtime Console

Features

  • Push-to-talk audio recording
  • Audio playback
  • An async Python client for the OpenAI Realtime API

Installation

  1. Clone the repository:

    git clone https://github.com/S4mpl3r/openai-realtime-console-py.git
    cd openai-realtime-console-py
  2. Create a virtual environment and activate it.

    Windows:

    python -m venv .venv
    .venv\Scripts\activate

    MacOS/Linux:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install dependencies:

    Windows:

    python -m pip install -r requirements.txt

    MacOS/Linux:

    python3 -m pip install -r requirements.txt
  4. Create a .env file and add your OpenAI API key:

    OPENAI_API_KEY="your-api-key"
  5. Run the console:

    Windows:

    python console.py

    MacOS/Linux:

    python3 console.py
  6. Press and hold the space bar to talk, release to stop. Press q to quit.

License

This project is licensed under the MIT License.

Resources

About

A Python console for the OpenAI Realtime API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages