Custom messages for speech-to-text services based on Vosk
Extracted from the ROS1 package ros_vosk These messages are required for the ROS2 version ros2_vosk
- Install this package to your ros2 workspace
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone https://github.com/redchillipadi/ros2_vosk_msgs
cd ..
colcon build
- Source the messages before using them
source install/setup.bash
ros2 topic info speech_recognition/vosk_result
- speech_recognition/vosk_result -> vosk_node.py publishes a custom "speech_recognition" message
- speech_recognition/final_result -> vosk_node.py publishes a simple string with the final result
- speech_recognition/partial_result -> vosk_node.py publishes a simple string with the partial result
- tts/status -> tts_engine.py publishes the state of the engine. True if it is speaking False if it is not. If the status is true vosk_node won't process the audio stream so it won't listen to itself
- tts/phrase -> tts_engine.py subscribes to this topic in order to speak the given string. Name your desire and it shall be heard by all in the room..
Angelo Antikatzidis [email protected] Nickolay V. Shmyrev [email protected] Adrian Grigo [email protected]