From 2e57d21b89bacf662a883a22a096432a9f293da1 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Mon, 28 Oct 2024 20:27:24 -0400 Subject: [PATCH 1/2] Fix ttfb metrics --- src/pipecat/services/playht.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pipecat/services/playht.py b/src/pipecat/services/playht.py index bfc398296..b8995374a 100644 --- a/src/pipecat/services/playht.py +++ b/src/pipecat/services/playht.py @@ -293,8 +293,6 @@ class PlayHTTTSService(TTSService): except Exception as e: logger.error(f"{self} error generating TTS: {e}") yield ErrorFrame(f"{self} error: {str(e)}") - finally: - await self.stop_all_metrics() class PlayHTHttpTTSService(TTSService): From 05b857006ab603a194b32409437fdd3c2d8829eb Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Mon, 28 Oct 2024 20:56:29 -0400 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 268ca8504..39fd6db0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed an issue that was causing stuttering with AWS TTS service. +- Fixed an issue with PlayHTTTSService, where the TTFB metrics were reporting + very small time values. + ## [0.0.47] - 2024-10-22 ### Added