Overview

AzureSTTService provides real-time speech recognition using Azure’s Cognitive Services Speech SDK with support for continuous recognition, extensive language support, and configurable audio processing for enterprise applications.

Installation

To use Azure Speech services, install the required dependency:
pip install "pipecat-ai[azure]"

Prerequisites

Azure Account Setup

Before using Azure STT services, you need:
  1. Azure Account: Sign up at Azure Portal
  2. Speech Services Resource: Create a Speech Services resource in Azure
  3. API Credentials: Get your API key and region from the resource

Required Environment Variables

  • AZURE_SPEECH_API_KEY: Your Azure Speech API key
  • AZURE_SPEECH_REGION: Your Azure Speech region