Skip to main content
Build a voice agent using Deepgram for speech recognition, OpenAI GPT-4o for conversation, and Cartesia for text-to-speech synthesis. Best for: Low latency applications requiring expressive, controllable voices.

Prerequisites


Installation


Environment Variables


Pipeline Configuration


Service Details

Deepgram STT

Real-time speech recognition with interim results and language detection. Tip: Use DeepgramFluxSTTService with ExternalUserTurnStrategies for better conversation flow.

OpenAI LLM

Chat completion with GPT-4o supporting streaming responses and function calling.

Cartesia TTS

Real-time voice synthesis with word-level timing and interruption handling.

Quick Start

Inbound Calls

Configure your Plivo number’s Answer URL to your ngrok URL.

Outbound Calls


Pipecat Overview

Architecture and setup

Deepgram Docs

STT configuration

OpenAI Docs

LLM configuration

Cartesia Docs

TTS configuration