Tune engine vad config
This commit is contained in:
@@ -30,7 +30,7 @@ class EouDetector:
|
||||
self.silence_start_time: Optional[float] = None
|
||||
self.triggered = False
|
||||
|
||||
def process(self, vad_status: str) -> bool:
|
||||
def process(self, vad_status: str, force_eligible: bool = False) -> bool:
|
||||
"""
|
||||
Process VAD status and detect end of utterance.
|
||||
|
||||
@@ -58,7 +58,7 @@ class EouDetector:
|
||||
self.silence_start_time = now
|
||||
|
||||
speech_duration = self.silence_start_time - self.speech_start_time
|
||||
if speech_duration < self.min_speech:
|
||||
if speech_duration < self.min_speech and not force_eligible:
|
||||
self.is_speaking = False
|
||||
self.silence_start_time = None
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user