An interactive chatbot project with voice interaction capabilities.
Provide pipecat playground for non-technical personnel to debug the product to achieve the ideal state.
git clone https://github.com/Yi-Lyu/pipecat-playground.git
cd pipecat-playground
Copy the dot-env.template
file and rename it to .env
. Then fill in the necessary configuration information:
CHATBOT_NAME
: Name of the chatbotDAILY_API_KEY
: API key from the Daily platformELEVENLABS_API_KEY
: API key from the ElevenLabs platformELEVENLABS_VOICE_ID
: Selected audio ID from ElevenLabsOPENAI_API_KEY
: OpenAI API keyOPENAI_MODEL
: OpenAI model name (default is gpt-4-mini)
There are two ways to run the program:
- Ensure Python 3.10 or higher is installed
- Create and activate a virtual environment:
python -m venv python-env
source python-env/bin/activate # On Windows use: python-env\Scripts\activate
- Install dependencies:
cd app
pip install -r requirements.txt
- Copy the
.env
file to theapp
directory - Run the program:
python3 server.py
- Ensure Docker is installed
- Build the Docker image:
docker build -t pipecat-app .
- Run the Docker container:
docker run -p 7860:7860 pipecat-app
- Visit http://localhost:7860/start to create a new chat room
- The system will automatically create a daily chat room, and the bot will join and start voice interaction with you
To customize the bot's system prompt, modify the app/bot_prompt.txt
file. The content of this file will serve as the bot's initial prompt.
Note: If you're running the program using Docker, you need to rebuild the Docker image and run the container again after modifying the bot_prompt.txt
file.
- Ensure all necessary API keys are correctly configured in the
.env
file - When running via Docker, rebuild the image after modifying configuration files
- Access http://localhost:7860/start to begin a new chat session
- Python 3.10 or higher (for Python method)
- Docker (for Docker method)
- Internet connection for API access
If you encounter any issues:
- Check that all API keys are correct and have sufficient permissions
- Ensure all dependencies are correctly installed
- Verify that the required ports are not in use by other applications
For further assistance, please open an issue on the GitHub repository.
Contributions are welcome! Please feel free to submit a Pull Request.
这是一个交互式聊天机器人项目,支持语音交互。
为非技术人员提供 pipecat 操作平台,以调试产品,达到理想状态。
git clone https://github.com/Yi-Lyu/pipecat-playground.git
cd pipecat-playground
复制 dot-env.template
文件并重命名为 .env
,然后填写必要的配置信息:
CHATBOT_NAME
: 机器人名称DAILY_API_KEY
: Daily 平台的 API 密钥ELEVENLABS_API_KEY
: ElevenLabs 平台的 API 密钥ELEVENLABS_VOICE_ID
: ElevenLabs 选择的音频 IDOPENAI_API_KEY
: OpenAI 的 API 密钥OPENAI_MODEL
: OpenAI 的模型名称(默认使用 gpt-4-mini)
有两种方式可以运行程序:
- 确保已安装 Python 3.10 或更高版本
- 创建并激活虚拟环境:
python -m venv python-env
source python-env/bin/activate # 在 Windows 上使用 python-env\Scripts\activate
- 安装依赖:
cd app
pip install -r requirements.txt
- 将
.env
文件复制到app
目录下 - 运行程序:
python3 server.py
- 确保已安装 Docker
- 构建 Docker 镜像:
docker build -t pipecat-app .
- 运行 Docker 容器:
docker run -p 7860:7860 pipecat-app
- 访问 http://localhost:7860/start 来创建一个新的聊天室
- 系统会自动创建一个 daily 聊天室,并且机器人会自动加入并开始与您进行语音互动
如果您想自定义机器人的系统提示,可以修改 app/bot_prompt.txt
文件。该文件的内容将作为机器人的初始提示。
注意:如果您使用 Docker 运行程序,每次修改 bot_prompt.txt
文件后,需要重新构建 Docker 镜像并运行容器。
- 确保所有必要的 API 密钥都已正确配置在
.env
文件中 - 使用 Docker 方式运行时,修改配置文件后需要重新构建镜像
- 访问 http://localhost:7860/start 来开始新的聊天会话