services(whisper): increase no speech probability to 0.4
This commit is contained in:
@@ -45,7 +45,7 @@ class WhisperSTTService(STTService):
|
||||
model: Model = Model.DISTIL_MEDIUM_EN,
|
||||
device: str = "auto",
|
||||
compute_type: str = "default",
|
||||
no_speech_prob: float = 0.1,
|
||||
no_speech_prob: float = 0.4,
|
||||
**kwargs):
|
||||
|
||||
super().__init__(**kwargs)
|
||||
|
||||
@@ -177,7 +177,7 @@ class BaseInputTransport(FrameProcessor):
|
||||
vad_state = self._handle_vad(frame.audio, vad_state)
|
||||
audio_passthrough = self._params.vad_audio_passthrough
|
||||
|
||||
# Push audio downstream if passthrough.
|
||||
# Push audio downstream if passthrough.
|
||||
if audio_passthrough:
|
||||
future = asyncio.run_coroutine_threadsafe(
|
||||
self._internal_push_frame(frame), self._loop)
|
||||
|
||||
Reference in New Issue
Block a user