From e1ee4b03362f7244a0bcf95ce36d469c690b5bef Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 28 Mar 2024 14:29:13 +0900 Subject: [PATCH] update --- silero_vad_ros/launch/sample.launch | 6 +++--- webrtcvad_ros/python/webrtcvad_ros/vad_core.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/silero_vad_ros/launch/sample.launch b/silero_vad_ros/launch/sample.launch index 69b5e3bbd..dea5568d6 100644 --- a/silero_vad_ros/launch/sample.launch +++ b/silero_vad_ros/launch/sample.launch @@ -1,8 +1,8 @@ - + - + @@ -50,4 +50,4 @@ type="print_stt_result.py" output="screen" /> - \ No newline at end of file + diff --git a/webrtcvad_ros/python/webrtcvad_ros/vad_core.py b/webrtcvad_ros/python/webrtcvad_ros/vad_core.py index d6d8b58cc..037184936 100644 --- a/webrtcvad_ros/python/webrtcvad_ros/vad_core.py +++ b/webrtcvad_ros/python/webrtcvad_ros/vad_core.py @@ -16,9 +16,9 @@ def __init__(self, chunk_size: int = 480): self._audio_buffer = b"" self._threshold = rospy.get_param("~threshold", 0.1) - self._minimum_duration = rospy.get_param("~minimum_duration", 1.0) + self._minimum_duration = rospy.get_param("~minimum_duration", 0.6) self._maximum_duration = rospy.get_param("~maximum_duration", 10.0) - self._audio_timeout_duration = rospy.get_param("~audio_timeout_duration", 0.3) + self._audio_timeout_duration = rospy.get_param("~audio_timeout_duration", 0.5) self._pub_is_speech = rospy.Publisher("~is_speeching", Bool, queue_size=1) self._pub_speech_audio = rospy.Publisher(