Skip to main content
Community-maintained integration. This service is built and maintained by AirCaps AI. Pipecat does not test or officially support it. Please report issues and request changes on the source repository. Learn more about community integrations.

Overview

AirCapsLiveSTTService provides real-time English speech-to-text through AirCaps Live 1 (aircaps-live-1), a low-latency model from AirCaps AI built for voice agents. It extends Pipecat’s WebsocketSTTService, so connection management, reconnection, keepalive and metrics follow the same patterns as the built-in services. Interim results are pushed as InterimTranscriptionFrame and finals as TranscriptionFrame. By default Pipecat decides when a turn ends: when a VADUserStoppedSpeakingFrame arrives, the service sends finalize, and the turn’s final transcript comes back right away, pushed with finalized=True. With end_of_turn=True, the model decides instead (see Model-detected end of turn).

Source Repository

Source code, README, changelog and issues

Example

A voice agent that hears the user through AirCaps Live 1

AirCaps Live 1 Guide

The model, its streaming protocol and end-of-turn settings

PyPI Package

The pipecat-aircaps package on PyPI

Installation

This is a community-maintained package distributed separately from pipecat-ai:

Prerequisites

AirCaps AI Account Setup

Before using the AirCaps AI STT service, you need:
  1. AirCaps AI Account: Sign up at console.aircaps.ai
  2. API Key: Open API keys in the console and create one

Required Environment Variables

  • AIRCAPS_API_KEY: Your AirCaps AI API key, passed to the service as api_key

Configuration

str
required
AirCaps AI API key.
str
default:"https://api.aircaps.com"
AirCaps AI API address. Before each connection the service asks it which WebSocket to open.
int
default:"None"
Sample rate of the incoming audio in Hz. If None, uses the pipeline’s input sample rate. Audio is resampled to 16 kHz before it is sent.
bool
default:"False"
Let the model detect the end of each turn instead of Pipecat’s VAD and turn strategies. See Model-detected end of turn.
bool
default:"True"
With end_of_turn=True: whether a new user turn interrupts the bot.
AirCapsLiveSTTService.Settings
default:"None"
Runtime-updatable settings. See Settings below.
float
default:"0.25"
P99 latency from speech end to final transcript, in seconds, used by turn strategies. Measure your own deployment with stt-benchmark and pass the result.

Settings

Runtime-configurable settings passed via the settings constructor argument using AirCapsLiveSTTService.Settings(...). They can be updated mid-conversation with STTUpdateSettingsFrame; the session reopens to apply them. The end-of-turn settings apply only with end_of_turn=True; the last four override single values of end_of_turn_mode, and None keeps the mode’s value.

Usage

Basic Setup

The service needs VAD frames to know when a turn ends, which the user aggregator provides when it has a VAD analyzer:

Model-detected end of turn

With end_of_turn=True, the model decides when the user has finished. The service pushes ProposedUserStartedSpeakingFrame when a turn’s first words arrive, and the turn’s final TranscriptionFrame followed by ProposedUserStoppedSpeakingFrame when the model ends the turn. It recommends ExternalUserTurnStrategies, so the user aggregator follows these frames; your own user_turn_strategies take precedence if you pass them.

Notes

  • Audio format: The service sends 16-bit mono PCM at 16 kHz.
  • Connections: Before each session the service looks up which WebSocket to open (GET /v1/realtime/endpoint). A session the server ends is reopened automatically.
  • Idle connections: While no audio flows (for example, while the user is muted), the service pings the session so it stays open.
  • Concurrency: Accounts run one AirCaps Live 1 session at a time by default; contact AirCaps AI for more.
  • Language: English only.

Compatibility

Tested with Pipecat 1.16.0 and Python 3.11, 3.12 and 3.13. See the source repository for the latest tested version and changelog.