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 PyPIInstallation
This is a community-maintained package distributed separately frompipecat-ai:
Prerequisites
AirCaps AI Account Setup
Before using the AirCaps AI STT service, you need:- AirCaps AI Account: Sign up at console.aircaps.ai
- 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 asapi_key
Configuration
AirCaps AI API address. Before each connection the service asks it which
WebSocket to open.
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.Let the model detect the end of each turn instead of Pipecat’s VAD and turn
strategies. See Model-detected end of turn.
Runtime-updatable settings. See Settings below.
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 thesettings 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
Withend_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.