Skip to content

Commit ca26ac0

Browse files
committed
whisper.cpp updated + suppress_non_speech_tokens renamed to suppress_nst
1 parent 0ee1bca commit ca26ac0

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

whisper_bringup/launch/whisper.launch.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ def run_whisper(context: LaunchContext, repo, file, model_path):
7070
"language": LaunchConfiguration("language", default="en"),
7171
"detect_language": LaunchConfiguration("detect_language", default=False),
7272
"suppress_blank": LaunchConfiguration("suppress_blank", default=True),
73-
"suppress_non_speech_tokens": LaunchConfiguration(
74-
"suppress_non_speech_tokens", default=False
75-
),
73+
"suppress_nst": LaunchConfiguration("suppress_nst", default=False),
7674
"temperature": LaunchConfiguration("temperature", default=0.00),
7775
"max_initial_ts": LaunchConfiguration("max_initial_ts", default=1.00),
7876
"length_penalty": LaunchConfiguration("length_penalty", default=-1.00),

whisper_cpp_vendor/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ find_package(ament_cmake REQUIRED)
1111
FetchContent_Declare(
1212
whisper
1313
GIT_REPOSITORY https://github.com/ggerganov/whisper.cpp.git
14-
GIT_TAG v1.7.3
14+
GIT_TAG v1.7.4
1515
)
1616

1717
FetchContent_MakeAvailable(whisper)

whisper_ros/src/whisper_ros/whisper_base_node.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ WhisperBaseNode::WhisperBaseNode()
7474
{"speed_up", false},
7575
{"detect_language", false},
7676
{"suppress_blank", true},
77-
{"suppress_non_speech_tokens", false},
77+
{"suppress_nst", false},
7878
{"use_gpu", true},
7979
{"flash_attn", false},
8080
{"dtw_token_timestamps", false},
@@ -126,8 +126,7 @@ WhisperBaseNode::on_configure(const rclcpp_lifecycle::State &) {
126126
this->get_parameter("detect_language", this->wparams.detect_language);
127127

128128
this->get_parameter("suppress_blank", this->wparams.suppress_blank);
129-
this->get_parameter("suppress_non_speech_tokens",
130-
this->wparams.suppress_non_speech_tokens);
129+
this->get_parameter("suppress_nst", this->wparams.suppress_nst);
131130

132131
this->get_parameter("temperature", this->wparams.temperature);
133132
this->get_parameter("max_initial_ts", this->wparams.max_initial_ts);

0 commit comments

Comments
 (0)