Skip to content

Software

whisper_ros

From github.com/mgonzs13/whisper_ros (opens in a new tab)

  • Humanoids and robot learning
  • Library
  • MIT

A set of ROS 2 packages that bring whisper.cpp speech-to-text into ROS 2, using audio_common for audio and Silero VAD for voice activity detection.

Facts

GitHub stars
96read on 29 Nov 2026
Last update
28 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
For CUDA: the CUDA Toolkit, plus cuDNN to run Silero VAD with ONNX and CUDA; the NVIDIA Container Toolkit for CUDA in Docker. CPU-only inference can be sped up with OpenBLAS. No other requirements are stated.

Checked on GitHub on 29 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 3bf5091 (opens in a new tab), on 29 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Runs Whisper for speech-to-text transcription inside ROS 2, with a listen action for sending transcription goals.
  • Uses Silero VAD to detect voice activity in the incoming audio.
  • Offers many parameters covering the model, sampling, transcription, token timestamps, decoding fallback, diarization, GPU and DTW timestamps.
  • Can be built with CUDA for GPU inference on Whisper and Silero, or with OpenBLAS for faster CPU-only inference.
  • Includes a Docker image, with optional CUDA support, and launch files plus a demo node for trying it out.
  • Supports ROS 2 Humble, Iron, Jazzy, Kilted, Lyrical and Rolling.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 28 Nov 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 3bf5091

Robotheca read the repository at two versions: the summary at 4e0f285 and the facts and the README at 3bf5091 (read on 29 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @mgonzs13, at commit 3bf5091, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

whisper_ros

This repository provides a set of ROS 2 packages to integrate whisper.cpp (opens in a new tab) into ROS 2 using audio_common (opens in a new tab). Besides, silero-vad (opens in a new tab) is used to perform VAD (Voice Activity Detection).

Table of Contents
  1. Related Projects
  2. Installation
  3. Docker
  4. Usage
  5. Params
  6. Demos
Related Projects
Installation

To run whisper_ros with CUDA, first, you must install the CUDA Toolkit (opens in a new tab). SileroVAD runs on CPU using the onnxruntime_vendor (opens in a new tab) package from the ROS distro.

cd ~/ros2_ws/src
git clone https://github.com/mgonzs13/whisper_ros.git
cd ~/ros2_ws
vcs import src < src/whisper_ros/dependencies.repos
rosdep install --from-paths src --ignore-src -r -y
colcon build --cmake-args -DGGML_CUDA=ON # To use CUDA on Whisper

To accelerate CPU-only inference, whisper_ros can be compiled with BLAS support using OpenBLAS (opens in a new tab) (install it first, e.g., sudo apt install libopenblas-dev):

colcon build --cmake-args -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS
Docker

Build the whisper_ros docker. Additionally, you can choose to build whisper_ros with CUDA (USE_CUDA) and choose the CUDA version (CUDA_VERSION). Remember that you have to use DOCKER_BUILDKIT=0 to compile whisper_ros with CUDA when building the image.

DOCKER_BUILDKIT=0 docker build -t whisper_ros --build-arg USE_CUDA=1 --build-arg CUDA_VERSION=12-6 .

Run the docker container. If you want to use CUDA, you have to install the NVIDIA Container Toolkit (opens in a new tab) and add --gpus all.

docker run -it --rm --gpus all whisper_ros
Usage

Run Silero for VAD and Whisper for STT:

ros2 launch whisper_bringup whisper.launch.py
Params
Model Parameters (model.*)
ParamTypeDefaultDescription
model.repostring""HuggingFace repository for model download.
model.filenamestring""Filename of the model in the repository.
model.pathstring""Local path to the Whisper model file. If empty, the model is downloaded from model.repo.
model.openvino_encode_devicestring"CPU"OpenVINO device for encoder inference (e.g., "CPU", "GPU").
Sampling Parameters (sampling.*)
ParamTypeDefaultDescription
sampling.strategystring"beam_search"Decoding strategy: "greedy" or "beam_search".
sampling.greedy_best_ofint325Number of best candidates to keep when using greedy sampling.
sampling.beam_search_beam_sizeint325Beam size for beam search.
sampling.beam_search_patiencefloat-1.0Beam search patience factor (-1.0 = use whisper.cpp default).
Transcription Parameters (transcription.*)
ParamTypeDefaultDescription
transcription.n_threadsint324Number of threads for processing. Use -1 to auto-detect from hardware concurrency.
transcription.n_max_text_ctxint3216384Maximum tokens to use from past text as prompt for the decoder.
transcription.n_processorsint321Number of processors for parallel transcription via whisper_full_parallel.
transcription.offset_msint320Start offset in milliseconds.
transcription.duration_msint320Audio duration to process in milliseconds (0 = process all).
transcription.audio_ctxint320Overwrite the audio context size (0 = use model default).
transcription.languagestring"en"Spoken language code (e.g., "en", "es", "de"). Use "auto" for auto-detection.
transcription.detect_languageboolfalseIf true, auto-detect the spoken language and exit without transcription.
transcription.translateboolfalseIf true, translate the transcription to English.
transcription.no_contextbooltrueIf true, do not use past transcription as initial prompt for the decoder.
transcription.no_timestampsboolfalseIf true, do not generate timestamps.
transcription.single_segmentboolfalseIf true, force single segment output (useful for streaming).
transcription.initial_promptstring""Initial prompt text prepended to the decoder context to guide transcription.
transcription.carry_initial_promptboolfalseIf true, always prepend the initial prompt to every decode window.
transcription.suppress_regexstring""A regular expression that matches tokens to suppress (empty = disabled).
transcription.suppress_blankbooltrueSuppress blank outputs at the beginning of the sampling.
transcription.suppress_nstboolfalseSuppress non-speech tokens.
transcription.debug_modeboolfalseEnable extra debug information from whisper.cpp (e.g., dump the log-mel spectrogram).
Token Timestamps Parameters (token_timestamps.*)
ParamTypeDefaultDescription
token_timestamps.enabledboolfalseEnable token-level timestamps.
token_timestamps.thold_ptfloat0.01Timestamp token probability threshold.
token_timestamps.thold_ptsumfloat0.01Timestamp token sum probability threshold.
token_timestamps.max_lenint320Maximum segment length in characters (0 = no limit).
token_timestamps.split_on_wordboolfalseIf true, split on word rather than on token (when used with max_len).
token_timestamps.max_tokensint320Maximum tokens per segment (0 = no limit).
Decoding / Fallback Parameters (decoding.*)
ParamTypeDefaultDescription
decoding.temperaturefloat0.0Initial decoding temperature. Use 0.0 for deterministic output.
decoding.max_initial_tsfloat1.0Maximum initial timestamp allowed.
decoding.length_penaltyfloat-1.0Length penalty factor (-1.0 = use whisper.cpp default).
decoding.temperature_incfloat0.2Temperature increment on decoding fallback.
decoding.entropy_tholdfloat2.4Entropy threshold for decoding fallback (similar to compression ratio).
decoding.logprob_tholdfloat-1.0Log probability threshold for decoding fallback.
decoding.no_speech_tholdfloat0.6No-speech probability threshold. If the no-speech probability exceeds this value and logprob_thold fails, consider the segment as silence.
Speaker Diarization Parameters (diarization.*)
ParamTypeDefaultDescription
diarization.tdrz_enableboolfalseEnable tinydiarize speaker turn detection.
GPU / Backend Parameters (gpu.*)
ParamTypeDefaultDescription
gpu.enabledbooltrueEnable GPU inference.
gpu.flash_attnbooltrueEnable flash attention.
gpu.deviceint320CUDA device index, or accelerator index when multiple backends are available.
gpu.hexagon_mm_selectint32-1Hexagon matmul selection: -1 keep environment, 0 CPU, 1 HVX, 2 HMX (VENTUNO Q only).
DTW Token Timestamps Parameters (dtw.*)
ParamTypeDefaultDescription
dtw.token_timestampsboolfalseEnable experimental token-level timestamps with DTW.
dtw.n_topint32-1Number of top text layers for DTW alignment heads (-1 = disabled).
dtw.aheadsstring"none"DTW alignment heads preset. Options: "none", "tiny", "tiny.en", "base", "base.en", "small", "small.en", "medium", "medium.en", "large.v1", "large.v2", "large.v3", "large.v3.turbo".
Demos

Send a goal action to listen:

ros2 action send_goal /whisper/listen whisper_msgs/action/STT "{}"

Or try the example of a whisper client:

ros2 run whisper_demos whisper_demo_node

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.