openai/openai-voice-agent-sdk-sample
حول
Sample application to add voice capabilities to the Agents SDK
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلVoice Agents SDK Sample App
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
- If you're new to the OpenAI API, sign up for an account.
- Follow the Quickstart to retrieve your API key.
- Node.js and npm
uvinstalled on your system
How to use
Set the OpenAI API key:
2 options:
- Set the
OPENAI_API_KEYenvironment variable globally in your system - Set the
OPENAI_API_KEYenvironment variable in the project: Create a.envfile at the root of the project and add the following line (see.env.examplefor reference):
OPENAI_API_KEY=<your_api_key>- Set the
Clone the Repository:
git clone https://github.com/openai/openai-voice-agent-sdk-sample.git cd openai-voice-agent-sdk-sample/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 syncRun the app:
make serveThe 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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…