add suggestions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user