GithubHelp home page GithubHelp logo

ros-vosk's Introduction

ros_vosk

A ROS package for speech-to-text services based on Vosk

Tutorials

  1. Install this package and vosk
sudo apt install ros-${ROS_DISTRO}-ros-vosk

don't forget to run catkin_make

  1. Install Dependencies

If using ROS MELODIC run first:

sudo apt install python3-pip python3-yaml

Then run for MELODIC & NOETIC:

pip3 install sounddevice
pip3 install vosk

And if you want to use the TTS engine please run:

sudo apt install espeak
pip install pyttsx3
  1. Launch the node

Launch the speech recognition node

roslaunch ros_vosk ros_vosk.launch

or by running:

rosrun ros_vosk vosk_node.py

Interface

Publishing Topics

  • 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..

Author

Angelo Antikatzidis [email protected] Nickolay V. Shmyrev [email protected]

ros-vosk's People

Contributors

a-prototype avatar gerardcanal avatar nshmyrev avatar timple avatar v4hn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ros-vosk's Issues

Can't add new model

when executing vosk_node.py after changing the model name in param , iam getting this message
""Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying.""
i downloaded a new model using roslauch ros_vosk ros_vosk.launch and after downloading its showing error

Inconsistent package names

Hi there, I was trying out the ros-vosk, and I found some package names are inconsistent (it is called ros_vosk in some places and vosk_ros in others, I guess due to the port from https://github.com/a-prototype/vosk_ros (I understand this repo will take over @a-prototype 's one).

On another note, it might be good to put the installing line as "https://github.com/alphacep/ros-vosk.git ros_vosk". Otherwise, there are issues with the folder named ros-vosk and the package ros_vosk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.