From 9fd76923fd92ea55435d211bb50ff28b51ae5a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 24 Apr 2025 17:13:18 -0700 Subject: [PATCH] STTService: passthrough audio frames by default --- CHANGELOG.md | 4 ++++ src/pipecat/services/stt_service.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7294fd00..1a67612b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- STT services now passthrough audio frames by default. This allows you to add + audio recording without worrying about what's wrong in your pipeline when it + doesn't work the first time. + - Input transports now always push audio downstream unless disabled with `TransportParams.audio_in_passthrough`. After many Pipecat releases, we realized this is the common use case. There are use cases where the input diff --git a/src/pipecat/services/stt_service.py b/src/pipecat/services/stt_service.py index 56367f46e..5e57b3104 100644 --- a/src/pipecat/services/stt_service.py +++ b/src/pipecat/services/stt_service.py @@ -30,7 +30,7 @@ class STTService(AIService): def __init__( self, - audio_passthrough=False, + audio_passthrough=True, # STT input sample rate sample_rate: Optional[int] = None, **kwargs,