Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Mar 28, 2024
1 parent 0fffca7 commit e1ee4b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions silero_vad_ros/launch/sample.launch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<launch>
<arg name="vad_threshold" default="0.5" />
<arg name="vad_minimum_duration" default="1.0" />
<arg name="vad_minimum_duration" default="0.6" />
<arg name="vad_maximum_duration" default="10.0" />
<arg name="vad_audio_timeout_duration" default="0.3" />
<arg name="vad_audio_timeout_duration" default="0.5" />

<include file="$(find audio_capture)/launch/capture.launch">
<arg name="format" value="wave" />
Expand Down Expand Up @@ -50,4 +50,4 @@
type="print_stt_result.py"
output="screen"
/>
</launch>
</launch>
4 changes: 2 additions & 2 deletions webrtcvad_ros/python/webrtcvad_ros/vad_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e1ee4b0

Please sign in to comment.