No version for distro humble showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

No version for distro rolling showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

No version for distro github showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

No version for distro galactic showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

No version for distro iron showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange

Package Summary

Version 3.0.2
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

VOICEVOX: AI speech synthesis

Additional Links

Maintainers

  • Iori Yanokura
  • Michitoshi Tsubaki

Authors

  • Iori Yanokura

voicevox

ROS interface for VOICEVOX, a free Japanese AI speech synthesis engine. The package builds the VOICEVOX engine (CPU) into the package, and launches it together with sound_play so that Japanese text sent to robotsound_jp is spoken. It can also publish the speech as raw PCM on an audio topic instead, and can use the official VOICEVOX Docker image (CPU or GPU) or an engine running on another machine. The same launch arguments and environment variables work on ROS 1 and ROS 2.

Try it with Docker first

The official VOICEVOX engine image needs no build. Try the voices with it (CPU image, about 2.7 GB on disk):

docker run --rm -p 50021:50021 voicevox/voicevox_engine:cpu-ubuntu20.04-latest
# another terminal: synthesize 「こんにちは」 with speaker 3 (ずんだもん-ノーマル), see Speakers
curl -s -X POST --get --data-urlencode 'text=こんにちは' 'localhost:50021/audio_query?speaker=3' > query.json
curl -s -X POST -H 'Content-Type: application/json' -d @query.json 'localhost:50021/synthesis?speaker=3' > voice.wav

The nodes of this package can use that engine instead of the one built into the package: remote_only:=true starts no engine and uses the one at host:port (default localhost:50021), and use_docker:=true makes the launch file start the container itself (see Deployment patterns):

ros2 launch voicevox voicevox_texttospeech.launch.xml remote_only:=true   # the container above
ros2 launch voicevox voicevox_texttospeech.launch.xml use_docker:=true    # or: the launch file runs it
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは'}"

(ROS 1: roslaunch voicevox voicevox_texttospeech.launch with the same arguments.) The package itself still has to be built (its nodes and the Python client run in its virtualenv), and the build always downloads the engine, the core and the resources described in Requirements; only the engine which runs differs.

Demo

voicevox demo

The engine of this package (ROS 2 jazzy, CPU, offline; ros2 launch voicevox voicevox_texttospeech.launch.xml launch_sound_play:=false, as sound_play is not needed for a wav file) writes 「こんにちは。ボイスボックスで音声合成しています。」 to a wav file with request_synthesis.py (speaker 3, ずんだもん-ノーマル), see Write a wav file without ROS topics. The speech (VOICEVOX:ずんだもん):

https://github.com/user-attachments/assets/77a9846b-d935-402b-9c2e-71786f53c7d2

If the video does not play, listen to the sample (mp3) or download the video.

Requirements

  • x86_64 or aarch64 Linux (on other architectures the package builds nothing).
  • Network access at build time. The build downloads:
    • voicevox_engine (git clone, about 10 MB): 0.23.0 with Python >= 3.12 (ROS 2 jazzy and later, ROS One on noble), 0.14.7 with older Pythons (noetic);
    • voicevox_core CPU release zip with the voice models and ONNX Runtime (about 1.3 GB for 0.15.7, about 0.96 GB for 0.14.6);
    • voicevox_resource (shallow git clone of the character information);
    • the Python packages of the engine, into a virtualenv of the package (ROS 1: catkin_virtualenv with requirements_python3.*.txt; ROS 2: uv with pyproject.toml/uv.lock), and, on ROS 2, the Open JTalk dictionary of pyopenjtalk (about 24 MB).
  • No credentials. Check the terms of use of VOICEVOX and of each character.
  • Optional: Docker, and the NVIDIA Container Toolkit for use_gpu:=true.

Build

# ROS 1
catkin build voicevox
# ROS 2
colcon build --packages-up-to voicevox

Usage

ROS 2

# engine (CPU, in this package) + sound_play
ros2 launch voicevox voicevox_texttospeech.launch.xml
# speak (from another terminal)
ros2 topic pub --once /robotsound_jp/text std_msgs/msg/String "{data: 'こんにちは。音声テストです。'}"
ros2 topic pub --once /robotsound_jp sound_play_msgs/msg/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
# list the speakers (needs a running engine)
ros2 run voicevox list_speakers.py

ROS 1

roslaunch voicevox voicevox_texttospeech.launch
rostopic pub --once /robotsound_jp/text std_msgs/String "data: 'こんにちは'"
rostopic pub --once /robotsound_jp sound_play/SoundRequest "{sound: -3, command: 1, volume: 1.0, arg: 'こんにちは', arg2: '四国めたん-あまあま'}"
rosrun voicevox list_speakers.py

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package voicevox

3.0.2 (2026-11-26)

  • Merge pull request #601 from nakane11/voicevox-plugin [voicevox] Add a sound_play plugin to synthesize speech without runni…

  • Merge branch 'master' into voicevox-plugin

  • [voicevox] plugin: keep the synthesis timeout after Connection: close, and share speakers.json with text2wave

    - After a response with Connection: close, HTTPConnection reconnects by itself with the 5 s connect timeout; recreate the connection instead so that the synthesis timeout is set again.

    - Read $ROS_HOME/voicevox/speakers.json, as text2wave does, before asking the engine for /speakers, and write it after a fetch, so that a named voice is resolved after a restart even if the engine is unavailable. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • [voicevox] Add a sound_play plugin to synthesize speech without running text2wave for each utterance

  • Merge pull request #600 from jsk-ros-pkg/voicevox-audio-action [voicevox] Support SoundRequest actions for PCM audio output

  • Update status handling in request_synthesis.py Co-authored-by: Copilot Autofix powered by AI <<175728472+Copilot@users.noreply.github.com>>

  • Add SoundRequest actions to VOICEVOX audio output

  • Merge pull request #594 from k-okada/fix-error-handling

  • voicevox: remove a debug print of the default speaker id get_speaker_id() printed ['speaker_id = ', 2] (the default speaker, not the one used) on each request; the speaker is already printed with the text ("speak ... with (<id>)"). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos

  • voicevox: README.md plays the speech sample (doc/voicevox_sample.mp4 uploaded to GitHub) Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: show the Docker engine first and a playable sample in README.md Begin with the official VOICEVOX engine image (CPU, port 50021): trying the voices with curl, and the nodes of the package using it with remote_only:=true (or use_docker:=true), before the build, which still downloads the engine, the core and the resources. Checked on ROS 2 jazzy: the curl synthesis, and request_synthesis.py and the sound_play text2wave path with remote_only:=true against the container. Add doc/voicevox_sample.mp4 (the 4.1 s speech over a still image of the sentence and the credit "VOICEVOX:ずんだもん", h264 + aac, 56 KB), to be uploaded as a user attachment, which GitHub plays inline; a marked placeholder line is left for its URL. The mp3 stays as a fallback. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: add a demo GIF and a speech sample to README.md A terminal recording of the engine of the package (ROS 2 jazzy, CPU, offline, launch_sound_play:=false) writing a Japanese sentence to a wav file with request_synthesis.py, and the speech as mp3 (speaker 3, with the credit "VOICEVOX:ずんだもん" required by its terms). The output on the screen is not filtered; it was recorded with the removal of the debug print of request_synthesis.py (fix-error-handling, #594). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • voicevox: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p

  • Merge pull request #584 from k-okada/release-3.0.1

  • Contributors: Aoi Nakane, Kei Okada, Yoshiki Obinata

File truncated at 100 lines see the full file

Launch files

  • launch/voicevox_texttospeech.launch
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true] — Respawn sound_play node or not (default: true)
      • default_speaker [default: $(optenv VOICEVOX_DEFAULT_SPEAKER_ID 2)] — Default speaker for VOICEVOX
      • host [default: $(optenv VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(optenv VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1] — Number of cpu threads
      • use_docker [default: false] — Use docker or not (default: false)
      • docker_only [default: false] — Launch only docker container without sound_play node (default: false)
      • remote_only [default: false] — Connect to remote server without starting local server (default: false)
      • output_type [default: wav] — wav: play the speech with sound_play (robotsound_jp action). audio: publish it as raw PCM on audio (audio_common_msgs/AudioData) for e.g. audio_play (format:=wave), for SoundRequest on robotsound_jp. Both also speak text (std_msgs/String) on robotsound_jp/text; needs jsk_ros1_ros2_compat (default: wav)
      • sample_rate [default: 16000] — Sample rate of the audio topic (output_type:=audio)
      • volume_scale [default: 1.0] — Volume of the audio topic (output_type:=audio)
      • use_gpu [default: false] — Use GPU for the docker container (default: false)
      • use_plugin [default: false] — Use the voicevox sound_play plugin instead of text2wave (default: false)
  • launch/voicevox_texttospeech.launch.xml
      • device [default: ]
      • launch_sound_play [default: true]
      • sound_play_respawn [default: true]
      • default_speaker [default: $(env VOICEVOX_DEFAULT_SPEAKER_ID 2)]
      • host [default: $(env VOICEVOX_TEXTTOSPEECH_URL localhost)]
      • port [default: $(env VOICEVOX_TEXTTOSPEECH_PORT 50021)]
      • cpu_num_threads [default: 1]
      • use_docker [default: false]
      • docker_only [default: false]
      • remote_only [default: false]
      • output_type [default: wav]
      • sample_rate [default: 16000]
      • volume_scale [default: 1.0]
      • use_gpu [default: false]

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged voicevox at Robotics Stack Exchange