updated CHANGELOG and fix GladiaSTTService formatting

This commit is contained in:
Aleix Conchillo Flaqué
2025-03-03 09:53:03 -08:00
parent 5f1848d24b
commit ec36fef26e
2 changed files with 5 additions and 2 deletions

View File

@@ -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.

View File

@@ -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)