Skip to content
프로젝트

openai/openai-voice-agent-sdk-sample

GitHub에서 보기

소개

Sample application to add voice capabilities to the Agents SDK

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Voice Agents SDK Sample App

MIT License FastAPI NextJS OpenAI API

This repository contains a sample app to highlight how to build voice agents using the Agents SDK and Python. The backend is written using FastAPI and exposes a websocket endpoint. The front-end is written using Next.js and connects to the websocket server.

Features:

  • Multi-turn conversation handling
  • Push-to-talk audio mode
  • Function calling
  • Streaming responses & tool calls

This app is meant to be used as a starting point to build a conversational assistant that you can customize to your needs.

Requirements

  • OpenAI API key
  • Node.js and npm
  • uv installed on your system

How to use

  1. Set the OpenAI API key:

    2 options:

    • Set the OPENAI_API_KEY environment variable globally in your system
    • Set the OPENAI_API_KEY environment variable in the project: Create a .env file at the root of the project and add the following line (see .env.example for reference):
    OPENAI_API_KEY=<your_api_key>
    
  2. Clone the Repository:

    git clone https://github.com/openai/openai-voice-agent-sdk-sample.git
    cd openai-voice-agent-sdk-sample/ 
    
  3. Install dependencies:

    You will have to install both the dependencies for the front-end and the server. To do this run in the project root:

    make sync
    
  4. Run the app:

    make serve
    

    The app will be available at http://localhost:3000.

Contributing

You are welcome to open issues or submit PRs to improve this app, however, please note that we may not review all suggestions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

관련 프로젝트 살펴보기

불러오는 중…