Releases: pipecat-ai/pipecat
Release list
v1.7.0
Added
-
Added token usage metrics to
AWSNovaSonicLLMService, which now emitsLLMUsageMetricsDatafrom Nova Sonic'susageEvent. Each event reports its token delta, with speech and text tokens combined intoprompt_tokensandcompletion_tokens, so metrics summed over a session match the session total.
(PR #4783) -
Added an
http_clientparameter toOpenAITTSServiceand Whisper-based STT services (BaseWhisperSTTService,OpenAISTTService,GroqSTTService), so a customhttpx.AsyncClient— e.g. one with a raised request timeout for high-latency endpoints — can be used for API requests. Preferopenai.DefaultAsyncHttpxClient, which retains the OpenAI SDK's connection limits and redirect handling.
(PR #4941) -
Added the ability for users to provide a local image to the LemonSlice transport to be used as the avatar image.
(PR #4977) -
Added a
filter_background_audiosetting toElevenLabsRealtimeSTTService.Settingsso callers can have ElevenLabs suppress background and far-end audio before transcription, which reduces spurious partial transcripts and empty commits on noisy telephony audio. When set, it is forwarded as a connection query parameter regardless of commit strategy. Defaults to unset, which preserves ElevenLabs' default of no filtering.
(PR #5003) -
Added STT usage metrics: every STT service reports usage as
STTUsageMetricsData, carrying the client-measured seconds of audio submitted to the service (audio_seconds). Continuous services emit incrementally per final transcript with a flush on stop/cancel; segmented services emit per transcribed segment. Enabled withenable_usage_metrics=True; usage is forwarded to RTVI clients (stt_usage), logged byMetricsLogObserver, and attached to OpenTelemetrysttspans asmetrics.audio_seconds.
(PR #5055) -
Added inbound SIP DTMF support on the LiveKit transport via
on_dtmf_eventandInputDTMFFrame, soDTMFAggregatorworks with LiveKit SIP/PSTN calls.
(PR #5097) -
Added
numeralssetting toDeepgramFluxSTTSettingsto convert spoken numbers to numeral form in transcripts (e.g. "twenty three" → "23"). Enable withnumerals=Truein the settings; configured at connection time per Deepgram's Flux API.
(PR #5099) -
Added
safety_settingstoGoogleLLMService.Settings(andGoogleVertexLLMService.Settings), exposing Gemini's content safety filters. Previously these could only be set by smuggling them throughextra.```python from google.genai.types import HarmBlockThreshold, HarmCategory,SafetySetting
llm = GoogleLLMService( api_key=os.getenv("GOOGLE_API_KEY"), settings=GoogleLLMService.Settings( safety_settings=[ SafetySetting( category=HarmCategory.HARM_CATEGORY_HATE_SPEECH, threshold=HarmBlockThreshold.BLOCK_LOW_AND_ABOVE, ), ], ), ) ``` Categories left unspecified keep the Gemini API defaults. The setting isruntime-updatable via
LLMUpdateSettingsFrame, which also accepts plain
dicts.
(PR #5109) -
Added
language_codessetting toAssemblyAISTTSettings, exposing the list-valued name of AssemblyAI's declared-language parameter and the one to prefer over the singularlanguage_code, which stays supported and is ignored when both are set. It takesLanguageenums: a single language (e.g.language_codes=[Language.ES]) pins transcription to that language, while several (e.g.language_codes=[Language.EN, Language.ES]) steer toward that subset while keeping code-switching among them. Steering is prompt-based, so it applies to U3 Pro models only and isn't sent forother models; on U3 Pro a change applies to the live connection instead of reconnecting, and an empty list clears steering back to the model default. At most 10 distinct languages can be declared — regional variants resolve to their base code, so they collapse rather than counting twice. An over-long list raises at construction; an over-long runtime update is dropped with a warning, leaving the current steering in place.
(PR #5129) -
Added
endpointing,keywords, andformattoSmallestSTTService.Settings.endpointingfinalizes transcripts promptly on trailing silence,keywordsboosts recognition of domain-specific words/phrases (e.g."Blackwell:2,NVIDIA:1"), andformatcontrols whether transcripts getpunctuation and capitalization applied.
(PR #5137) -
Added an opt-in
force_localesetting toAzureTTSServiceandAzureHttpTTSService(AzureTTSSettings) that wraps synthesized text in SSML's<lang xml:lang>element, so multilingual voices (e.g.en-US-EmmaMultilingualNeural) speak in the configured locale/accent instead of auto-detecting one per segment. Defaults toFalse, leaving SSML output untouched unless enabled.
(PR #5154) -
Added
reach_inactive_servicestoServiceUpdateSettingsFrame, and so toLLMUpdateSettingsFrame,TTSUpdateSettingsFrameandSTTUpdateSettingsFrame. Set it when a settings update is provider-neutral and needs to survive a service switch, and every service aServiceSwitchermanages applies it rather than the active one alone.```python update = LLMUpdateSettingsFrame( delta=LLMSettings(temperature=0.2), reach_inactive_services=True, ) await worker.queue_frames([update]) ``` It defaults to `False`, which suits values only one provider understands:a Cartesia voice id applied to a Deepgram TTS service would leave it unusable
once it takes over. To configure one specific service, address the update to
it withservice=instead.
(PR #5155) -
Added
keytermtoCartesiaSTTService.SettingsandCartesiaTurnsSTTService.Settings, biasing transcription toward domain-specific words and phrases such as product names and jargon.```python stt = CartesiaTurnsSTTService( api_key=os.environ["CARTESIA_API_KEY"], settings=CartesiaTurnsSTTService.Settings(keyterm=["Pipecat", "Ink2"]),
)
```Cartesia binds keyterms to a connection, so updating them with anSTTUpdateSettingsFramereconnects to apply them. Lists longer than
Cartesia's limit of 100 keyterms or 1200 total characters are truncated with
a warning.CartesiaSTTServicesends keyterms only for ink-2 models, the
only family Cartesia supports them on.
(PR #5168) -
Added
PocketTTSService, a local CPU-only text-to-speech service built on kyutai-labs' pocket-tts streaming model. Supports English, French, German, Italian, Portuguese, and Spanish, predefined voices, and voice cloning from a wav file orhf://voice prompt. Install withpip install "pipecat-ai[pocket-tts]".```python from pipecat.services.pocket_tts.tts import PocketTTSService tts = PocketTTSService(settings=PocketTTSService.Settings(voice="alba")) ```(PR #5170)
Changed
-
SmallestSTTServicenow uses the Waves v4 STT endpoint (/waves/v1/stt/live) and sendsfinalizeper utterance to keep the WebSocket session alive across turns.
(PR #4747) -
The TeXML served by the development runner for Twilio and Telnyx no longer includes a trailing
<Pause length="40"/>.<Connect><Stream>holds the call for the duration of the WebSocket session, so the call now hangs up as soon as the stream ends instead of lingering for another 40 seconds.
(PR #5135) -
SageMakerBidiClientnow relies on the SageMaker Runtime SDK's default auth configuration (SigV4 for the sagemaker service) instead of passing an equivalent explicit configuration, so future SDK auth changes are picked up automatically.
(PR #5144) -
⚠️ TavusParams.audio_out_faster_than_realtimenow defaults toTrue. Bot audio is accumulated into 100ms chunks and sent to Tavus as fast as it is produced, giving the avatar a larger rendering buffer, instead of being paced to real playback time. Pipelines that need bot audio to arrive at roughly real time — for example when anAudioBufferProcessordownstream is recording the conversation — should now setaudio_out_faster_than_realtime=Falseexplicitly.
(PR #5162) -
Websocket-based services now bound the websocket closing handshake at 2 seconds instead of the
websocketsdefault of 10. A service disconnects while handling theEndFrame, before the frame continues downstream, so a peer that never acknowledges the close delayed pipeline shutdown bythat much per service. The bound is configurable per service via the newws_close_timeoutargument onWebsocketService.
(PR #5164) -
CartesiaSTTServicenow connects withCartesia-Version: 2026-03-01, the version that supportskeytermand returns structured JSON errors. This brings it in line withCartesiaTTSServiceand `CartesiaTurnsSTTS...
v1.6.0
Added
-
Added
MOQTransport, a Media over QUIC (MoQ) transport that gives bots a bidirectional, low-latency audio + RTVI channel over QUIC instead of WebRTC or WebSockets. Install withpip install pipecat-ai[moq]and seeexamples/transports/transports-moq.py.- The bot runs as its own MoQ server (
serve=True) and accepts the browser's direct connection, removing the need for a separatemoq-relayprocess in local dev; client mode (dialingan external relay) is wired up but not yet enabled. - Audio rides a single Opus track; RTVI messages (including the transcript) ride a compressed, ordered JSON stream track, so MoQ is on par with the Daily and WebSocket transports for RTVI support.
- The development runner (
pipecat.runner.run) gained--moq-serve,--moq-bind,--moq-tls-generate/--moq-tls-cert/--moq-tls-keyand related flags to configure the MoQ server and TLS for local dev.
(PR #4629)
- The bot runs as its own MoQ server (
-
Added
reasoningsupport toOpenAIResponsesLLMServiceandOpenAIResponsesHttpLLMService. Setsettings.reasoningto anOpenAIResponsesLLMService.ReasoningConfig(effort=..., summary=...)to control reasoning depth and, optionally, request a summary of the model's thinking. Summaries are surfaced the same way as Anthropic/Gemini thinking — as thought frames and theon_assistant_thoughtevent. Reasoning is only supported by reasoning-capable models (the gpt-5.x series and the o-series); the default model,gpt-4.1, does not reason — see OpenAI's reasoning guide to pick a model.The model's encrypted reasoning is captured and sent back on subsequent
turns automatically, preserving reasoning context across the conversation
(and, with function calling, across tool-call turns). See
examples/thinking/thinking-openai-responses.py(plus the-httpand
-functions-variants).When
reasoningis not configured, the mainline gpt series from gpt-5
onward defaults toeffort="none"(reasoning disabled) to keep latency low
for real-time voice — mirroring how the Gemini service disables thinking by
default — while every other model is left at its provider default.
Conversely, if you configurereasoningon a model known not to support it
(e.g.gpt-4.1), the service logs a clear error up front instead of leaving
you to decipher the raw API failure.
(PR #4933) -
Added
NO_RESPONSEto Pipecat Flows: a consolidated function can return(result, NO_RESPONSE)to finish the function call without transitioning to a new node or running the LLM. The next response can then be triggered by the next user utterance, or programmatically another way.
(PR #4995) -
Added
absent: trueto eval scenario expectations: the expectation passes only when no event of the given type arrives within thewithin_msbudget, and fails as soon as one does. Useful for duplicate-output regressions, e.g. asserting a bot responds exactly once after a multi-worker handoff.
(PR #4995) -
Added
CrusoeLLMService, an OpenAI-compatible LLM service for Crusoe Cloud's Managed Inference API.
(PR #5024) -
Added audio token usage to
LLMTokenUsagefor cost attribution with realtime models: optionalinput_audio_tokens,output_audio_tokens, andcache_read_input_audio_tokensfields.OpenAIRealtimeLLMService(and Azure realtime) now populates them from the Realtime API'sresponse.doneusage details, and they flow through the usage debug logs, RTVI client metrics (onlypresent when populated), and OTel span attributes (gen_ai.usage.audio.input_tokens,gen_ai.usage.audio.output_tokens,gen_ai.usage.audio.cache_read.input_tokens).
(PR #5050) -
Added audio token usage capture to
GeminiLiveLLMService: the AUDIO entries fromusage_metadata's per-modality breakdowns now populateLLMTokenUsage'sinput_audio_tokens,output_audio_tokens, andcache_read_input_audio_tokens, flowing through usage logs, RTVI client metrics, and thegen_ai.usage.audio.*span attributes. Absent modalities are reported as unset rather than zero, and text tokens are never derived from totals (Gemini's modality details don't always sum toprompt_token_count). Gemini Live spans also now include cached and reasoningtoken counts, which the metrics path reported but spans were missing.
(PR #5052) -
The development runner now prints a bordered startup banner flagging it as development-only, with a link to the deployment docs for running bots locally and in production.
(PR #5060) -
Added
DeepgramFluxTTSService, a websocket TTS service for Deepgram's Flux TTS (early access) atwss://api.deepgram.com/v2/speak. LLM tokens are streamed straight to the server as they arrive (TextAggregationMode.TOKEN, the default for this service; passtext_aggregation_mode=TextAggregationMode.SENTENCEto aggregate sentences instead) and each bot response is synthesized as a discrete turn, with prosody carried across turns on a single connection. Flux does not yet provide a way to cancel the active turn, so interruptions reconnect the websocket;examples/voice/voice-deepgram-flux.pyis now an all-Flux bot (Flux STT + Flux TTS).
(PR #5067) -
Added
BasetenLLMService, an OpenAI-compatible LLM service for Baseten's Model APIs and dedicated deployments.Defaults to Baseten's serverless Model APIs endpoint, which servesopen-weights models including GLM, Kimi, DeepSeek, Nemotron, and gpt-oss. To
use a model running on your own dedicated GPUs, pass that deployment's
/sync/v1URL asbase_urland setmodelto its served model name:```python llm = BasetenLLMService( api_key=os.getenv("BASETEN_API_KEY"), base_url=deployment_url, settings=BasetenLLMService.Settings( model="Qwen/Qwen2.5-3B-Instruct", ), ) ```(PR #5077)
-
DailyTransportnow broadcasts anSTTMetadataFramewith Deepgram's TTFS P99 latency whentranscription_enabled=Trueand transcription starts successfully, matching standalone STT services. Downstream consumers likeLLMUserAggregatorand the user-turn-stop strategies now use the correct STT latency instead of falling back to defaults.
(PR #5088)
Changed
-
Changed the default ElevenLabs TTS model from
eleven_turbo_v2_5toeleven_flash_v2_5inElevenLabsTTSServiceandElevenLabsHttpTTSService, sinceeleven_turbo_v2_5is now deprecated by ElevenLabs. This only affects users who don't explicitly set amodel.
(PR #4999) -
Bumped the minimum
nltkversion to 3.10.0.
(PR #5019) -
⚠️ The RTVIdtmfclient message now carriesbuttons— a list of keypad entries, e.g.{"type": "dtmf", "data": {"buttons": ["1", "2", "#"]}}— so a single message can press a whole key sequence. The previous single-keybuttonfield is no longer accepted, andRTVI.PROTOCOL_VERSIONis now2.1.0. TheRTVIProcessorpushes oneInputDTMFFrameper key, in order, so downstream DTMF handling (e.g. aDTMFAggregator) behaves exactly as before.
(PR #5030) -
Removed the
pyyaml-includedependency (GPL-3.0), replacing it with a small built-in!includeconstructor for eval scenarios.
(PR #5037) -
Updated tracing span attributes to the current OpenTelemetry GenAI semantic conventions:
gen_ai.provider.nameis nowazure.ai.openai(wasaz.ai.openai) forAzureLLMService,x_ai(wasxai) forGrokLLMService, andmistral_ai(wasmistral) forMistralLLMService; reasoning token usage is now reported asgen_ai.usage.reasoning.output_tokens(wasgen_ai.usage.reasoning_tokens). Update any dashboards or queries filtering on the old values.
(PR #5047) -
Changed OpenAI Realtime
llm_responsespan attributes to standard OTel GenAI names:tokens.prompt/tokens.completion/tokens.totalare nowgen_ai.usage.input_tokens/gen_ai.usage.output_tokens, plus the new cached/audio breakdown attributes. Update any dashboards or queries filtering on the oldtokens.*names.
(PR #5050) -
Changed Gemini Live
llm_responsespan attributes: the non-standardtokens.prompt/tokens.completion/tokens.totalwere removed in favor of the standardgen_ai.usage.input_tokens/gen_ai.usage.output_tokensattributes already present on the same spans. Update any dashboards or queries filtering on the oldtokens.*names.
(PR #5052) -
Updated the
runnerextra to requirepipecat-ai-prebuilt>=1.0.4.
(PR #5061) -
Updated the runner extra to require
pipecat-ai-prebuilt>=1.0.5to add support for the MoQ transport.
(PR #5073) -
TTSServicenow logsGenerating TTS [text]itself, just before invokingrun_tts: at debug level in sentence aggregation mode and at trace level when streaming tokens (TextAggregationMode.TOKEN), where the accumulated turn text is already logged at debug level at flush time. The duplicate per-se...
v1.5.0
Added
-
Added
TogetherSTTServiceandTogetherTTSServicefor real-time speech-to-text and text-to-speech using Together AI's WebSocket APIs.
(PR #4054) -
Added per-sentence synthesis mode and zero-shot audio prompt support to
NvidiaTTSService, letting NVIDIA TTS users choose between stitched and per-request synthesis flows and configure voice-cloning prompts for supported models.
(PR #4742) -
Added
on_heartbeat_timeoutevent handler toPipelineWorker, fired when a heartbeat frame is not received within the monitor timeout period.
(PR #4761) -
Added Time To First Audio (TTFA) metrics to TTS services, reported as
TTFAMetricsDataalongside the existing TTFB metric. TTFA measures the time to the first audible sample — TTFB plus the leading silence many providers pad onto the start of a response — so comparing the two shows how much perceived latency is padding versus service response time. Audible onset is detected from short-time RMS energy (detect_speech_onsetinpipecat.audio.utils), which rejects noise-floor blips and brief transients; theMetricsLogObserversurfaces the new metric.
(PR #4782) -
GeminiTTSServicecan now use the Gemini Developer API (google-genai) backend in addition to the existing Google Cloud backend. Passapi_key(or setGOOGLE_API_KEY) to authenticate with an API key instead of Google Cloud service-account credentials.- The backend is selected automatically: passing
api_keyopts into the GenAI backend, whilecredentials/credentials_pathcontinue to use the Google Cloud backend. Useuse_genai=True/Falseto force a backend explicitly. AGOOGLE_API_KEYpresent in the environment alone does not switch backends — it is only used once the GenAI backend is active. - New
http_optionsparameter forwardsgoogle.genai.types.HttpOptionsto the GenAI client. - The GenAI backend does not support
prompt/style instructions ormulti_speakeroutput; setting them logs a warning and they are ignored. Use the Google Cloud backend for those features.
(PR #4787)
- The backend is selected automatically: passing
-
Added a
modestreaming parameter toAssemblyAISTTService, exposing AssemblyAI's U3 Pro latency/accuracy preset (min_latency,balanced, ormax_accuracy). It trades transcription accuracy against turn-finalization latency and is only applicable to U3 Pro models, where the server defaults tobalanced.
(PR #4810) -
TaskManagercan now be constructed with an event loop and an optionalcontextvars.Context(TaskManager(loop=..., context=...)), and creates all of its tasks within that context. You can pass a single task manager toWorkerRunner(task_manager=...)(and to individual workers) to share one loop and context across the runner and every worker, so context variables set in one task are visible to the others.
(PR #4815) -
Added tunable parameters to the xAI TTS services:
speed,optimize_streaming_latency, andtext_normalization(pluswith_timestampson the WebSocket service). Set them via the service'sSettings, e.g.XAITTSService.Settings(speed=1.1).
(PR #4821) -
Added word-level timestamps to
XAITTSService. Whenwith_timestampsis enabled (now the default), xAI's per-character timing is converted into per-wordTTSTextFrameobjects, each carrying an accuratepts. Note that xAI delivers timestamps in coarse batches, so word frames are emitted in bursts; consumers should schedule offptsrather than arrival time.
(PR #4821) -
Added a
base_urlparameter toTwilioFrameSerializerto configure the REST API host used for auto hang-up. By default the host is still derived fromregion/edge(unchanged behavior), but settingbase_urllets you target a Twilio-API-compatible backend or a self-hosted server instead ofapi.twilio.com.
(PR #4845) -
Added a first-class RTVI
dtmfclient message. Sending{type: "dtmf", data: {button: "1"}}makes theRTVIProcessorpush anInputDTMFFramedownstream, the same path a telephony transport's keypress takes, so any bot with DTMF handling (e.g. aDTMFAggregator) reacts to it. One keypress per message.
(PR #4849) -
Added DTMF keypress support to the behavioral evals. A scenario turn can now press keys with a
dtmf:field (e.g.dtmf: "123#") instead ofuser:, sent as one RTVIdtmfmessage per key. A bot running aDTMFAggregatorreacts to them as a transcription, so adtmfturn can assert onuser_transcriptionandresponselike a spoken turn.
(PR #4849) -
Added built-in text transform functions for TTS voice formatting under
pipecat.utils.text.transforms:strip_markdown,normalize_acronyms,
expand_currency,expand_numbers,expand_percentages,
expand_phone_numbers,expand_units,email_to_speech,normalize_dates,
andreplace_text. These can be composed individually via the
text_transformsparameter on anyTTSService, or used together via the new
VoiceFormatterbundle.VoiceFormatteris a single configurable callable that applies all
transforms in the correct order (structural cleanup → language expansions →
custom replacements). Most transforms are enabled by default; pass keyword
arguments to toggle them:tts = CartesiaTTSService( text_transforms=[("*", VoiceFormatter(expand_numbers=True,
normalize_acronyms=False))],
)
```- Individual transforms can be composed for fine-grained control:
tts = CartesiaTTSService( text_transforms=[("*", strip_markdown), ("*", expand_currency), ("*",
expand_percentages)],
)
```
(PR #4854) -
Added silence-based keepalive to
NvidiaSTTServiceto keep idle NVIDIA streaming ASR sessions from going stale. When no audio arrives for a while, the service sends silence over the existing stream instead of letting it sit idle and degrade.
(PR #4877) -
Pipecat Flows is now part of
pipecat-ai. The conversation-flow framework previously published as the separatepipecat-ai-flowspackage now ships with Pipecat under thepipecat.flowsnamespace —from pipecat.flows import FlowManager, NodeConfig— so there is no longer a separate package to install or keep version-matched. Code importing frompipecat_flowsshould switch topipecat.flows. If the deprecatedpipecat-ai-flowspackage is still installed alongside this Pipecat, Pipecat logs an error prompting you to remove it. The standalone package's release history remains available in the archived pipecat-flows repository.
(PR #4882) -
Added
clear_after_secsparameter toSOXRStreamAudioResampler(default0.2) to control how long after inactivity the internal resampler state is cleared. Set toNoneto disable clearing.
(PR #4886) -
Added
resampler_clear_after_secstoFrameSerializer.InputParamsso all telephony serializers (Twilio, Plivo, Vonage, Telnyx, Exotel, Genesys) expose this setting to callers.
(PR #4886) -
Added a
language_codestreaming parameter toAssemblyAISTTServicefor declaring the audio language (e.g."es","fr"). On U3 Pro models a tier-1 code (en/es/fr/de/it/pt) steers transcription toward that language. It is mutually exclusive withlanguage_detectionand is not sent unless set, so existing behavior is unchanged.
(PR #4889) -
Added
AudioBufferStartRecordingFrameandAudioBufferStopRecordingFramecontrol frames. Push them through the pipeline to start and stopAudioBufferProcessorrecording. Thestart_recording()/stop_recording()methods continue to work.
(PR #4890) -
Added an
auto_start_recordingoption toAudioBufferProcessorthat starts recording as soon as the pipeline starts. Bots generated by the Pipecat CLI with the recording feature now use this option.
(PR #4890) -
Added
on_recording_startedandon_recording_stoppedevents toAudioBufferProcessor, fired when recording starts and stops.on_recording_stoppedfires after the final buffered audio has been emitted.
(PR #4890) -
AI services can now describe themselves to downstream processors at start by overriding
service_metadata_frame()to return a populatedServiceMetadataFrame;broadcast_service_metadata()broadcasts whatever it returns. The STT services that do server-side end-of-turn detection (Deepgram Flux, Cartesia Turns, AssemblyAI, Gladia, Speechmatics) use this to recommendExternalUserTurnStrategies, so bots no longer need to setuser_turn_strategiesby hand; your own setting still wins.
(PR #4892) -
Added
endpoint_latency_adjustment_leveltoSonioxSTTService.Settings, exposing Soniox's endpoint-detection latency control (integer 0–3; higher finalizes turns sooner at some cost to acc...
v1.4.0
Added
-
Added
on_user_turn_message_addedevent handler onLLMUserAggregator, with a newUserTurnMessageAddedMessagearg type. It fires when the user aggregator writes a message to the LLM context, carrying the finalized turn text. In cascade mode it coincides withon_user_turn_stopped; in realtime mode (whenrealtime_service_mode=Trueon the aggregator pair) it's the canonical way to subscribe to "context just updated, here's the user text" (since theon_user_turn_stoppedevent fires before the message is finalized, withUserTurnStoppedMessage.content=None). Note that there's been no change toon_assistant_turn_stopped.
(PR #4533) -
Added
RealtimeServiceMetadataFrame, broadcast at pipeline start by realtime LLM services (OpenAI Realtime, Azure Realtime, Inworld, Grok/xAI Realtime, Gemini Live, AWS Nova Sonic, Ultravox). This frame can be used by other processors in the pipeline to configure themselves accordingly. Today, it only advertises two things: that a realtime service is present in the pipeline (indicated by the fact that the frame is sent at all), andemits_user_turn_frames, which says whether the realtime service can emit its ownUserStartedSpeakingFrameandUserStoppedSpeakingFrames (suggesting local VAD/turn detection may not be needed in the pipeline).
(PR #4533) -
Added to our examples "locally-driven-turns" variants for:
- OpenAI Realtime (
realtime-openai-locally-driven-turns.py) - Grok Realtime (
realtime-grok-locally-driven-turns.py) - Inworld Realtime (
realtime-inworld-locally-driven-turns.py)
These join
realtime-gemini-live-locally-driven-turns.pyin showing how to configure each realtime service so that its turn-taking is dictated by local turn detection (e.g. VAD + smart turn analyzer).
(PR #4533) - OpenAI Realtime (
-
Added a startup WARNING log on realtime LLM services that don't emit
UserStartedSpeakingFrame/UserStoppedSpeakingFrame(Gemini Live, AWS Nova Sonic, Ultravox). The log is meant to draw attention to a couple of things:- That other processors in the pipeline (e.g. RTVI) may expect turn frames, and that the developer can enable local VAD/turn detection to supply them, and, relatedly
- That when using local turn detection, local turns may NOT perfectly align with the "ground truth" of server-decided turns, so they should be thought of as APPROXIMATE (unless local turn detection is driving the realtime service's turns, in which case there's no separate server-decided ground truth)
(The warning also serves as a little nudge to the realtime service providers: providing a "ground truth" signal of when the provider thinks the user has started or stopped speaking is very helpful to app developers!)
(PR #4533) -
Added a
realtime_service_mode: boolkwarg onLLMContextAggregatorPair, for opting into a set of behaviors tailored for use with realtime (speech-to-speech) services. Settingrealtime_service_mode=Truedoes three things: 1. Decouples context writes from theUserStoppedSpeakingFramesignal. Instead, the assistant response start triggers the user message writes. This ensures that context is written properly even when the realtime service provides no turn frames and local turn detection (i.e. local VAD) is disabled. This mechanism also enables the next point. 2. LetsUserStoppedSpeakingFramefire without waiting for transcripts. When local turn detection is configured to drive realtime service conversations,UserStoppedSpeakingFrameis the signal that triggers assistant responses. By letting this frame fire earlier, we reduce latency. 3. Replaces the default turn strategies withExternalUserTurnStartStrategyandExternalUserTurnStopStrategywhen the realtime service advertises that it emits its own turn frames. Various realtime services (OpenAI Realtime, Azure, Grok, Inworld) emit their own turn frames; in that case the External strategies fireon_user_turn_started/on_user_turn_stoppedfrom the server-emittedUserStartedSpeakingFrame/UserStoppedSpeakingFrame. For realtime services that don't emit those frames — either because they never do (Gemini Live, Nova Sonic, Ultravox) or because server-side turn detection has been disabled at runtime (e.g. OpenAI Realtime withturn_detection=False, in locally-driven-turns setups) — the defaults stay in place so locally-driven turn detection (e.g. local VAD) can fire the events. Passing customuser_turn_strategiesopts out of the swap.Note that when
realtime_service_mode=True, you should listen for the newon_user_turn_message_addedevent to get the newly-added user message rather thanon_user_turn_stopped, which no longer carries it.
(PR #4533) -
Added
private_endpointparameter toAzureTTSServiceandAzureHttpTTSServicefor connecting via Private Link or custom domain endpoints, matching existingAzureSTTServicesupport.
(PR #4549) -
Added
will_be_spokenfield toAggregatedTextFrame. Set toTrueby the TTS service just before synthesis, allowing downstream processors and observers to know whether TTS will speak a given text segment before audio begins.
(PR #4559) -
Added
AggregatedTextProgressFrame— a new frame emitted alongside eachTTSTextFrameduring word-timestamp playback. It carriesaccumulated_text(text already spoken) andremaining_text(text not yet spoken) for the active segment, enabling downstream consumers such as the RTVI observer to do word-level highlighting without coupling to internal sequencer state.
(PR #4559) -
Added
AICQuailVADAnalyzer(pipecat.audio.vad.aic_quail_vad), a noise-robustVoice Activity Detection analyzer powered by the standalone Quail VAD 2.0 model from the ai-coustics SDK (aic-sdk~=2.3.0). It owns its ownProcessorand works independently ofAICFilter, so it can sit before or after enhancement in the pipeline. Defaults to the publishedquail-vad-2.0-xxs-16khzmodel; supplymodel_id/model_pathto override.
(PR #4588) -
Added
continuous_partialsandinterruption_delayconnection parameters to the AssemblyAI streaming STT service (u3-rt-proonly).continuous_partialsdefaults toTrueso voice agents receive interim transcripts at a steady cadence during long turns;interruption_delay(0–1000 ms) overrides how soon the first partial is emitted. Both are exposed viaAssemblyAISTTService.Settingsand are omitted for non-u3-rt-promodels.
(PR #4593) -
Added a
user_audio_preroll_secsparameter toGeminiLiveLLMServicecontrolling how much "pre-roll" audio is replayed (sent to Gemini Live) when the user turn start is confirmed, in locally-driven-turns mode (server-side VAD disabled). Defaults toNone, auto-sizing the pre-roll duration from the upstream VAD'sstart_secs(which assumes VAD drives turn starts); set it explicitly when using a non-VAD turn-start strategy.
(PR #4597) -
Added a
user_audio_preroll_secsparameter toOpenAIRealtimeLLMServicecontrolling how much "pre-roll" audio is replayed (re-appended to the input audio buffer) when the user turn start is confirmed, in locally-driven-turns mode (server-side turn detection disabled). Defaults toNone, auto-sizing the pre-roll duration from the upstream VAD'sstart_secs(which assumes VAD drives turn starts); set it explicitly when using a non-VAD turn-start strategy.
(PR #4599) -
Added word-level timestamp support to
SmallestTTSService. Enabled by default via theword_timestampsconstructor argument, it emits per-wordTTSTextFrames aligned to audio playback so downstream consumers (captions, lip-sync, RTVI) receive word timing. Timestamps from each TTS request are offset onto the turn's continuous playback timeline, so multi-sentence turns stay correctly ordered. Available on Smallest's word-timestamp-capable voices; other voices simply emit no word events, so leaving it on is safe. Password_timestamps=Falseto fall back to whole-text frames.
(PR #4612) -
Added a
profanitysetting toAzureSTTService(viasettings=AzureSTTService.Settings(profanity=...)) controlling how Azure handles profanity in transcripts. Accepts"raw"(no masking),"masked"(Azure default, replaces profane words with****), or"removed"(drops profane words). Defaults toNone(keeps the Azure SDK default of"masked"). Use"raw"for non-English deployments where Azure's profanity list over-eagerly masks ordinary words. The setting is runtime-updatable and triggers a reconnect when changed.
(PR #4620) -
WhatsApp
connection_callbacknow receives the full call metadata (WhatsAppConnectCall) as a second argument, available in bot code viarunner_args.body. This gives bots access to the caller's phone number, call ID, direction, and timestamp without any extra API calls.
(PR #4622)Added the
pipecat createproject-scaffolding CLI topipecat-ai, available via the optionalcliextra. Install it withuv tool install "pipecat-ai[cli]"(add--with pipecatcloudto enablepipecat cloud), then runpipecat createto scaffold a new bot project. The CLI dependencies are optional, so they are not pulled into a plain `pip install pipe...
v1.3.0
-
Pipecat pipelines are multi-agent compatible by default. The new multi-agent framework (
pipecat.workers) turns everyPipelineWorker(previouslyPipelineTask) into a peer on a shared bus that passes typed messages, dispatches@jobwork, and coordinates with siblings, while existing single-pipeline code keeps running untouched.examples/multi-worker/ships ready-to-run patterns: LLM handoff, parallel debate, sidecar code assistants and hardware controllers, distributed deployments over Redis or PGMQ, point-to-point WebSocket proxies, and UI workers driving a web client over RTVI.
(PR #4493) -
Added
UIWorker(pipecat.workers.ui): an LLM worker that observes and drives a client web UI over the RTVI UI channel — for voice agents that act on what the user is looking at. It reads the page's accessibility snapshots, routes client UI events to@ui_eventhandlers, drives the page with UI commands (scroll_to,highlight,select_text,click,set_input_value), and answers screen-grounded questions.PipelineWorkerconnects it to the client automatically when RTVI is enabled — no extra wiring.- A voice agent delegates a turn via the built-in
respondjob; the worker returns an answer for the voice LLM to speak, or speaks it verbatim through the agent's TTS withrespond_to_job(answer, tts_speak=True). ReplyToolMixinprovides a ready-madereplytool (a spoken answer plus the standard UI actions).ui_job_group(...)fans work out to peer workers, surfaced to the client as cancellable progress cards.UI_STATE_PROMPT_GUIDEis drop-in system-prompt text that teaches the LLM the<ui_state>wire format.
(PR #4540)
- A voice agent delegates a turn via the built-in
-
Added
VonageVideoConnectorTransport, a new transport integration for real-time Vonage WebRTC sessions using the Vonage Video Connector library.
(PR #4052) -
Added
InceptionLLMServicefor Inception's Mercury 2 diffusion reasoning model, with support forreasoning_effortandrealtimesettings.
(PR #4423) -
Added plain WebSocket transport support to the development runner. Bots can now accept connections from non-telephony WebSocket clients (e.g., browser apps using protobuf framing) via the
/ws-clientendpoint alongside other transports.
(PR #4442) -
Added
GET /statusendpoint to the development runner that reports which transports the running instance accepts (all by default, or the single transport passed via-t).
(PR #4442) -
Added support for the Rime
codaTTS model toRimeTTSServiceandRimeHttpTTSService. Thetemperature,top_p, andrepetition_penaltysettings are not used bycoda. Also added atimeScaleFactorsetting (for thearcanaandcodamodels) to both services — values above 1.0 slow down audio playback; values below 1.0 speed it up.
(PR #4511) -
Added
max_endpoint_delay_mstoSonioxSTTService.Settings, controlling the maximum delay (500-3000 ms) before endpoint detection finalizes a turn.
(PR #4521) -
Added
LLMService.append_system_instruction(...): append durable text to a service's system instruction so it's included on every inference and survives context resets.
(PR #4540) -
Added
CartesiaTurnsSTTServicefor streaming speech-to-text against the Cartesia Streaming ASR v2 (Ink-2) turn-based WebSocket endpoint (/stt/turns/websocket). The server drives turn boundaries viaturn.start/turn.update/turn.endmessages, which the service translates intoUserStartedSpeakingFrame, finalizedTranscriptionFrame, andUserStoppedSpeakingFrame. Eager end-of-turn predictions and turn resumes (turn.eager_endandturn.resume) are surfaced via theon_turn_eager_endandon_turn_resumeevent handlers.
(PR #4552) -
Added the
STTService.supports_ttfsproperty, which subclasses can override to returnFalsewhen TTFS doesn't apply to their architecture (e.g. turn-based STTs where the server defines turn boundaries). WhenFalse,STTMetadataFrameis broadcast withttfs_p99_latency=0.0and the "ttfs_p99_latency not set" warning is suppressed.
(PR #4585)
Changed
-
⚠️ The development runner now supports all transports (WebRTC, Daily, telephony, plain WebSocket) simultaneously from a single server. The/startendpoint accepts a"transport"field to select the transport per-request; omitting-tat startup enables all transports instead of defaulting to WebRTC. The Daily browser-redirect route moved fromGET /toGET /daily.
(PR #4442) -
Changed the default model for
RimeTTSServiceandRimeHttpTTSServicefromarcanatocoda. Code that relied on the implicit default should setmodel="arcana"explicitly to preserve previous behavior.
(PR #4511) -
OpenRouter LLM service now defaults to
openai/gpt-4.1.
(PR #4513) -
OpenRouter LLM requests now convert
developermessages tousermessages by default for broader model compatibility. Override this by subclassingOpenRouterLLMServiceor settingllm.supports_developer_role = Truefor models that support thedeveloperrole.
(PR #4513) -
SonioxSTTServicenow applies settings updates (e.g. viaSTTUpdateSettingsFrame) using a graceful reconnect instead of a hard disconnect/reconnect, preserving the service's reconnect retry behavior.
(PR #4521) -
Updated the default p99 TTFS latency values for Smallest AI, Mistral, and XAI STT so turn stop timing uses measured values instead of the conservative fallback.
(PR #4522) -
Updated the development runner startup banner to show the prebuilt client URL once and list enabled or disabled transports with install hints.
(PR #4524) -
Services and transports with missing optional dependencies now raise
ImportErrorinstead of a bareExceptionwhen their module is imported without the required extra installed. The originalModuleNotFoundErroris preserved as__cause__, so code that wraps these imports can now useexcept ImportError:cleanly instead ofexcept Exception:.
(PR #4525) -
Bumped
pipecat-ai-prebuiltto 1.0.1 in therunnerextra, updating the prebuilt client UI served by the development runner.
(PR #4531) -
Replaced the
transformers.WhisperFeatureExtractordependency inLocalSmartTurnAnalyzerV3with a vendored numpy-only implementation, reducing peak RSS at import from ~566 MB to ~60 MB and cold-start time from ~5.0 s to ~0.3 s. Behavior is numerically equivalent (matches the reference numpy code path within 1e-5 absolute tolerance; ONNX model output is bit-identical on representative inputs).- Smart Turn v3 no longer imports
transformersat module load. - Prepares the ground for making
transformersan optional dependency in a future release. - The vendored STFT is vectorized via
numpy.lib.stride_tricks.sliding_window_view+ batchednp.fft.rfft, cutting_power_spectrogramruntime by ~55% (~4.0 ms → ~1.8 ms per call on a typical 8-second segment at 16 kHz) while preserving the same parity tolerances against the reference implementation.
(PR #4536)
- Smart Turn v3 no longer imports
-
⚠️ Renamed the RTVI UI Worker Protocol's vocabulary from thepipecat-subagentstask/agentterms to Pipecat's nativejob/worker. This spans the wire messages (ui-task→ui-job-group,ui-cancel-task→ui-cancel-job-group), their envelopekinds and fields (task_id→job_id,agents/agent_name→workers/worker_name), the paired Python models/frames (UITask*→UIJobGroup*,RTVIUITask*Frame→RTVIUIJobGroup*Frame), and the@pipecat-ai/client-js/client-reactAPIs (RTVIEvent.UITask→UIJobGroup,cancelUITask→cancelUIJobGroup,useUITasks→useUIJobGroups,UITasksProvider→UIJobGroupsProvider). These primitives shipped in 1.2.0 but were never documented, so no real consumers are affected.
(PR #4540) -
transformersis no longer a base dependency, sopip install pipecat-aino longer pulls it in. This follows Smart Turn v3 dropping itstransformersimport; the only remaining users (the deprecatedLocalSmartTurnAnalyzerV2/CoreML analyzers and the Moondream service) already require thelocal-smart-turnandmoondreamextras, which continue to installtransformers.
(PR #4546) -
Widened the
deepgramextra todeepgram-sdk>=6.1.1,<8so installations can resolve to either deepgram-sdk 6.x or 7.x.DeepgramSTTServicenow handles theagent_restkeyword argument that deepgram-sdk 7.2.0 added toDeepgramClientEnvironment, so custombase_urlconfiguration keeps working on both 6.x and 7.x.
(PR #4565) -
Dropped the upper bound on the
websockets-baseextra (websockets>=13.1) so downstream deployments can resolve to websockets 16.x and beyond. Pipecat'swebsocketsusage relies ...
v1.2.1
Changed
- Changed the default WebSocket endpoints for
GradiumSTTServiceandGradiumTTSServiceto the region-neutralwss://api.gradium.ai/api/speech/asrandwss://api.gradium.ai/api/speech/tts. Gradium now automatically routes traffic to the nearest endpoint. Override the url to pin to a specific region.
(PR #4500)
Fixed
- Fixed bot hangs when
filter_incomplete_user_turnswas enabled and the LLM responded by calling a tool. The user turn never finalized, so the assistant aggregator gated the tool-result context push and the LLM continuation never ran. Tool calls now finalize the turn the moment they start, before the function dispatches.
(PR #4501)
v1.2.0
Added
-
Added a
session_idfield toRunnerArgumentsso bots can log or trace a per-session identifier in local development the same way they can in Pipecat Cloud. The development runner now mints a UUID at every construction site, and paths that already returned asessionIdto the caller (Daily/start, dial-in webhook) share that same UUID with the runner args instead of generating two. The SmallWebRTC/api/offerendpoint also accepts an optionalsession_idquery parameter so the/sessions/{session_id}/...proxy can thread it through.
(PR #4385) -
Added a
max_buffer_delay_msconstructor argument toCartesiaTTSServicefor controlling Cartesia's server-side text buffering. When unset, Pipecat picks a sensible default based ontext_aggregation_mode:0inSENTENCEmode (custom buffering — avoids stacking client-side aggregation on top of Cartesia's default 3000ms server buffer) and unset inTOKENmode (Cartesia's managed buffering applies). Pass an explicit value (0–5000ms) to override.
(PR #4390) -
Added a
mip_opt_outconstructor argument toDeepgramTTSServiceandDeepgramHttpTTSServiceso callers can opt out of the Deepgram Model Improvement Program. When set, the value is forwarded to Deepgram as a query parameter on the speak request. Defaults toNone, which preserves the existing behavior. See https://dpgr.am/deepgram-mip for pricing implications before enabling.
(PR #4400) -
Added an opt-in
add_tool_change_messagesflag to the LLM aggregators (set viaLLMContextAggregatorPair(..., add_tool_change_messages=True)) that appends a developer-role message to the context wheneverLLMSetToolsFramechanges the set of advertised standard tools. Helps the LLM stay coherent across mid-conversation tool changes, mitigating several flavors of tool-call-related hallucination: calling tools that have been removed, avoiding tools that have been re-added, and hallucinating output (made-up answers or tool-call-shaped non-tool-calls) when tools are unavailable.
(PR #4404) -
Added
deferred(strategy)andDeferredUserTurnStopStrategyinpipecat.turns.user_stop. Wraps a stop strategy so it fires only the inference-triggered event and suppresseson_user_turn_stopped, leaving finalization to another strategy in the chain such asLLMTurnCompletionUserTurnStopStrategy.
(PR #4405) -
Added
ExternalUserTurnCompletionStopStrategyinpipecat.turns.user_stop— a generic stop strategy that finalizes the user turn whenever aUserTurnInferenceCompletedFramearrives, regardless of which component produced it.LLMTurnCompletionUserTurnStopStrategynow extends this base; future producers (Flux, custom end-of-turn classifiers, etc.) can use the base directly or subclass it to add producer-specific setup.
(PR #4405) -
Added
on_user_turn_inference_triggered, a new event on the user turn controller, processor, aggregator and stop strategies that fires when a strategy has enough signal to start LLM inference. By default it fires together withon_user_turn_stopped; a gating strategy can fire only the inference-triggered event and defer finalization to a peer.
(PR #4405) -
Added
FilterIncompleteUserTurnStrategiesinpipecat.turns.user_turn_strategies— aUserTurnStrategiesspecialization that wraps the detector chain withdeferred(...)and appendsLLMTurnCompletionUserTurnStopStrategyas the finalizer. Common case:user_turn_strategies=FilterIncompleteUserTurnStrategies(). Passconfig=UserTurnCompletionConfig(...)to customize timeouts and prompts.
(PR #4405) -
Added
LLMTurnCompletionUserTurnStopStrategyinpipecat.turns.user_stop. When installed, the strategy gateson_user_turn_stoppedon aUserTurnInferenceCompletedFrame(a new fieldless system frame emitted by any component that can judge turn completeness — e.g. theUserTurnCompletionLLMServiceMixinon✓). Afinalization_timeoutprovides a safety net if no completion frame ever arrives.
(PR #4405) -
Added first-class RTVI support for the UI Agent Protocol:
- Adds
ui-event,ui-snapshot, andui-cancel-taskclient-to-server messages, plusui-commandandui-taskserver-to-client messages, with paired*Data/*Messagepydantic models. - Adds built-in command payload models for
Toast,Navigate,ScrollTo,Highlight,Focus,Click,SetInputValue, andSelectText; matching default handlers live in@pipecat-ai/client-react. - Adds
RTVIProcessor.on_ui_messagefor inboundui-event,ui-snapshot, andui-cancel-taskmessages. - Adds five UI pipeline frames, mirroring the
client-messageframe-and-event pattern: downstream code pushesRTVIUICommandFrame/RTVIUITaskFramefor the observer to wrap into outboundUICommandMessage/UITaskMessageenvelopes, while the processor pushes inboundRTVIUIEventFrame,RTVIUISnapshotFrame, andRTVIUICancelTaskFramealongsideon_ui_message. - Bumps the RTVI
PROTOCOL_VERSIONfrom1.2.0to1.3.0.
(PR #4407)
- Adds
-
AWS Transcribe STT, Polly TTS, Bedrock LLM, and the Bedrock AgentCore processor now resolve credentials via the standard boto3 provider chain (EC2 instance profiles, EKS pod roles / IRSA, ECS task roles, SSO,
~/.aws/credentials) when explicit credentials andAWS_*environment variables are absent. Services running with IAM roles no longer need to export static credentials.
(PR #4416) -
Added
keytermssupport to ElevenLabs STT services so Scribe V2 callers can bias transcription for both file-based and realtime transcription.
(PR #4426) -
Added
watchdog_min_timeoutparameter toDeepgramFluxSTTandDeepgramFluxSageMakerSTT(default0.5seconds) to control the minimum silence duration before the watchdog sends a silence packet to prevent dangling turns. The actual threshold ismax(chunk_duration * 2, watchdog_min_timeout), so it also adapts automatically to the audio chunk size in use.
(PR #4430) -
Added
cancel_on_interruption=Falsesupport forGeminiLiveLLMServiceon models that support Gemini's NON_BLOCKING tool mechanism (currently Gemini 2.x); the conversation now continues while the tool runs. On models that don't yet support NON_BLOCKING (Gemini 3.x), the service surfaces a one-time warning explaining the limitation. (Note: an intermittent 1008 error can occasionally fire on Gemini 2.5 during long-running tool calls; we auto-reconnect.)
(PR #4448) -
Added
NvidiaSageMakerWebsocketSTTServicefor streaming speech recognition using NVIDIA Nemotron ASR via an AWS SageMaker bidirectional-stream endpoint. ProducesInterimTranscriptionFrameandTranscriptionFrameframes, is VAD-aware, and automatically reconnects on error.
(PR #4464) -
Added NVIDIA Magpie TTS services via AWS SageMaker:
NvidiaSageMakerHTTPTTSService(single HTTP invocation, streams raw PCM back) andNvidiaSageMakerWebsocketTTSService(persistent HTTP/2 bidi-stream with full interruption support viaInterruptibleTTSService).
(PR #4464) -
Added support for
reasoningconfiguration onOpenAIRealtimeLLMService, for use with reasoning-capable Realtime models such asgpt-realtime-2.
(PR #4470) -
Inworld TTS updates:
- Added
delivery_modesetting (STABLE/BALANCED/CREATIVE) toInworldTTSServiceandInworldHttpTTSService, enabling the stability-vs-creativity tradeoff ininworld-tts-2. - Added language support to
InworldTTSServiceandInworldHttpTTSService. Thelanguagesetting is now forwarded to the API, and a newlanguage_to_inworld_language()helper normalizes PipecatLanguageenums to Inworld's BCP-47 locale tags.
(PR #4473)
- Added
Changed
-
Updated the default
SonioxTTSServicemodel fromtts-rt-v1-previewto the generally availabletts-rt-v1.
(PR #4386) -
Default
cartesia_versionforCartesiaTTSServicebumped from2025-04-16to2026-03-01, matchingCartesiaHttpTTSServiceand unlocking theuse_normalized_timestampsandmax_buffer_delay_msfields.
(PR #4390) -
⚠️ CartesiaTTSServicenow sendsuse_normalized_timestamps: trueinstead of the deprecateduse_original_timestampsfield. Word timestamps now reflect what was actually spoken (post text-normalization and pronunciation-dictionary substitution), matching the convention Pipecat uses for ElevenLabs. This is a behavior change forsonic-3users, who were previously receiving timestamps tied to the input transcript.
(PR #4390) -
Broadened
tool_resourcestoapp_resourcesfor easy access not just in tool handlers but in other places like customFrameProcessors. Three changes: a rename (tool_resources→app_resources), a newapp_resourcesproperty onPipelineTask, and a newpipeline_taskproperty onFrameProcessor. Tool handlers now readparams.app_resources; custom processors read `self.pipeline_task.ap...
v1.1.0
Added
-
Added
MistralSTTServicefor real-time speech-to-text using Mistral's Voxtral Realtime API (voxtral-mini-transcribe-realtime-2602). Supports streaming transcription with interim results, automatic language detection, and VAD-driven utterance lifecycle.
(PR #4253) -
Added
buttonsfield toOutputDTMFFrameandOutputDTMFUrgentFramefor sending multi-key DTMF sequences as alist[KeypadEntry]. UseOutputDTMFFrame.from_string("123#")(or the equivalent onOutputDTMFUrgentFrame) to build one from a dial string, andto_string()to convert back.
(PR #4313) -
Added
DailyTransport.send_dtmf()to expose the Daily call client's DTMF sending capability, enabling applications to send tones during a call (e.g. IVR navigation).
(PR #4313) -
Added
DailyOutputDTMFFrameandDailyOutputDTMFUrgentFrameframes. In addition to the inheritedbuttons, they acceptsession_id,digit_duration_msandmethod, which are forwarded to Daily'ssend_dtmfassessionId,digitDurationMsandmethod.
(PR #4313) -
Added incremental
pyrighttype checking. Apyrightconfig.jsonat the repo root usestypeCheckingMode: "basic"with an explicitincludelist of modules that pass cleanly (clocks,metrics,transcriptions,frames,observers,extensions,turns,pipeline,runner). Remaining modules will be added in subsequent PRs. CI enforces the checked set viauv run pyrightin the format workflow.
(PR #4324) -
Added multilingual support to
DeepgramFluxSTTServicevia a newlanguage_hints: list[Language]setting. Works with Deepgram's newflux-general-multimodel to bias transcription across English, Spanish, French, German, Hindi, Russian, Portuguese, Japanese, Italian, and Dutch. Omit the hints to use auto-detection, or pass a subset to bias toward expected languages. Hints can be updated mid-stream viaSTTUpdateSettingsFrame(sent as a DeepgramConfigurecontrol message, no reconnect) to support detect-then-lock flows.
(PR #4326) -
Added fine-grained server-side VAD tuning options to
SarvamSTTService.Settingsfor thesaaras:v3model, including speech thresholds, frame-count controls, pre-speech padding, interruption sensitivity, and initial-frame skipping.
(PR #4334) -
Added
XAISTTServicefor real-time speech-to-text using xAI's voice STT WebSocket API (wss://api.x.ai/v1/stt). Streams raw audio (PCM, µ-law, or A-law) and emits interim and final transcription frames driven by the server'sis_final/speech_finalflags. Settings exposeinterim_results,endpointing,language,multichannel,channels, anddiarize. Requires thexaioptional extra (pip install "pipecat-ai[xai]").
(PR #4340) -
Added
XAITTSServicefor streaming text-to-speech using xAI's WebSocket TTS endpoint (wss://api.x.ai/v1/tts). Streamstext.deltachunks up and base64audio.deltachunks down on the same connection so audio begins flowing before the full utterance finishes synthesizing; complements the batch-HTTPXAIHttpTTSService. Defaults to raw PCM output soTTSAudioRawFrameneeds no decoding. Thexaioptional extra now pulls inpipecat-ai[websockets-base].
(PR #4341) -
Added
SonioxTTSService, a real-time WebSocket TTS service that streams text in and audio out over a persistent connection. Install withpip install "pipecat-ai[soniox]".
(PR #4360) -
Added support for Daily's built-in
screenVideodestination inDailyTransport. When"screenVideo"is included invideo_out_destinationstransport parameter, a dedicated screen video track is created at join time and frames withtransport_destination="screenVideo"are routed to it.params = DailyParams( video_out_enabled=True, video_out_is_live=True, video_out_width=1280, video_out_height=720, video_out_destinations=["screenVideo"] ) ... frame = OutputImageRawFrame(...) frame.transport_destination = "screenVideo"
(PR #4370)
-
Added
camera_out_send_settingstoDailyParams. This dict is passed verbatim to the Daily client's camera publishing settings, allowing applications to fully control encoding, codec, bitrate, and framerate.params = DailyParams( camera_out_send_settings={ "maxQuality": "high", "encodings": { "high": {"maxBitrate": 2_000_000, "maxFramerate": 30} }, }, )
(PR #4370)
-
Added
tool_resourcestoPipelineTaskandFunctionCallParams. Pass an application-defined object (DB handles, clients, state, etc.) toPipelineTask(..., tool_resources=...)and access it from any tool handler viaparams.tool_resources. Passed by reference; the caller retains their handle and can read mutations after the task finishes. Resolves #4256.
(PR #4371)
Changed
-
Updated NVIDIA STT services to align with Nemotron Speech defaults and
configuration:api_keyis now optional for local deployments, additional
recognition settings are available (including alternatives, word offsets, and
diarization), and streaming/segmented docs now reflect Nemotron Speech APIs.- NVIDIA streaming STT now sets
TranscriptionFrame.finalized=Truewhen the provider marks a result as final, and preserveslanguageon bothTranscriptionFrameandInterimTranscriptionFrame.
(PR #4269)
- NVIDIA streaming STT now sets
-
Updated
NvidiaLLMServiceto emit model reasoning asLLMThought*Frames (from bothreasoning_contentand<think>...</think>output), avoid mixing reasoning text into normal assistant content, and allow keyless local NIM endpoints while warning when the cloud endpoint is used without an API key.
(PR #4270) -
STT services now reconnect safely when settings change: reconnection is deferred until the current user turn ends (i.e., until
UserStoppedSpeakingFrameis received) rather than interrupting an active speech session. Audio frames received while the reconnect is in progress are buffered and replayed once the new connection is ready.CartesiaSTTServiceandDeepgramSTTServiceboth use this new behavior.
(PR #4311) -
Reduced debug log noise for LLM services. The system instruction is now logged once when composed (e.g. when turn completion is enabled) instead of on every LLM call. Per-call logs now show only the conversation messages, consistent across Google, Anthropic, AWS, and OpenAI services.
(PR #4314) -
LiveKitRunnerArguments.tokenis now a requiredstr(previouslystr | Nonewith a default ofNone). LiveKit requires a token to join a room, so the type now reflects reality. This only affects custom runners that constructLiveKitRunnerArgumentsdirectly; code consuming the argument from the standard runner is unaffected.
(PR #4324) -
TranscriptionFrame.languageandInterimTranscriptionFrame.languageemitted byDeepgramFluxSTTServicenow reflect the language Deepgram detected for each turn (read from thelanguagesfield on Flux'sTurnInfoevent). Onflux-general-multithis gives per-turn accuracy for downstream consumers (e.g. TTS voice selection).flux-general-encontinues to emitLanguage.EN.
(PR #4326) -
Added
includes_inter_frame_spacesparameter to
TTSService.add_word_timestampsand_add_word_timestamps(defaultNone).
WhenTrue, downstream consumers will not inject additional spaces between
tokens;Noneleaves each frame's own default unchanged.InworldTTSServicenow passesincludes_inter_frame_spaces=Truewhen reporting word timestamps, since Inworld tokens already include inter-word spacing.
(PR #4330)
-
SarvamSTTServicenow usessaaras:v3as its default model instead ofsaarika:v2.5. Applications that relied on the previous default should setsettings=SarvamSTTService.Settings(model="saarika:v2.5")explicitly.
(PR #4334) -
SpeechTimeoutUserTurnStopStrategynow waits onlyuser_speech_timeoutwhen a transcript arrives without a VAD stop event, rather thanmax(ttfs_p99_latency, user_speech_timeout). If you hadttfs_p99_latency > user_speech_timeout, turn detection in that path is slightly faster than before.
(PR #4337) -
If you use an STT service that emits finalized transcripts (Speechmatics, Soniox, Deepgram Flux, AssemblyAI) with
SpeechTimeoutUserTurnStopStrategy, user turns now end as soon asuser_speech_timeoutelapses after VAD stop. Previously the strategy also waited for the STT P99 latency (ttfs_p99_latency) even when the transcript was already marked final.user_speech_timeoutis still honored as a floor — STT finalization never shortens it.
(PR #4337) -
⚠️ `PlivoFrameSerializer...
v1.0.0
Migration guide: https://docs.pipecat.ai/pipecat/migration/migration-1.0
Added
-
Updated LemonSlice transport:
- Added
on_avatar_connectedandon_avatar_disconnectedevents triggered when the avatar joins and leaves the room. - Added
api_urlparameter toLemonSliceNewSessionRequestto allow overriding the LemonSlice API endpoint. - Added support for passing arbitrary named parameters to the LemonSlice API endpoint.
(PR #3995)
- Added
-
Added Inworld Realtime LLM service with WebSocket-based cascade STT/LLM/TTS, semantic VAD, function calling, and Router support.
(PR #4140) -
⚠️ Added WebSocket-basedOpenAIResponsesLLMServiceas the new default for the OpenAI Responses API. It maintains a persistent connection towss://api.openai.com/v1/responsesand automatically usesprevious_response_idto send only incremental context, falling back to full context on reconnection or cache miss. The previous HTTP-based implementation is now available asOpenAIResponsesHttpLLMService.
(PR #4141) -
Added
group_parallel_toolsparameter toLLMService(defaultTrue). WhenTrue, all function calls from the same LLM response batch share a group ID and the LLM is triggered exactly once after the last call completes. Set toFalseto trigger inference independently for each function call result as it arrives.
(PR #4217) -
Added async function call support to
register_function()andregister_direct_function()viacancel_on_interruption=False. When set toFalse, the LLM continues the conversation immediately without waiting for the function result. The result is injected back into the context as adevelopermessage once available, triggering a new LLM inference at that point.
(PR #4217) -
Added
enable_prompt_cachingsetting toAWSBedrockLLMServicefor Bedrock ConverseStream prompt caching.
(PR #4219) -
Added support for streaming intermediate results from async function calls. Call
result_callbackmultiple times withproperties=FunctionCallResultProperties(is_final=False)to push incremental updates, then call it once more (withis_final=True, the default) to deliver the final result. Only valid for functions registered withcancel_on_interruption=False.
(PR #4230) -
Added
LLMMessagesTransformFrameto facilitate programmatically editing context in a frame-based way.The previous approach required the caller to directly grab a reference to the context object, grab a "snapshot" of its messages at that point in time, transform the messages, and then push an
LLMMessagesUpdateFramewith the transformed messages. This approach can lead to problems: what if there had already been a change to the context queued in the pipeline? The transformed messages would simply overwrite it without consideration.
(PR #4231) -
The development runner now exports a module-level
appFastAPI instance (from pipecat.runner.run import app) so you can register custom routes before callingmain().
(PR #4234) -
ToolsSchemanow acceptscustom_toolsfor OpenAI LLM services (OpenAILLMService,OpenAIResponsesLLMService,OpenAIResponsesHttpLLMService, andOpenAIRealtimeLLMService), letting you pass provider-specific tools liketool_searchalongside standard function tools.
(PR #4248) -
Added enhancements to
NvidiaTTSService:- Cross-sentence stitching: multiple sentences within an LLM turn are fed into a single
SynthesizeOnlinegRPC stream for seamless audio across sentence boundaries (requires Magpie TTS model v1.7.0+). custom_dictionaryandencodingparameters for IPA-based custom pronunciation and output audio encoding.- Metrics generation (
can_generate_metricsreturns true) andstop_all_metrics()when an audio context is interrupted. - gRPC error handling around synthesis config retrieval (
GetRivaSynthesisConfig).
(PR #4249)
- Cross-sentence stitching: multiple sentences within an LLM turn are fed into a single
-
Added
MistralTTSServicefor streaming text-to-speech using Mistral's Voxtral TTS API (voxtral-mini-tts-2603). Supports SSE-based audio streaming with automatic resampling from the API's native 24kHz to any requested sample rate. Requires themistraloptional extra (pip install pipecat-ai[mistral]).
(PR #4251) -
Added
truncate_large_valuesparameter toLLMContext.get_messages(). WhenTrue, returns compact deep copies of messages with binary data (base64 images, audio) replaced by short placeholders and long string values in LLM-specific messages recursively truncated. Useful for serialization, logging, and debugging tools.
(PR #4272) -
CartesiaSTTServicenow supports runtime settings updates (e.g. changinglanguageormodelviaSTTUpdateSettingsFrame). The service automatically reconnects with the new parameters. Previously, settings updates were silently ignored.
(PR #4282) -
Added
pcm_32000andpcm_48000sample rate support to ElevenLabs TTS services.
(PR #4293) -
Added
enable_loggingparameter toElevenLabsHttpTTSService. Set toFalseto enable zero retention mode (enterprise only).
(PR #4293)
Changed
-
Updated
onnxruntimefrom 1.23.2 to 1.24.3, adding support for Python 3.14.
(PR #3984) -
MCPClient now requires async with MCPClient(...) as mcp: or explicit start()/close() calls to manage the connection lifecycle.
(PR #4034) -
⚠️ Updatedlangchainextra to require langchain 1.x (from 0.3.x), langchain-community 0.4.x (from 0.3.x), and langchain-openai 1.x (from 0.3.x). If you pin these packages in your project, update your pins accordingly.
(PR #4192) -
WebsocketServicereconnection errors are now non-fatal. When a websocket service exhausts its reconnection attempts (either via exponential backoff or quick failure detection), it emits a non-fatalErrorFrameinstead of a fatal one. This allows application-level failover (e.g.ServiceSwitcher) to handle the failure instead of killing the entire pipeline.
(PR #4201) -
Changed
GrokLLMServicedefault model fromgrok-3-betatogrok-3, now that the model is generally available.
(PR #4209) -
GoogleImageGenServicenow defaults toimagen-4.0-generate-001(previouslyimagen-3.0-generate-002).
(PR #4213) -
⚠️ BaseOpenAILLMService.get_chat_completions()now accepts anLLMContextinstead ofOpenAILLMInvocationParams. If you override this method, update your signature accordingly.
(PR #4215) -
When multiple function calls are returned in a single LLM response, by default (when
group_parallel_tools=True) the LLM is now triggered exactly once after the last call in the batch completes, rather than waiting for all function calls.
(PR #4217) -
⚠️ LLMService.function_call_timeout_secsnow defaults toNoneinstead of10.0. Deferred function calls will run indefinitely unless a timeout is explicitly set at the service level or per-call. If you relied on the previous 10-second default, passfunction_call_timeout_secs=10.0explicitly.
(PR #4224) -
Updated
NvidiaTTSService:- Made
api_keyoptional for local NIM deployments. - Voice, language, and quality can be updated without reconnecting the gRPC client; new values take effect on the next synthesis turn, not for the current turn's in-flight requests.
- Replaced per-sentence synchronous
synthesize_onlinecalls with async queue-backed gRPC streaming. - Streaming now uses asyncio tasks with explicit gRPC cancellation on interruption and stale-response filtering when a stream is aborted or replaced.
- Renamed Riva references to Nemotron Speech in docs and messages.
- Disabled automatic TTS start frames at the service level (
push_start_frame=False) and emitTTSStartedFramewhen a stitched synthesis stream is started for a context.
(PR #4249)
- Made
Removed
-
⚠️ RemovedOpenPipeLLMServiceand theopenpipeextra. OpenPipe was acquired by CoreWeave and the package is no longer maintained. If you were usingopenpipeas an LLM provider, switch to the underlying provider directly (e.g.openai). The OpenPipe interface can still be used withOpenAILLMServiceby specifying abase_url.
(PR #4191) -
⚠️ RemovedNoisereduceFilter. Use system-level noise reduction or a service-based alternative instead.
(PR #4204) -
⚠️ Removed deprecatedvad_enabledandvad_audio_passthroughtransport params.
(PR #4204) -
⚠️ Removed deprecatedcamera_in_enabled,camera_in_is_live,camera_in_width,camera_in_height, `came...
v0.0.108
Added
-
Added
SarvamLLMServicewith support forsarvam-30b,sarvam-30b-16k,sarvam-105bandsarvam-105b-32k.
(PR #3978) -
Added
on_turn_context_created(context_id)hook toTTSService. Override this to perform provider-specific setup (e.g. eagerly opening a server-side context) before text starts flowing. Called each time a new turn context ID is created.
(PR #4013) -
Added
XAIHttpTTSServicefor text-to-speech using xAI's HTTP TTS API.
(PR #4031) -
Added support for "developer" role messages in conversation context across all LLM adapters. For non-OpenAI services (Anthropic, Google, AWS Bedrock), "developer" messages are converted to "user" messages (use
system_instructionto set the system instruction). For OpenAI services, "developer" messages pass through in conversation history. For the Responses API, they are kept as "developer" role (matching the existing "system" → "developer" conversion).
(PR #4089) -
Added
SmallestTTSService, a WebSocket-based TTS service integration with Smallest AI's Waves API. Supports the Lightning v2 and v3.1 models with configurable voice, language, speed, consistency, similarity, and enhancement settings.
(PR #4092) -
Added warnings in turn stop strategies when
VADParams.stop_secsdiffers from the recommended default (0.2s) or whenstop_secs >= STT p99 latency, which collapses the STT wait timeout to 0s and may cause delayed turn detection. The warnings guide developers to re-run the stt-benchmark with their VAD settings.
(PR #4115) -
Added
domainparameter toAssemblyAISTTSettingsfor specialized recognition modes such as Medical Mode (domain="medical-v1").
(PR #4117) -
Added
NovitaLLMServicefor using Novita AI's LLM models via their OpenAI-compatible API.
(PR #4119) -
Added
cleanup()method toVADAnalyzerandVADControllerso VAD analyzer resources are properly released when no longer needed. CustomVADAnalyzersubclasses can overridecleanup()to free any held resources.
(PR #4120) -
Added
on_end_of_turnevent handler toAssemblyAISTTService. This fires after the final transcript is pushed, providing a reliable hook for end-of-turn logic that doesn't race withTranscriptionFrame. Works in both Pipecat and AssemblyAI turn detection modes.
(PR #4128) -
Added
DeepgramFluxSageMakerSTTServicefor running Deepgram Flux speech-to-text on AWS SageMaker endpoints. Use withExternalUserTurnStrategiesto take advantage of Flux's turn detection.
(PR #4143) -
Added
Mem0MemoryService.get_memories()convenience method for retrieving all stored memories outside the pipeline (e.g. to build a personalized greeting at connection time). This avoids the need to manually handle client type branching, filter construction, and async wrapping.
(PR #4156)
Changed
-
Added context prewarming path for
InworldTTSServiceto improve first audio latency.
(PR #4013) -
Added
KrispVivaVadAnalyzerfor Voice Activity Detection using the Krisp VIVA SDK (requireskrisp_audio).
(PR #4022) -
Modified
InworldTTSServiceto close context at end of turn instead of relying on idle timeout. (PR #4028) -
Added Gemini 3 support to the Gemini Live service.
(PR #4078) -
TTSService: the defaultstop_frame_timeout_s(idle time before an automaticTTSStoppedFrameis pushed whenpush_stop_frames=True) has changed from2.0to3.0seconds.
(PR #4084) -
⚠️ GeminiLLMAdapternow only treatsmessages[0]as the initial system message, matching all other adapters. Previously it searched for the first "system" message anywhere in the conversation history. A "system" message appearing later in the list will now be converted to "user" instead of being extracted as the system instruction.(PR #4089)
-
Fixed
InworldTtsServiceto fallback to full text when TTS timestamps are not received.
(PR #4113) -
⚠️ Realtime services (Gemini Live, OpenAI Realtime, Grok Realtime, Nova Sonic) now prefersystem_instructionfrom service settings over an initial system message in the LLM context, matching the behavior of non-realtime services. Previously, context-provided system instructions took precedence. A warning is now logged when both are set.
(PR #4130) -
Bumped
nvidia-riva-clientminimum version to>=2.25.1.
(PR #4136) -
Upgraded
protobuffrom 5.x to 6.x (>=6.31.1,<7).
(PR #4136) -
Unrecognized language strings (e.g. Deepgram's
"multi") no longer produce a warning at startup. The log message has been downgraded to debug level since these are valid service-specific values that are passed through correctly.
(PR #4137) -
GrokLLMServiceandGrokRealtimeLLMServicenow live in thepipecat.services.xaimodule alongsideXAIHttpTTSService, since all three use the same xAI API. Update imports frompipecat.services.grok.*topipecat.services.xai.*(e.g.from pipecat.services.xai.llm import GrokLLMService).
(PR #4142) -
⚠️ Bumpedmem0aidependency from~=0.1.94to>=1.0.8,<2. Users of themem0extra will need to update their mem0ai package.
(PR #4156)
Deprecated
pipecat.services.grok.llm,pipecat.services.grok.realtime.llm, and
pipecat.services.grok.realtime.eventsare deprecated. The old import paths
still work but emit aDeprecationWarning; usepipecat.services.xai.llm,
pipecat.services.xai.realtime.llm, and
pipecat.services.xai.realtime.eventsinstead.
(PR #4142)
Removed
-
⚠️ TTSService.add_word_timestamps()no longer supports the"Reset"and"TTSStoppedFrame"sentinel strings. If you have a custom TTS service that calledawait self.add_word_timestamps([("Reset", 0)])orawait self.add_word_timestamps([("TTSStoppedFrame", 0), ("Reset", 0)], ctx_id), replace them withawait self.append_to_audio_context(ctx_id, TTSStoppedFrame(context_id=ctx_id))and let_handle_audio_contextmanage the word-timestamp reset automatically.
(PR #4145) -
Removed
SambaNovaSTTService. SambaNova no longer offers speech-to-text audio models. Use another STT provider instead.
(PR #4154)
Fixed
-
Fixed Gemini Live (
GoogleGeminiLiveLLMService) not honoringsettings.system_instruction. The system instruction was being read from a deprecated constructor parameter instead of the settings object, causing it to be silently ignored.
(PR #4089) -
Fixed
AWSBedrockLLMAdaptersending an empty message list to the API when the only message in context was a system message. The lone system message is now converted to "user" role instead of being extracted, matching the existing Anthropic adapter behavior.
(PR #4089) -
Fixed Gemini Live pipeline hanging indefinitely when an
EndFramewas deferred while waiting for the bot to finish responding andturn_completenever arrived. As a possible root-cause fix,turn_completemessages are now handled even if they lackusage_metadata. As a fallback, the deferredEndFramenow has a 30-second safety timeout.
(PR #4125) -
Fixed ElevenLabs WebSocket disconnections (1008 "Maximum simultaneous contexts exceeded") caused by rapid user interruptions. When interruptions arrived before any TTS text was generated, phantom contexts were created on the ElevenLabs server that were never closed, eventually exceeding the 5-context limit.
(PR #4126) -
Fixed the final sentence being dropped from the conversation context when using RTVI text input with non-word-timestamp TTS services. The
LLMFullResponseEndFramewas racing ahead of the lastTTSTextFrame, causing theLLMAssistantAggregatorto finalize the context before the final sentence arrived.
(PR #4127) -
Fixed audio crackling and popping in recordings when both user and bot are speaking.
AudioBufferProcessorno longer injects silence into a track's buffer while that track is actively producing audio, preventing mid-utterance interruptions in the recorded output.
(PR #4135) -
Fixed websocket TTS word timestamps so interrupted contexts cannot leak stale words or backward PTS values into later turns.
(PR #4145)
...