Installation & Setup
Get Pipecat and its required services installed on your machine
Accounts you’ll need
While you can use Pipecat without them, there are a few third-party services you’ll probably want to use with Pipecat. We recommend these to start, since they’re easy to sign up and get started for free or low cost:
- Daily for your transport layer—handling real-time audio, video, and data exchange between the bot and user through WebRTC.
- Cartesia for text-to-speech.
- OpenAI gets you ChatGPT for an LLM, and DALL-E for image generation.
If you’re going to run the quickstart, you’ll need to set up Daily and Cartesia accounts.
Learn about other supported services you can use with Pipecat.
Prerequisites
Pipecat requires Python 3.10 or higher. To check your Python version:
Installing Pipecat
To start, we recommend using a virtual environment, or venv
, inside a new directory:
Activate the virtual environment based on your operating system:
The pipecat-ai
Python module has a lot of optional dependencies, including some pretty big AI libraries. This allows you to only install what you need. For example, to install pipecat-ai
along with support for the services above, run this command (or add it to your requirements.txt
):
You can always install other dependencies later. For the full list, look for the [project.optional-dependencies]
section in pyproject.toml.
Service Configuration
Daily Setup
Head over to dashboard.daily.co/rooms and create a new room. You can leave everything as-is in the room creation screen, or change anything you want. (Emoji reactions and advanced chat are fun.) Make note of:
- Your room URL:
https://YOURDOMAIN.daily.co/YOURROOM
- Your API key from dashboard.daily.co/developers
Cartesia Text-to-Speech Setup
From Cartesia’s Voice library, find a voice
that you like. Then click the three dots at the end of the row and select Copy ID
.
Then, head over to Cartesia API keys and create your API key.
Environment Setup
Create a .env
file in your project directory with your service credentials:
Next Steps
Now that you’ve got everything set up, head to the Quickstart to build your first Pipecat application.