add suggestions

This commit is contained in:
Fabrice Lamant
2025-08-29 14:51:20 +02:00
parent edc8cc1e69
commit 25b595e125
2 changed files with 2 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ class PreProcessingConfig(BaseModel):
"""
audio_enhancer: Optional[bool] = None
speech_threshold: Optional[float] = 0.7
speech_threshold: Optional[float] = None
class CustomVocabularyItem(BaseModel):
@@ -155,7 +155,6 @@ class GladiaInputParams(BaseModel):
Parameters:
encoding: Audio encoding format
bit_depth: Audio bit depth
sample_rate: Audio sample rate
channels: Number of audio channels
custom_metadata: Additional metadata to include with requests
endpointing: Silence duration in seconds to mark end of speech

View File

@@ -304,10 +304,7 @@ class GladiaSTTService(STTService):
}
# Add custom_metadata if provided
if self._params.custom_metadata:
settings["custom_metadata"] = self._params.custom_metadata
else:
settings["custom_metadata"] = {}
settings["custom_metadata"] = dict(self._params.custom_metadata or {})
settings["custom_metadata"]["pipecat"] = pipecat_version
# Add endpointing parameters if provided