Skip to main content

Overview

Deepgram provides two STT service implementations:
  • DeepgramSTTService for real-time speech recognition using Deepgram’s standard WebSocket API with support for interim results, language detection, and voice activity detection (VAD)
  • DeepgramFluxSTTService for advanced conversational AI with Flux capabilities including intelligent turn detection, eager end-of-turn events, and enhanced speech processing for improved response timing.

Installation

To use Deepgram services, install the required dependencies:
pip install "pipecat-ai[deepgram]"

Prerequisites

Deepgram Account Setup

Before using Deepgram STT services, you need:
  1. Deepgram Account: Sign up at Deepgram Console
  2. API Key: Generate an API key from your console dashboard
  3. Model Selection: Choose from available transcription models and features

Required Environment Variables

  • DEEPGRAM_API_KEY: Your Deepgram API key for authentication
I