From 4c1d2417ce488939ba5c8f73da497f4e2975c66d Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Sat, 2 Aug 2025 09:21:55 -0400 Subject: [PATCH] fix: add missing transcription callbacks to TavusVideoService --- CHANGELOG.md | 3 +++ src/pipecat/transports/services/tavus.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d31a76c75..2273de354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed an issue with the `TavusVideoService` where an error was thrown due to + missing transcription callbacks. + - Fixed an issue in `LiveKitTransport` where empty `AudioRawFrame`s were pushed down the pipeline. This resulted in warnings by the STT processor. diff --git a/src/pipecat/transports/services/tavus.py b/src/pipecat/transports/services/tavus.py index 10ae001e0..d825845be 100644 --- a/src/pipecat/transports/services/tavus.py +++ b/src/pipecat/transports/services/tavus.py @@ -242,6 +242,10 @@ class TavusTransportClient: on_transcription_message=partial( self._on_handle_callback, "on_transcription_message" ), + on_transcription_stopped=partial( + self._on_handle_callback, "on_transcription_stopped" + ), + on_transcription_error=partial(self._on_handle_callback, "on_transcription_error"), on_recording_started=partial(self._on_handle_callback, "on_recording_started"), on_recording_stopped=partial(self._on_handle_callback, "on_recording_stopped"), on_recording_error=partial(self._on_handle_callback, "on_recording_error"),