From ec36fef26ef3297433182010de2ddd4db4a90b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 3 Mar 2025 09:53:03 -0800 Subject: [PATCH] updated CHANGELOG and fix GladiaSTTService formatting --- CHANGELOG.md | 2 ++ src/pipecat/services/gladia.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e6ae5c21..7e30fe4be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added `speech_threshold` parameter to `GladiaSTTService`. + - Allow passing user (`user_kwargs`) and assistant (`assistant_kwargs`) context aggregator parameters when using `create_context_aggregator()`. The values are passed as a mapping that will then be converted to arguments. diff --git a/src/pipecat/services/gladia.py b/src/pipecat/services/gladia.py index 5082e9ea2..09bcd7aa3 100644 --- a/src/pipecat/services/gladia.py +++ b/src/pipecat/services/gladia.py @@ -136,7 +136,8 @@ class GladiaSTTService(STTService): maximum_duration_without_endpointing: Optional[int] = 10 audio_enhancer: Optional[bool] = None words_accurate_timestamps: Optional[bool] = None - speech_threshold: Optional[float] = .99 + speech_threshold: Optional[float] = 0.99 + def __init__( self, *, @@ -144,7 +145,7 @@ class GladiaSTTService(STTService): url: str = "https://api.gladia.io/v2/live", confidence: float = 0.5, sample_rate: Optional[int] = None, - params: InputParams = InputParams(), + params: InputParams = InputParams(), **kwargs, ): super().__init__(sample_rate=sample_rate, **kwargs)